Beautify skeleton to PR size check
MODIFY
WalletWasabi.QualityGate/Program.cs
WalletWasabi.QualityGate/Program.cs
@@ -7,16 +7,10 @@ namespace WalletWasabi.QualityGate
{
private static void Main(string[] args)
{
- if (args[0] == "foo")
+ var command = args[0];
+ if (command == "prtoolarge")
{
- // bump ci
- Console.WriteLine("Failing gate.");
- throw new Exception("foo");
- }
- else
- {
- Console.WriteLine("Passing gate.");
- return;
+ throw new Exception("The pull request is too large. Please break it down to smaller pull requests.");
}
}
}

MODIFY
azure-pipelines-quality.yml
azure-pipelines-quality.yml
@@ -8,8 +8,8 @@ jobs:
inputs:
version: 3.1.x
- task: DotNetCoreCLI@2
- displayName: 'Test Quality'
+ displayName: 'Pull Request Too Large'
inputs:
command: run
projects: 'WalletWasabi.QualityGate/WalletWasabi.QualityGate.csproj'
- arguments: --configuration Release -- bar
+ arguments: --configuration Release -- prtoolarge

Beautify skeleton to PR size check