feat: added query parameters #244
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Issue In Jira When Issue Closed | |
on: | |
issues: | |
types: | |
- closed | |
pull_request_target: | |
types: | |
- closed | |
workflow_call: | |
jobs: | |
update_jira_status: | |
name: Set Jira Status To Done | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
# Look through all comments in issue and get contents of comment that | |
# includes text PETOSS | |
- name: Find Jira ticket Id in issue comments | |
uses: peter-evans/find-comment@v2 | |
id: fc | |
with: | |
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} | |
body-includes: PETOSS | |
comment-author: github-actions[bot] | |
direction: last | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Login | |
uses: atlassian/gajira-login@master | |
env: | |
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | |
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
# Transition jira ticket identified in first step to status of done | |
- name: Update Jira ticket status | |
uses: atlassian/gajira-transition@v3 | |
with: | |
issue: ${{ steps.fc.outputs.comment-body }} | |
transition: "Done" |