From 9cd6e6d2affdafa8ca12b712682c53b34b349f02 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Mon, 23 May 2022 13:45:59 +0300 Subject: [PATCH] [WIFI-7820] Add: enforce-jira-issue-key workflow Signed-off-by: Dmitry Dunaev --- .github/workflows/enforce-jira-issue-key.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/enforce-jira-issue-key.yml diff --git a/.github/workflows/enforce-jira-issue-key.yml b/.github/workflows/enforce-jira-issue-key.yml new file mode 100644 index 0000000..5c34c8f --- /dev/null +++ b/.github/workflows/enforce-jira-issue-key.yml @@ -0,0 +1,22 @@ +name: Ensure Jira issue is linked + +on: + pull_request: + types: [opened, edited, reopened, synchronize] + +jobs: + check_for_issue_key: + runs-on: ubuntu-latest + steps: + - name: Checkout actions repo + uses: actions/checkout@v2 + with: + repository: Telecominfraproject/.github + path: github + + - name: Run JIRA check + uses: ./github/composite-actions/enforce-jira-issue-key + with: + jira_base_url: ${{ secrets.TIP_JIRA_URL }} + jira_user_email: ${{ secrets.TIP_JIRA_USER_EMAIL }} + jira_api_token: ${{ secrets.TIP_JIRA_API_TOKEN }}