ghprb-plugin icon indicating copy to clipboard operation
ghprb-plugin copied to clipboard

Remove default Github Auth or edit it in place using groovy

Open jwanderson1326 opened this issue 6 years ago • 2 comments

When configuring the plugin through groovy, it looks like a default blank auth method is configured. We tried using the example groovy configuration, but that just added an additional auth method. We'd like to have some way to remove the default/blank auth method or an example of how to edit this in place in our groovy config.

jwanderson1326 avatar Jul 11 '19 18:07 jwanderson1326

👍

actionjack avatar Jun 29 '20 13:06 actionjack

Update here... we worked around this issue by manually removing the first auth method prior to creating our own in the groovy configuration:

List<GhprbGitHubAuth> githubAuths = descriptor.getGithubAuth()

githubAuths.removeAt(0)

still would be nice to have this method documented or an easy way to do this via the plugin

jwanderson1326 avatar Jun 29 '20 15:06 jwanderson1326