Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project level hooks not triggering with inheritance on at first commit/push #109

Closed
Marakai opened this issue Mar 6, 2020 · 3 comments
Closed

Comments

@Marakai
Copy link

@Marakai Marakai commented Mar 6, 2020

Issue:

When creating a new repository in Bitbucket with Hooks set at the Project level (both pre- and post-receive), the first commit/push to the repository will not trigger the hooks.

Hooks are set to Inherited (Enabled) at the repo level. When changing the setting to Enable instead of Inherit, then a first time push will trigger the hook.

Any further commit/pushes will trigger the Project level hooks correctly - it's only the first one.

What should happen:

The Project-level hooks should trigger no matter what, if set to Inherited (Enabled).

Work-around:

If, at creation of repo, you go into Settings, then toggle the repo-level Hook from Inherited (Enabled) to Enabled, Save that settings and then immediately set it back to Inherited (Enabled), it will trigger correctly, though it's not immediately clear if it's because it now works properly - or whether it's actually now just continuing to use the repo-level hook and didn't actually switch back to Project-level. Would need to test with two different Hook scripts to verify.

@kovetskiy

This comment has been minimized.

Copy link
Member

@kovetskiy kovetskiy commented Mar 6, 2020

@kovetskiy

This comment has been minimized.

Copy link
Member

@kovetskiy kovetskiy commented Mar 6, 2020

We've reproduced the bug and applied the fix, we'll release the new version today.

@kovetskiy

This comment has been minimized.

Copy link
Member

@kovetskiy kovetskiy commented Mar 6, 2020

Heads up! The new version is available for upgrade through Atlassian Marketplace — 10.1.0

https://marketplace.atlassian.com/apps/1211631/external-hooks-by-reconquest/version-history#b6532

Thanks for the bug report!

@kovetskiy kovetskiy closed this Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.