gh-gei
gh-gei copied to clipboard
Boards integration using GitHub app instead of PAT
Currently the way integrate-boards command works is it creates the connection using a GitHub PAT. This was done mainly because it was easier/quicker to implement. But it means that when that PAT expires all the Boards integrations will break.
Would be better to create the connection using the Boards GitHub App instead of a PAT. Like with pipelines we would expect the customer to pre-configure the app in the GitHub org before using the CLI. The process of wiring up the GH app in ADO might be a bit trickier than with Pipelines however, since I don't think we have the option of sharing a service connection here.
+1
This should be fairly easy to implement with the azure devops api. I did it in a bash script, it doesn't even need to use the github apis assuming you setup the github connection in azure devops before hand.
Azure Devops API github connections docs
There's also someone using the api to do batch connections in cs here's the example repo Link to azure devops client code in sample github app