Resolving problem with GitcommitAttribute
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Has been cancelled

This commit is contained in:
rockstardev 2025-07-15 00:32:29 +02:00
parent 925508966f
commit 636b74ee33
No known key found for this signature in database
GPG Key ID: 4F224698945A6EE7
2 changed files with 16 additions and 15 deletions

View File

@ -227,19 +227,4 @@ public class ApiController(
return UnprocessableEntity(new { errors });
}
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class GitCommitAttribute : Attribute
{
public GitCommitAttribute(string sha)
{
SHA = sha;
}
public string SHA
{
get;
}
}
}

View File

@ -0,0 +1,16 @@
namespace PluginBuilder;
// used by csproj and other tools to get the git commit SHA
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class GitCommitAttribute : Attribute
{
public GitCommitAttribute(string sha)
{
SHA = sha;
}
public string SHA
{
get;
}
}