-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Replace Dependabot reviewers config with CODEOWNERS #21864
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
Conversation
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr21864-bcaeae1 | |
Commit | bcaeae1 | |
Direct Download | wordpress-prototype-build-pr21864-bcaeae1.apk |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr21864-bcaeae1 | |
Commit | bcaeae1 | |
Direct Download | jetpack-prototype-build-pr21864-bcaeae1.apk |
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.
👋 @twstokes and thanks for this change, I am request changes as I think the syntax is incomplete, plus we might want to restrict this automation to a specific file. 🤔
Let me know what you think! 🙏
.github/CODEOWNERS
Outdated
@@ -0,0 +1 @@ | |||
@wordpress-mobile/android-developers |
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.
Blocker (🚫): I think that this would not work as expected for the below reasons:
- The correct syntax expects a file location parameter first, or a
*
regex if this would mean all changes within the project: - To (somehow) replicate assigning
@wordpress-mobile/android-developers
for Dependabot (:dependabot:) PRs only, and not all changes, I recommend using this configuration instead (with an associated comment):
# Dependabot
/gradle/libs.versions.toml @wordpress-mobile/android-developers
FYI: Note that the above change will also assign @wordpress-mobile/android-developers
to such changes, even if they don't come through Dependabot (:dependabot:) as you cannot restrict CODEOWNERS
to only Dependabot (:dependabot:) PRs; any PR (manual or automated) touching this file will trigger reviewer assignment.
PS: You could check a random Dependabot (:dependabot:) PR to understand why we target gradle/libs.versions.toml
.
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.
Cc @wordpress-mobile/android-developers
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.
Thanks for the review @ParaskP7! I definitely missed the asterisk when reading their docs.
PRs only, and not all changes
Yep that's a good point.
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.
Thanks for the change @twstokes ! 🚀
I am very curious why this is shown as a bug when looking at the file changes, hmmm... 🤔
Unknown owner on line 2: make sure the team @wordpress-mobile/android-developers exists, is publicly visible, and has write access to the repository
/gradle/libs.versions.toml @wordpress-mobile/android-developers
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.
Same @ParaskP7. 🤔
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.
Yep:
The people you choose as code owners must have write permissions for the repository.
Reviewers must have at least read access to the repository.
So this isn't as 1:1 as originally thought.
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.
@ParaskP7 I think the solution here is to bump up the access of that (currently) two-person team since they are the devs that work directly on this app: https://github.com/orgs/wordpress-mobile/teams/android-developers
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.
I think the only reason they haven't hit blockers is because they are also members of a broader group that has higher access.
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.
I've bumped them to the Maintain role and the CODEOWNERS check is now green.
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.
Agreed to all, awesome, thanks @twstokes ! 🙇 ❤️ 🚀
0221954
to
8b24f8e
Compare
|
Description
Removes the reviewers configuration of Dependabot and replaces it with CODEOWNERS. See: https://github.blog/changelog/2025-04-29-dependabot-reviewers-configuration-option-being-replaced-by-code-owners/
Testing