How do I trigger Automation on a GitHub PR status change of Draft to Final?

John King March 19, 2024

We have a workflow that flags issues in progress when a PR is created.  This provides visual feedback to peer reviewers on the team, and provides informational feedback to why a story in progress is currently not moving.   We can create automation to do this, by using the trigger on PR created, and checking the state.   While I have found triggers for PR create, merge, and failures, I do not see a trigger on a change to a PR.

Are there any workarounds for this?

Thanks.

1 answer

0 votes
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2024

Hi @John King 

As far as I got it right the trigger should be something that happens only within github (tbh I know github but I´ve never heard of Draft/Final state).

 

My suggestion would be to work with an "Incoming webhook" trigger in Jira Automation and create this webhook within github (as I dunno where exactly this is set please see and find the appropriate webhook in the following link to the docu of the github api):

https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_request

 

Hope I could give some helpful hints with this. Please let us know if there are any further questions.

Best
Stefan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events