mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Show the git commit of the current build of BTCPay (#4320)
* Show the git commit of the current build of BTCPay * Fix build Co-authored-by: d11n <mail@dennisreimann.de>
This commit is contained in:
18
BTCPayServer/GitCommitAttribute.cs
Normal file
18
BTCPayServer/GitCommitAttribute.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace BTCPayServer
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
|
||||
public sealed class GitCommitAttribute : Attribute
|
||||
{
|
||||
public string SHA
|
||||
{
|
||||
get;
|
||||
}
|
||||
public string ShortSHA => SHA.Substring(0, 9);
|
||||
public GitCommitAttribute(string sha)
|
||||
{
|
||||
SHA = sha;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user