-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #192, Adds check commit message job in format check #470
Conversation
CCB:2022-05-04, APPROVED with CHANGES
|
@skliper now that I think about it, for maintenance maybe we should still combine it in the "caller" workflow but restrict it to run on pull_requests? If we separate them we'll have to create and maintain one of these for each single repo. |
@astrogeco are you able to separate it into it's own job that only runs on pull requests even when triggered from a workflow call? That would be enough to separate it from the code format check (different job) and avoid nuisance failures (only on pull request) for me. Although if there's plans to add more checking to this workflow a name update may help clarify things (not just checking code whitespace formatting anymore). |
Interesting. Yes, the "Check commit message" step can be changed into its own job in format-check.yml with the addition of |
.github/workflows/format-check.yml
Outdated
pattern: '^((Fix|HotFix|Partial)\s\#[0-9]+,\s[a-zA-Z0-9]+|Merge\spull\srequest\s\#[0-9]+\s[a-zA-Z0-9]+|IC:\s[a-zA-Z0-9]+)' | ||
error: 'You need at least one "Fix #<issue number>, <short description>" line. "HotFix" and "Partial" are also acceptable.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "Part" vs "Partial"?
Adds pattern that accepts commit msgs with "Fix [OR] HotFix [OR] Partial #XYZ <description>", Adds pattern that accepts commit msgs with "Merge pull request #XYZ <description>", Adds pattern that accepts commit msgs with "IC: <description>" Adds conditional for commit msg job to run only on pull-requests Splits msg check for PR title and each of its commits Adds contextual comments to each step Adds implicit default flags to each step for readability
e8d78e8
to
efbb729
Compare
CCB:2022-05-18 APPROVED |
Checklist (Please check before submitting)
Describe the contribution
A clear and concise description of what the contribution is.
Testing performed
Tested on fork: https://github.com/chillfig/cFS/runs/6427976618?check_suite_focus=true
Expected behavior changes
Commit messages not following any of the below conventions will fail the format-check.yml
Fix #XYZ, DESCRIPTION
HotFix #XYZ, DESCRIPTION
Partial #XYZ, DESCRIPTION
Merge pull request #XYZ DESCRIPTION
IC: DESCRIPTION
System(s) tested on
Ubuntu 18.04
Additional context
The regex for
DESCRIPTION
is defined as a string of 1 or more alphanumeric characters.The regex for
XYZ
is defined as a string of 1 or more numeric characters.Code contributions
The cFS repository is provided to bundle the cFS Framework. It is utilized for bundling submodules, continuous integration testing, and version management and does not contain any software. Code contributions should be directed to the appropriate submodule.
Contributor Info - All information REQUIRED for consideration of pull request
Justin Figueroa, ASRC Federal