Skip to content

Instantly share code, notes, and snippets.

@bbredewold
Created June 16, 2022 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbredewold/4ae3fe50e7b55bda68f5de307872200f to your computer and use it in GitHub Desktop.
Save bbredewold/4ae3fe50e7b55bda68f5de307872200f to your computer and use it in GitHub Desktop.
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
transition-issue:
name: Transition to Review
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- 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 }}
- name: Jira Find issue key
uses: atlassian/gajira-find-issue-key@v2.0.2
with:
string: ${{ github.event.ref }}
- name: Transition issue
uses: atlassian/gajira-transition@master
with:
issue: ${{ steps.create.outputs.issue }}
transition: "In progress"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment