-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from btcpayserver/kukks
* Add a homepage that shows last 50 builds from all your plugins * Allow removing a version (build gets marked as removed, file is deleted from blob) * Allow toggling between release / pre-release * Only allow 5 concurrent builds, the rest are scheduled * Mark builds that were in some active state as failed on startup
- Loading branch information
Showing
24 changed files
with
418 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace PluginBuilder | ||
{ | ||
public enum BuildStates | ||
{ | ||
Queued, | ||
Uploaded, | ||
Uploading, | ||
Removed, | ||
Running, | ||
Failed, | ||
WaitingUpload | ||
} | ||
public static class BuildStatesExtensions | ||
{ | ||
public static string ToEventName(this BuildStates buildState) | ||
{ | ||
return buildState switch | ||
{ | ||
BuildStates.Queued => "queued", | ||
BuildStates.Removed => "removed", | ||
BuildStates.Running => "running", | ||
BuildStates.Failed => "failed", | ||
BuildStates.Uploaded => "uploaded", | ||
BuildStates.Uploading => "uploading", | ||
BuildStates.WaitingUpload => "waiting-upload", | ||
_ => throw new ArgumentOutOfRangeException(nameof(buildState), buildState, null) | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.