ADotNet
ADotNet copied to clipboard
FOUNDATIONS: Check PR Title Job
This job will checkout that a PR has been created with one of THE STANDARD accepted categories mentioned here: https://github.com/hassanhabib/The-Standard-Team/blob/main/4%20Practices/4%20Practices.md#4113-category-list
Jobs = new Dictionary<string, Job>
{
{
"check_pr_title",
new CheckPrTitleJob(
runsOn: BuildMachines.UbuntuLatest)
},
{
"build",
new Job
{
Needs = new string[] { "check_pr_title" },
. . .
}
}
}
STEPS:
- Add the "check_pr_title" job before existing jobs
- Optionally add
Needs = new string[] { "check_pr_title" },
to the job after this one, this will stop processing of subsequent jobs on fail.
Sample success message
Sample error message
@elbekdeveloper is this a toaster?
@hassanhabib, @cjdutoit, @ElbekDeveloper Docs need to align, when branch naming we use a mix of singularity and plurals, when naming a pull request here(see pr commits), we appear to be using only singular category names. It becomes hard to assist new comers to The Standard when these mixed signals are out there.
@hassanhabib, @cjdutoit, @ElbekDeveloper Docs need to align, when branch naming we use a mix of singularity and plurals, when naming a pull request here(see pr commits), we appear to be using only singular category names. It becomes hard to assist new comers to The Standard when these mixed signals are out there.
Hi @glhays / @hassanhabib / @ElbekDeveloper, this was done on purpose to closely match GitFyle, but happy to change this to plural version only as long as that is supported by GitFyle.