|
|
|
|
@ -48,14 +48,13 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Create ticket
|
|
|
|
|
if: github.event.action == 'opened' && !steps.boundary-team-role.outputs.role
|
|
|
|
|
uses: tomhjp/gh-action-jira-create@v0.1.0
|
|
|
|
|
uses: tomhjp/gh-action-jira-create@v0.1.3
|
|
|
|
|
with:
|
|
|
|
|
project: ICU
|
|
|
|
|
issuetype: "GH Issue"
|
|
|
|
|
summary: "${{ github.event.repository.name }} [${{ steps.set-ticket-type.outputs.type }} #${{ github.event.issue.number || github.event.pull_request.number }}]: ${{ github.event.issue.title || github.event.pull_request.title }}"
|
|
|
|
|
description: "${{ github.event.issue.body || github.event.pull_request.body }}\n\n_Created from GitHub Action for ${{ github.event.issue.html_url || github.event.pull_request.html_url }}, from ${{ github.actor }}_"
|
|
|
|
|
description: "${{ github.event.issue.body || github.event.pull_request.body }}\n\n_Created from GitHub Action for ${{ github.event.issue.html_url || github.event.pull_request.html_url }} from ${{ github.actor }}_"
|
|
|
|
|
# customfield_10089 is Issue Link custom field
|
|
|
|
|
# customfield_10091 is team custom field
|
|
|
|
|
extraFields: '{"customfield_10089": "${{ github.event.issue.html_url || github.event.pull_request.html_url }}"}'
|
|
|
|
|
|
|
|
|
|
- name: Search
|
|
|
|
|
@ -68,7 +67,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Sync comment
|
|
|
|
|
if: github.event.action == 'created' && steps.search.outputs.issue
|
|
|
|
|
uses: atlassian/gajira-comment@v2.0.1
|
|
|
|
|
uses: tomhjp/gh-action-jira-comment@v0.1.0
|
|
|
|
|
with:
|
|
|
|
|
issue: ${{ steps.search.outputs.issue }}
|
|
|
|
|
comment: "${{ github.actor }} ${{ github.event.review.state || 'commented' }}:\n\n${{ github.event.comment.body || github.event.review.body }}\n\n${{ github.event.comment.html_url || github.event.review.html_url }}"
|
|
|
|
|
|