-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
It would be nice to have a way to hook into when pull requests are created / updated via an sdk hook or by other means. Our business case for this is that we want to integrate a build solution into PR's so that we can have them build when PR's are created / updated. From our current reading the only way to do this is to tap into the PR update hook which is triggered when someone visits a PR and the merge is kicked off in the background. Looking online yields no good clean solutions and this is something that github already does very well.
- is related to
-
BSERV-3885 Introduce Ability to configure a stash repository to create a plan branch in bamboo on pushing to branch
- Gathering Interest
-
BSERV-5112 Ability to have CI automatically build pull-requests
- Gathering Interest
Brent,
Can you expand a little on what PullRequestOpenedEvent (new pull request created), PullRequestRescopedEvent (pull request branch SHA-1s updated; from, to or both) and PullRequestUpdatedEvent (description and/or title updated, target branch changed) are not providing you here? Are they just not sufficiently well-documented or discoverable, or is there specific functionality you're looking for that they don't provide?
If you're specifically looking for the refs/pull-requests/ID/merge ref to be updated so you can build it, that's one thing the system doesn't do eagerly. Producing merges is a very expensive operation when you sum the work across hundreds of open pull requests, so the system is as lazy about that as it can be. Is that ref what you're looking for?
Best regards,
Bryan Turner
Atlassian Stash