GitHub plugin offers a GItHub project reference Job property. I believe it is a way to go if you have a single GitHub project configured for your job. For multiple projects there is no APIs right now AFAIK, but extending the GitHub plugin could be a reasonable RFE
Best regards, Oleg On Sunday, December 16, 2018 at 10:30:56 AM UTC+1, Jeremy Marshall wrote: > > I'm writing a plugin to push comments to a pull request in github. > > I really don't want to reinvent anything so is there a way to determine > the github api url for the project? > > There could be multiple github urls defined in an installation, covering > different organisations and possibly Github enterprise. I was thinking of > leveraging the defined values, rather than have to duplicate config. All > the config in the job I want is an option credential > > Thanks > -- 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/9c83c416-566f-4545-93f5-da500910730e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
