summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2023-08-28 21:43:03 +0200
committerAlan Rominger <arominge@redhat.com>2023-08-29 15:29:30 +0200
commitdb1af57daa09a7cfa1e42e8820dbb81aa2cb0cc3 (patch)
treeb2b1dda2a5d60d7720137c2fa08197d7bd33efcb /.github
parentFix CVE-2023-40267 (#14388) (diff)
downloadawx-db1af57daa09a7cfa1e42e8820dbb81aa2cb0cc3.tar.xz
awx-db1af57daa09a7cfa1e42e8820dbb81aa2cb0cc3.zip
Revert "Adding PR check to ensure JIRA links are present"
This reverts commit 3ae6174050900d61e349afb3e804367ba9957720.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pr_body_check_jira.yml35
1 files changed, 0 insertions, 35 deletions
diff --git a/.github/workflows/pr_body_check_jira.yml b/.github/workflows/pr_body_check_jira.yml
deleted file mode 100644
index 0fd20f48d8..0000000000
--- a/.github/workflows/pr_body_check_jira.yml
+++ /dev/null
@@ -1,35 +0,0 @@
----
-name: Check body for reference to jira
-on:
- pull_request:
- branches:
- - release_**
-jobs:
- pr-check:
- if: github.repository_owner == 'ansible' && github.repository != 'awx'
- name: Scan PR description for JIRA links
- runs-on: ubuntu-latest
- permissions:
- packages: write
- contents: read
- steps:
- - name: Check for JIRA lines
- env:
- PR_BODY: ${{ github.event.pull_request.body }}
- run: |
- echo "$PR_BODY" | grep "JIRA: None" > no_jira
- echo "$PR_BODY" | grep "JIRA: https://.*[0-9]+"> jira
- exit 0
- # We exit 0 and set the shell to prevent the returns from the greps from failing this step
- # See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
- shell: bash {0}
-
- - name: Check for exactly one item
- run: |
- if [ $(cat no_jira jira | wc -l) != 1 ] ; then
- echo "The PR body must contain exactly one of [ 'JIRA: None' or 'JIRA: <one or more links>' ]"
- echo "We counted $(cat no_jira jira | wc -l)"
- exit 255;
- else
- exit 0;
- fi