From ebf0357fb203038f220a5e1199e76770f2f596e3 Mon Sep 17 00:00:00 2001 From: James McMullan Date: Tue, 30 Jan 2024 14:27:09 -0500 Subject: [PATCH] HPCC4J-571 Github Action: Jirabot Merge fails to find correct tag - Added debugging information for action vars - Add a default Jira URL as a fallback Signed-off-by: James McMullan James.McMullan@lexisnexis.com --- .github/workflows/JirabotMerge.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/JirabotMerge.yml b/.github/workflows/JirabotMerge.yml index 112abf776..6fff4a61e 100644 --- a/.github/workflows/JirabotMerge.yml +++ b/.github/workflows/JirabotMerge.yml @@ -14,6 +14,15 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.merged == true steps: + - name: "Debug Vars" + run: | + echo "JIRA_URL: ${{ vars.JIRA_URL }}" + echo "Pull Request Number: ${{ github.event.pull_request.number }}" + echo "Pull Request Title: ${{ github.event.pull_request.title }}" + echo "Pull Request Author Name: ${{ github.event.pull_request.user.login }}" + echo "Pull Request URL: ${{ github.event.pull_request.html_url }}" + echo "Comments URL: ${{ github.event.pull_request.comments_url }}" + echo "Branch Name: ${{ github.ref_name }}" - uses: "actions/setup-python@v2" with: python-version: "3.8" @@ -182,6 +191,11 @@ jobs: jirabot_user = os.environ['JIRABOT_USERNAME'] jirabot_pass = os.environ['JIRABOT_PASSWORD'] jira_url = os.environ['JIRA_URL'] + + if not jira_url: + jira_url = 'https://track.hpccsystems.com' + print('Jira URL us empty defaulting to: ' + jira_url) + pr = os.environ['PULL_REQUEST_NUMBER'] title = os.environ['PULL_REQUEST_TITLE'] user = os.environ['PULL_REQUEST_AUTHOR_NAME']