-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-4918: Release notes automation #1680
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Pull Request validation | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
pull-request-validation: | ||
name: Pull Request validation. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Validate label. | ||
if: ${{ always() && github.event.pull_request.labels[0] == null }} | ||
run: | | ||
echo "Pull Request should have label assigned." | ||
exit 1 | ||
|
||
- name: Title should contain Jira ticket. | ||
if: ${{ always() && !(contains(github.event.pull_request.title, 'CSHARP-')) }} | ||
|
||
run: | | ||
echo "Title should contain Jira ticket." | ||
exit 1 | ||
|
||
- name: Title should not end with period or elipses | ||
|
||
if: ${{ always() && (endsWith(github.event.pull_request.title, '.') || endsWith(github.event.pull_request.title, '…')) }} | ||
run: | | ||
echo "Title should not end with a period or ellipses." | ||
exit 1 |
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.
Use the same format for step names?
"Pull Request should have a label."
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.
Done