Is it possible to add GitHub Apps Bot to CODEOWNERS? #23064
-
Hi, there I wanna add my GitHub Apps bot to CODEOWNERS to automate approval processes. I’ve already tried to do it like following, but not work.
The bot has access to the repository with read&write permission. Is it possible to add the bot to CODEOWNERS or not? If possible, how can I define CODEOWNERS? |
Beta Was this translation helpful? Give feedback.
Replies: 25 comments 6 replies
-
Hi @0gajun, Thank you for being here! Currently, GitHub Apps can’t be used in CODEOWNERS – that’s not supported. It’s something the team is considering for the future, and I’ll be sure to add your use case to the internal feature request. |
Beta Was this translation helpful? Give feedback.
-
I wrote a github app to merge code automatically if it passes CI checks and meets certain criteria that would designate the PR as a minimal change. For more involved changes, we do want owners to approve. It works in my test repo, but the repo I installed it on eventually has a CODEOWNERS file. When the app attempts to merge, I get an error message as shown below, even though it has merge access. There doesn’t seem to be any way to override this message, and this response is completely undocumented. Between this and github actions, I’ve had multiple mishaps and re-writes that I’ve had to do that have resulted in around 1-2 weeks of lost time on this project, primarily due to documentation issues and frankly bugs on what the docs say github supports. It would be nice if this stuff would work as documented and if bots with merge access wouldn’t get error messages back saying they can’t merge. Even just a force parameter to override the error message would give me what I need, but that doesn’t appear to exist. # with merge bot (github app) token # with user API token |
Beta Was this translation helpful? Give feedback.
-
We also have a bot that needs the ability to force an approval and merge PRs. Where can we track this issue/feature request? Is it in a roadmap, ticket, or repo issue somewhere? Best Regards |
Beta Was this translation helpful? Give feedback.
-
Is it possible however to add |
Beta Was this translation helpful? Give feedback.
-
It it possible to add a GitHub app to the CODEOWNERS file? |
Beta Was this translation helpful? Give feedback.
-
I also would find this very useful. Github, you should really look into this. |
Beta Was this translation helpful? Give feedback.
-
Waiting for this... |
Beta Was this translation helpful? Give feedback.
-
Eager to see this feature.... |
Beta Was this translation helpful? Give feedback.
-
Or at least allow the bot to be added to a team. |
Beta Was this translation helpful? Give feedback.
-
The ability to add a github app to a team would be extremely helpful for our use-case given we use CODEOWNERS |
Beta Was this translation helpful? Give feedback.
-
We are also looking forward to it. This would be extremely helpful. |
Beta Was this translation helpful? Give feedback.
-
We also are using github apps to auto create and approve PRs. We also use CODEOWNERS on our repos and this would be very useful for us. |
Beta Was this translation helpful? Give feedback.
-
Hey @AndreaGriffiths11! |
Beta Was this translation helpful? Give feedback.
-
Hello Our org is also working towards an auto approval mechanism for renovate PRs. This would be extremely helpful. Waiting for this 🙇♀️ |
Beta Was this translation helpful? Give feedback.
-
Hi! |
Beta Was this translation helpful? Give feedback.
-
Come on folks, this issue is 3 years old - any updates @AndreaGriffiths11? |
Beta Was this translation helpful? Give feedback.
-
We are still waiting for the implementation of this! [at]github-team |
Beta Was this translation helpful? Give feedback.
-
you can achieve automated approval processes with GitHub Apps by configuring your GitHub Actions workflow or using the GitHub API in your custom scripts. Here's a general approach:
Make sure to replace placeholders like Always be cautious with personal access tokens, and ensure they have the necessary permissions. It's good practice to use GitHub Actions with the Profile
|
Beta Was this translation helpful? Give feedback.
-
Created this as a request in correct category: https://github.com/orgs/community/discussions/108490 |
Beta Was this translation helpful? Give feedback.
-
We want to add @coderabbitai to our code owners. |
Beta Was this translation helpful? Give feedback.
-
My organisation would also love the ability to allow a GitHub App the ability to approve PRs where branch protection requires a review from CODEOWNERS. Please can we get an idea if this is on your roadmap or how we can track progress on this? |
Beta Was this translation helpful? Give feedback.
-
This is a huge limitation in Github Apps, and is preventing us from deprecating old service accounts and migrating them fully to Github Apps. |
Beta Was this translation helpful? Give feedback.
Hi @0gajun,
Thank you for being here! Currently, GitHub Apps can’t be used in CODEOWNERS – that’s not supported. It’s something the team is considering for the future, and I’ll be sure to add your use case to the internal feature request.