Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent push on branch with a pull request

Bruno Araujo August 15, 2013

How can i prevent a PUSH to a bransh that have a on-going Pull Request?

I were using the 'workflow' plugin for that but it don't work with Stash 2.6+

2 answers

1 accepted

0 votes
Answer accepted
Bruno Araujo August 16, 2013

Hi Charles,

In our workflow we block the branch during review to prevent any case of accidental PUSH in a branch that is been reviewed.

I followed your advice and found that the vendor is working to bring this plugin up to date with stash. (https://bitbucket.org/izymesdev/workzone/issue/23/compatibility-to-stash-26)

anyway, Thanks.

0 votes
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2013

Hi Bruno,

If you don't mind me asking, what is the reason for blocking the push? I ask because, at least for our workflow, we almost always need to push changes to respond from comment feedback.

The Workflow plugin sounds like it solves that problem, what errors are you getting in the Stash logs? You might want to contact the vendor and let them know.

If you get stuck, I could probably help with a plugin that prevents pushes in that case. We have a very similar plugin already that blocks target branch deletions on open pull requests:

https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-protect-unmerged-branch-hook

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, out of office, loom, confluence, async collaboration, meeting recaps, remote teamwork, team alignment, knowledge sharing, AI-powered notes, productivity tools, workforce continuity, teamwork collection

Put your meeting notes on autopilot with Loom + Confluence

AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.

Learn more
AUG Leaders

Atlassian Community Events