jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-66782] Additional metadata for ChangeRequestSCMHead

Open
#1,378 0 comments 0 reactions 0 assignees View on GitHub
component:branch-api-plugin component:github-branch-source-plugin component:gitlab-branch-source-plugin component:scm-api-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

It would be useful to extend the ChangeRequestSCMHead with some more metadata which plugins and builds can use.

Two notable missing pieces are Labels and Draft status. Both GitHub and GitLab support these concepts on change requests.

Adding these to scm-api initially could be followed up with implementations in github-branch-source and gitlab-branch-source.

branch-api's BranchNameContributor is an existing place this metadata could be put to use, with new environment variables for draft status and a delimited string of applied labels.

Other uses would likely come in the form of new plugins.

---
Originally reported by stevenfoster, imported from: Additional metadata for ChangeRequestSCMHead


  • assignee: baymac
  • status: Open
  • priority: Minor
  • component(s): branch-api-plugin, github-branch-source-plugin, gitlab-branch-source-plugin, scm-api-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

It would be useful to extend the ChangeRequestSCMHead with some more metadata which plugins and builds can use.

Two notable missing pieces are Labels and Draft status. Both GitHub and GitLab support these concepts on change requests.

Adding these to scm-api initially could be followed up with implementations in github-branch-source and gitlab-branch-source.

branch-api's BranchNameContributor is an existing place this metadata could be put to use, with new environment variables for draft status and a delimited string of applied labels.

Other uses would likely come in the form of new plugins.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.