We're updating the issue view to help you get more done. 

Branches parameter is incorrect if cross-repository PR is created

Description

Steps to reproduce

  1. fork repository

  2. create new branch

  3. commit changes to that branch

  4. make PR to original repository

  5. enable web hook for forked repository

  6. add some new changes

  7. plugin will make request with branches parameter that includes only PR ref (and branch ref)

Example:

1 'http://localhost:8080/jenkins/git/notifyCommit?url=http://localhost:7990/bitbucket/scm/~user/rep_1.git&branches=refs/pull-requests/4/from&sha1=4c6d97b43b9f8e40e12adc159e1b8538350f07e5

Expected behavior: PR is not required here - only original branch name

Environment

None

Status

Assignee

Andrey Levchenko

Reporter

Andrey Levchenko

Labels

None

Github URL

None

Sprint

None

Priority

Lowest