Skip to content

[STA-905] added 9% tax rates for Singapore #35

[STA-905] added 9% tax rates for Singapore

[STA-905] added 9% tax rates for Singapore #35

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"