-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make bedevere work as a GitHub App #569
Conversation
I tested the app by deploying it to a personal heroku instance, and created a GitHub App on my account. It shows the bot applying the "skip news" and "docs" labels to the PR. |
Codecov Report
@@ Coverage Diff @@
## main #569 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 2088 2133 +45
Branches 237 245 +8
=========================================
+ Hits 2088 2133 +45
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super small review. Exciting feature ✨ !
Instead of using Oauth Token, use the GitHub App Installation Access Token. If the "installation" dict is passed in the webhook event, use it. Made some changes to accommodate testing in personal CPython fork.
@ewdurbin checking if you've had chance to review this. Thanks. |
Hi @Mariatta this looks ready to go. I think I'd prefer us to create a new GitHub application under the python org. What permission requests need to be configured for the application to work? |
These are the settings I have on my test app: General:
SSL verification:
Repository permissions:
Organization permissions:
Account permissions:
Subscribe to events
Let me know if there's anything else needed, and also give me heads up when this is set up. I can help debug issues in case anything arises. |
OK @Mariatta everything is set. The app has been created. I'm going to see if we can make it work :) |
OK, the app has been installed on the cpython repository and the web hook set to inactive. |
Looks like it's working! python/cpython#109264 :) |
Thanks @Mariatta! |
Instead of using Oauth Token, use the GitHub App Installation Access Token. If the "installation" dict is passed in the webhook event, use it.
Made some changes to accommodate testing in personal CPython fork.
Checklist for deploying this app:
bedevere-bot
since it's already taken). Suggestions:bedevere-py
,bedevere-app
/ transfer mariatta's app to the Python orgGH_APP_ID
,GH_PRIVATE_KEY
(from the newly created GitHub App in the previous step)