chore: bumping to 0.0.4 due to a bug #12
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: SmartBear Supported Pull Request Merged | ||
# Example of trigger for this workflow: | ||
# | ||
# on: | ||
# pull_request: | ||
# types: | ||
# - closed | ||
on: | ||
workflow_call: | ||
jobs: | ||
if_merged: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
name: Transition Jira ticket to Close | ||
steps: | ||
- name: login | ||
uses: atlassian/gajira-login@v3 | ||
JIRA_BASE_URL: ${{ secrets.SMARTBEAR_JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.SMARTBEAR_JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.SMARTBEAR_JIRA_API_TOKEN }} | ||
ISSUE_TITLE: ${{ github.event.issue.title }} | ||
- run: echo ${{ github.event.pull_request.title }} | ||
- name: Search | ||
id: search | ||
uses: tomhjp/[email protected] | ||
with: | ||
jql: 'summary ~ "${{ github.event.repository.name }}#${{ github.event.issue.number }}:" AND project=${{ vars.SMARTBEAR_JIRA_PROJECT }}' | ||
- name: Log | ||
run: echo "Found issue ${{ steps.search.outputs.issue }}" | ||
- name: Transition issue | ||
if: steps.search.outputs.issue != '' | ||
uses: atlassian/gajira-transition@v3 | ||
with: | ||
issue: ${{ steps.search.outputs.issue }} | ||
transition: "Done" |