ghprb-plugin
ghprb-plugin copied to clipboard
Remove default Github Auth or edit it in place using groovy
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.
👍
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