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.
Hi!
I have a question about the default variables.
Are there exist any variables to show that it is a merge action?
For example something like CI_PIPELINE_SOURCE in GitLab
Cause I need to run a step only once when we create PR, and it should doesn't run when we update this PR later.
I cannot find something similar in the documentation.
Thanks a lot!
Hi @Nastya Sekerich and welcome to the community!
I would like to ask for some clarification about your use case.
You mentioned:
Cause I need to run a step only once when we create PR, and it should doesn't run when we update this PR later.
Can you please clarify what action you are referring to by "updating the PR later"?
At first, I thought that by "updating the PR" you meant pushing new commits to the source branch. However, earlier in your post you make a reference to a "merge action", so now I am unsure if by "updating the PR" you mean merging it, pushing commits to the source branch, or something else.
Can you please clarify, so I can better answer your question?
Kind regards,
Theodora
Thanks a lot, @Theodora Boudale! Glad to join you!
Yes, I mean the first describing situation. When we already open Pull Request and then we push some commits to this branch. So this pull request will be "updated" with these added comments.
Can we somehow keep track of open action and avoid running the pipeline step during the update?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nastya Sekerich,
Thank you for the clarification!
I'm afraid that this is not possible at the moment. We have pull request pipelines that get triggered both when a PR is created, but also when the source branch gets updated with new commits. It is not possible to run them on PR creation only and we don't have a variable that will show if the trigger was PR creation or update.
I can create a feature request for what you're asking for our development team to consider, please feel free to let me know if you'd like me to proceed with that.
Kind regards,
Theodora
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.