-
Notifications
You must be signed in to change notification settings - Fork 54
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
ci: Add a workflow to validate pull request titles #734
Conversation
32c951a
to
66ad59c
Compare
66ad59c
to
324998d
Compare
324998d
to
f96ad1f
Compare
running the script through shellcheck gives the following advice:
|
exit 7; | ||
fi | ||
|
||
# Validate that the last character of the description is a lower case alphabet character. |
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.
question: that would exclude '.' at the end right?
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.
Yea so a PR title with .
(non-lowercase-alphabet) in the end will fail.
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.
So this means that we want out PR titles to never have a dot at the end?
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.
So this means that we want out PR titles to never have a dot at the end?
That is what this action would enforce, was that not the consensus?
95f50ac
to
cb63fe8
Compare
All fixed. |
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.
This is what I get when I try to run the test:
fredcarle@Freds-MBP defradb % make test:scripts
./scripts_test.sh
PASS
PASS
PASS
PASS
FAIL ...
> Command : [./validate-conventional-style.sh 'feat: a']
> Expected : [5]
> ACTUAL : [4]
make[1]: *** [test] Error 1
That's because readarray
isn't installed by default on macOS (and probably others). See my suggestion bellow.
exit 7; | ||
fi | ||
|
||
# Validate that the last character of the description is a lower case alphabet character. |
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.
So this means that we want out PR titles to never have a dot at the end?
Solved using |
5022078
to
ea9b267
Compare
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.
LGTM!
ea9b267
to
267f4da
Compare
- Resolves sourcenetwork#718 A GitHub workflow action that validates PR title.
Relevant issue(s)
Resolves #718
Description
A GitHub workflow action that validates PR title.
Tasks
How has this been tested?
Through the CI runs of this PR.
Specify the platform(s) on which this was tested: