Skip to content
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

Stop using Mergeable; Replace with own native check #5

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/jira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Must include JIRA ticket
on: pull_request

jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Validate PR Description
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
run: |
DESCRIPTION=$(jq -r .pull_request.body "$GITHUB_EVENT_PATH")
echo "Pull Request Description: $DESCRIPTION"
if ! echo "$DESCRIPTION" | perl -0777 -ne 'exit 1 if not /[A-Z]{1,10}\d*\-\d+/'
then
echo "Must include JIRA ticket"
exit 1
fi
13 changes: 0 additions & 13 deletions .github/mergeable.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/jira-copy.yml
Copy link
Contributor Author

@yowmamasita yowmamasita Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only used to test itself

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Must include JIRA ticket
on: pull_request

jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Validate PR Description
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
run: |
DESCRIPTION=$(jq -r .pull_request.body "$GITHUB_EVENT_PATH")
echo "Pull Request Description: $DESCRIPTION"
if ! echo "$DESCRIPTION" | perl -0777 -ne 'exit 1 if not /[A-Z]{1,10}\d*\-\d+/'
then
echo "Must include JIRA ticket"
exit 1
fi