From b0e4b8f18e924f3353aec98b73090c698fe83c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fritze?= Date: Mon, 3 Jun 2024 15:42:12 +0200 Subject: [PATCH] OQS 213 add Jira ticket/branch naming check --- .github/workflows/jira-branch-check.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/jira-branch-check.yml diff --git a/.github/workflows/jira-branch-check.yml b/.github/workflows/jira-branch-check.yml new file mode 100644 index 0000000..5618e05 --- /dev/null +++ b/.github/workflows/jira-branch-check.yml @@ -0,0 +1,22 @@ +name: Check Jira key in branch exists and is valid + +on: + push: + branches: + - "**" + - "!main" + workflow_dispatch: + +jobs: + branch-jira-check: + runs-on: ubuntu-24.04 + if: | + startsWith( github.ref_name, 'release') == false && + startsWith( github.ref_name, 'dependabot') == false + steps: + - name: Branch name contains Jira key + uses: arup-group/actions-composite-oasys-jira-check/branch@v1.0.0 + with: + valid-branch-names: task|test|bugfix|feature|hotfix|epic|debt + jira-username: automation@arup.com + jira-password: ${{ secrets.JIRA_PASSWORD }}