I have opened a PR to make the head and revision constructors 
public https://github.com/jenkinsci/github-branch-source-plugin/pull/179

I've also thought about having an EnvironmentContributor to make the labels 
available to a build (my use case would be as 'when' conditions for stages) 
but it doesn't seem like a simple task at the moment.
It sounds like this suggestion would be helpful for this, too:

On Monday, March 19, 2018 at 8:39:39 AM UTC, Stephen Connolly wrote:
>
> Another approach could be to add the labels to the PullRequestSCMHead as a 
> mixin.
>

although I'm not really sure what is meant by a mixin vs a property

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/4f31e663-c8d1-4946-9947-c2f1228deb83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to