![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [atlassian/gajira-transition](https://github.com/atlassian/gajira-transition) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/atlassian/gajira-transition/releases)
- [Commits](4749176faf...38fc9cd61b
)
---
updated-dependencies:
- dependency-name: atlassian/gajira-transition
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
1.7 KiB
YAML
40 lines
1.7 KiB
YAML
on:
|
|
issues:
|
|
types: [closed, deleted, reopened]
|
|
pull_request_target:
|
|
types: [closed, reopened]
|
|
|
|
name: Jira Sync
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
name: Jira sync
|
|
steps:
|
|
|
|
- name: Login
|
|
uses: atlassian/gajira-login@45fd029b9f1d6d8926c6f04175aa80c0e42c9026 # v3.0.1
|
|
if: contains(github.event.pull_request.labels.*.name, 'tf-devex-triage') || contains(github.event.issue.labels.*.name, 'tf-devex-triage')
|
|
env:
|
|
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
|
|
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
|
|
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
|
|
- name: Search for existing issue
|
|
id: search
|
|
if: contains(github.event.pull_request.labels.*.name, 'tf-devex-triage') || contains(github.event.issue.labels.*.name, 'tf-devex-triage')
|
|
uses: tomhjp/gh-action-jira-search@04700b457f317c3e341ce90da5a3ff4ce058f2fa # v0.2.2
|
|
with:
|
|
jql: 'project="TFECO" and "Team (R&D)[Labels]"="TF-DevEx" and description ~ "${{ github.event.issue.html_url || github.event.pull_request.html_url }}" and labels in (Github)'
|
|
- name: Close task
|
|
if: ( github.event.action == 'closed' || github.event.action == 'deleted' ) && steps.search.outputs.issue
|
|
uses: atlassian/gajira-transition@38fc9cd61b03d6a53dd35fcccda172fe04b36de3 # v3.0.1
|
|
with:
|
|
issue: ${{ steps.search.outputs.issue }}
|
|
transition: "Closed"
|
|
- name: Reopen task
|
|
if: github.event.action == 'reopened' && steps.search.outputs.issue
|
|
uses: atlassian/gajira-transition@38fc9cd61b03d6a53dd35fcccda172fe04b36de3 # v3.0.1
|
|
with:
|
|
issue: ${{ steps.search.outputs.issue }}
|
|
transition: "To Do"
|