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

Github pull requests not triggering #3046

Open
adinhodovic opened this issue Nov 15, 2018 · 4 comments
Open

Github pull requests not triggering #3046

adinhodovic opened this issue Nov 15, 2018 · 4 comments

Comments

@adinhodovic
Copy link

adinhodovic commented Nov 15, 2018

Deploys are not triggered when opening or synchronizing a PR. Tried opening a pr to master and updating it, guessing it would trigger with the 'any branch' setting. Docker tag v2505.

Log:

INFO: Request is not supposed to trigger a deploy

Webhook mapping:

Any branch → dev stage for: Any pull request

Partial Payload (can post full if needed):

{
  "payload": "{\"action\":\"opened\",\"number\":2,\"pull_request\":{\"url\"}}
}

Same thing for synchronize:

Webhook mapping:

Any branch → dev stage for: Any pull request

Payload:

"payload": "{\"action\":\"synchronize\",\"number\":9,\"pull_request\":{\"url\"}}

Log:

INFO: Request is not supposed to trigger a deploy

Am I missing something?

@grosser
Copy link
Contributor

grosser commented Nov 15, 2018

code looks like it should work VALID_ACTIONS = ['opened', 'edited', 'synchronize'].freeze
and then return false if data['state'] != 'open' || !VALID_ACTIONS.include?(action) ... I think the issue is WEBHOOK_FILTER = /(^|\s)\[samson review\]($|\s)/i ... try adding [samson review] to the PR and see what happens

@adinhodovic
Copy link
Author

adinhodovic commented Nov 15, 2018

code looks like it should work VALID_ACTIONS = ['opened', 'edited', 'synchronize'].freeze
and then return false if data['state'] != 'open' || !VALID_ACTIONS.include?(action) ... I think the issue is WEBHOOK_FILTER = /(^|\s)\[samson review\]($|\s)/i ... try adding [samson review] to the PR and see what happens

Opening a pr with [samson review] works fine, thanks!

@grosser
Copy link
Contributor

grosser commented Nov 16, 2018

hmm it's like this since the beginning :(
#746

your expectation makes more sense to me though, trigger on opening a PR and enable re-review for "Any PR" ... so the change we'd need is to migrate all any_pr settings to be any_pr_with_keyword (or something like that) and then add that as an option with a new any_pr that behaves as you described

please make a PR if you can, it's always great to get fresh eyes on the code to see what's good/bad if you get stuck @zendesk/bre or I can help out :)

@grosser
Copy link
Contributor

grosser commented Nov 16, 2018

and a /cc for @mwerner just for fun :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants