Skip to content

Commit

Permalink
Merge pull request #1 from Checkmarx/daniel-add-jira
Browse files Browse the repository at this point in the history
Add JIRA Web hook integration (AST-000)
  • Loading branch information
AlvoBen authored Jan 21, 2025
2 parents 0af5f4f + 3220e79 commit ddee7f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
release_url:
required: true
type: string
jira_product_name:
required: true
type: string

jobs:
notify-teams:
Expand Down Expand Up @@ -132,3 +135,22 @@ jobs:
}
]
}
- name: Get Current Date
id: current-date
run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_ENV

- name: Send payload to JIRA Automation Webhook
uses: satak/webrequest-action@master
with:
url: ${{ secrets.JIRA_RELEASE_WEBHOOK_URL }}
method: POST
payload: |
{
"data": {
"version": "${{ inputs.jira_product_name }}_${{ inputs.release_version }}",
"startDate": "${{ env.date }}",
"date": "${{ env.date }}"
}
}
7 changes: 7 additions & 0 deletions .github/workflows/test-notify-teams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
description: 'URL of the release'
required: true
default: 'https://github.com/Checkmarx/ast-jetbrains-plugin/releases/tag/2.2.3'
jira_product_name:
description: 'JIRA Release Name'
required: true
type: string

jobs:
test-notify:
Expand All @@ -36,3 +40,6 @@ jobs:
cli_release_version: ${{ github.event.inputs.cli_release_version }}
release_author: ${{ github.event.inputs.release_author }}
release_url: ${{ github.event.inputs.release_url }}
jira_product_name: ${{ github.event.inputs.jira_product_name }}
secrets: inherit

0 comments on commit ddee7f1

Please sign in to comment.