GitHub "Ignore pull requests marked as drafts" trait is available for non-GitHub branch sources

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Environment:
      Jenkins 2.303.1
      Bitbucket Branch Source Plugin 2.9.11
      Bitbucket Server Integration 2.1.3
      GitHub Branch Source Plugin 2.11.2
    • github-branch-source-plugin:1598.v91207e9f9b_4a_

      JENKINS-65156 / PR #416 added "Ignore pull requests marked as drafts" (IgnoreDraftPullRequestFilterTrait) to the GitHub Branch Source plugin. Jenkins now offers the trait for branch sources from the Bitbucket Branch Source and Bitbucket Server Integration plugins as well. The trait however cannot recognize any draft PRs from those branch sources because the request instanceof GitHubSCMSourceRequest check will evaluate to false. To minimise user confusion, the trait should be hidden from the list or clearly labeled "GitHub".

            Assignee:
            Unassigned
            Reporter:
            Kalle Niemitalo
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: