Resolving problem with GitcommitAttribute
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Has been cancelled
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Has been cancelled
This commit is contained in:
parent
925508966f
commit
636b74ee33
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
16
PluginBuilder/GitCommitAttribute.cs
Normal file
16
PluginBuilder/GitCommitAttribute.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user