You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am setting up some automation rules to capture {{commit.hash}} for every commit created using the 'When Commit Created' trigger. The rules does get triggered when I make a commit to my dev branch (b458626). After merging to the 'main' branch, this merge commit does NOT trigger the rule (a1ed54d). Is the rule making a distinction between a commit and a merge commit?
Are you merging it "manually" or with a pull request?
Because, for pull request merges, there is another trigger type: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Pull-request-merged
Hi Aron, this is for manual merges without issuing a pull request. I was hoping the automation rule would trigger on all commits and just filter using {{isMergeCommit}} smart value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I checked out their docs, and they don't mention if they differentiate between "regular" and "merge" commits, so I would assume the same like you did. But, it seems it is not how it is... :-/
Funnily, we develop the DevOps Automation app for self-hosted Jira, and our Commit Created trigger works as you wrote: we provide a {{devops.commit.isMerge}} smart value which you can use to filter merge commits:
You confirmed that it is an intuitive design. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.