Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52553

pullRequest.createStatus Reports status to the pull request fork, not the fork being submitted to

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • pipeline-github-plugin
    • Managed Master 2.107.3.4-rolling
      Pipeline 2.5
      Github Branch Source 2.3.5
      pipeline-github-plugin 1.0
      workflow-multibranch 2.18
      disable-github-multibranch-status 1.1

    Description

      When a pull request from a different fork is created, all statuses get posted to the fork of the submitter, and not the target. This causes issues with the pull request, because on the Github PR page, there is seemingly no status reported by Jenkins.

      My fork gshieh/my_code is trying to submit a change into TheCompany/my_code

      I have an idea why this is occurring. The plugin is POST-ing to
      /repos/gshieh/my_code/statuses/3776fe0c93c2588af558a1adb88918fd439524ee
      not to
      /repos/TheCompany/my_code/statuses/3776fe0c93c2588af558a1adb88918fd439524ee
       

       

      Attachments

        Activity

          gordonshieh Gordon Shieh created issue -
          gordonshieh Gordon Shieh made changes -
          Field Original Value New Value
          Description When a pull request from a different fork is created, all statuses get posted to the fork of the submitter, and not the target. This causes issues with the pull request, because on the Github PR page, there is seemingly no status reported by Jenkins.

          We're behind a private github enterprise, so I can only give an hypothetical example with URLs.

          My fork {{gshieh/my_code}} is trying to submit a change into {{TheCompany/my_code}}

          I have an idea why this is occurring. The plugin is POST-ing to
          {{/repos/gshieh/my_code/statuses/3776fe0c93c2588af558a1adb88918fd439524ee}}
          not to
          {{/repos/TheCompany/my_code/statuses/3776fe0c93c2588af558a1adb88918fd439524ee}}
           

           
          When a pull request from a different fork is created, all statuses get posted to the fork of the submitter, and not the target. This causes issues with the pull request, because on the Github PR page, there is seemingly no status reported by Jenkins.


          My fork {{gshieh/my_code}} is trying to submit a change into {{TheCompany/my_code}}

          I have an idea why this is occurring. The plugin is POST-ing to
          {{/repos/gshieh/my_code/statuses/3776fe0c93c2588af558a1adb88918fd439524ee}}
          not to
          {{/repos/TheCompany/my_code/statuses/3776fe0c93c2588af558a1adb88918fd439524ee}}
           

           
          gordonshieh Gordon Shieh made changes -
          Environment Managed Master 2.107.3.4-rolling
          Pipeline 2.5
          Github Branch Source 2.3.5
          pipeline-github-plugin 2.0
          Managed Master 2.107.3.4-rolling
          Pipeline 2.5
          Github Branch Source 2.3.5
          pipeline-github-plugin 1.0
          gordonshieh Gordon Shieh made changes -
          Environment Managed Master 2.107.3.4-rolling
          Pipeline 2.5
          Github Branch Source 2.3.5
          pipeline-github-plugin 1.0
          Managed Master 2.107.3.4-rolling
          Pipeline 2.5
          Github Branch Source 2.3.5
          pipeline-github-plugin 1.0
          workflow-multibranch 2.18
          disable-github-multibranch-status 1.1

          People

            aaronjwhiteside Aaron Whiteside
            gordonshieh Gordon Shieh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: