-
-
Notifications
You must be signed in to change notification settings - Fork 74
Rescope of Target/To branch triggers 2 RESCOPE_TO events #20
Comments
Ok, just to make sure I get it =) When pull request, source branch, is updated:
When pull request, target branch, is updated:
|
Yes that's correct for both cases when source branch and target branch are updated. For the case when the target branch is updated, 2 RESCOPED_TO events are sent with different values for ${PULL_REQUEST_FROM_HASH}:
|
Ok. As I said in #17, I think I would need to debug it a bit. But I dont have a Stash instance to run it on. And the one in the SDK does not accept pushing any more commits on my installation. EDIT: A Stash license for 1-10 developers cost $10, so I'll buy one later today =) I'm pretty sure its: @eventlistener Being invoked twice by Stash, but I have no idea why... |
I have tried this on a real Stash installation now. But I cant reproduce the bug. What does: What is the response of: |
Hey Tomas, I upgraded to your latest release via the Universal Plugin Manager and I was doing a lot of testing and didn't see that issue again lately... I also actually added a fix in my Jenkins job to ignore the extra RESCOPED_TO request (with the wrong from hash). I'll update you if I see the issue again. The commit graph looks ok. The response for trying that link was a 404 error "Oops, you've found a dead link". thanks for the support |
Ok, we can close this issue then? An re-open it if problem occurs again. |
Thanks again, Tomas. I'll close it now. |
When I update the target/to branch of an open pull request, 2 http requests are sent each with a different ${PULL_REQUEST_FROM_HASH}. One will contain the from commit of the source branch and the other will contain the previous commit of the target branch.
Is it possible to just trigger one http request with the PULL_REQUEST_FROM_HASH being the commit of the source branch?
The text was updated successfully, but these errors were encountered: