ci: tag maintainers for review#6921
Conversation
4cf43bf to
8128587
Compare
|
@rycee I think our github token needs.
I don't have access to see the settings on the repo, though. |
| for PATH_FORMAT in \ | ||
| "$FILE" \ | ||
| "/Users/khaneliman/github/home-manager/$FILE" \ | ||
| "/$PWD/$FILE" \ | ||
| "$PWD/$FILE" | ||
| do |
There was a problem hiding this comment.
Is this just for figuring out which path to use while developing the workflow?
| echo "Trying path format: $PATH_FORMAT" | ||
|
|
||
| # Get maintainers for this file using the current path format | ||
| MAINTAINERS=$(jq -r ".[\"$PATH_FORMAT\"] | if . != null then .[].github else empty end" <<< "$MODULE_MAINTAINERS" 2>/dev/null || true) |
There was a problem hiding this comment.
Wouldn't it be possible to make jq read the file directly?
| MAINTAINERS=$(jq -r ".[\"$PATH_FORMAT\"] | if . != null then .[].github else empty end" <<< "$MODULE_MAINTAINERS" 2>/dev/null || true) | |
| MAINTAINERS=$(jq -r ".[\"$PATH_FORMAT\"] | if . != null then .[].github else empty end" ./result 2>/dev/null || true) |
|
Looks nice! About the permissions I'm not certain. From what I could see in the GitHub documentation it should be possible to add a permissions:
contents: read
pull-requests: writeperhaps. This seems to be used by the eval flow in Nixpkgs: https://github.com/NixOS/nixpkgs/blob/d66115b18ccf2fbb03da4f2ea8a41499eb8d3136/.github/workflows/eval.yml#L241-L243 |
I'm wondering if this is related to something I've seen previously, github wont let us request reviews from those who aren't collaborators. In nixpkgs, we add everyone to the Nixos organization. We might not be able to do this here, then.... Tested with this block in there and that seems to be the case |
dbe8d01 to
e557a79
Compare
2c4c045 to
d46842a
Compare
|
Using PR target I need to check this in to really test it. But from a test in my repo with https://github.com/khaneliman/home-manager/actions/runs/16031756101/job/45233835846?pr=567 it appeared to make it down to requesting a review but failed because it was looking against my fork and not this repo. EDIT: Still have some cleanup I want to do |
36d7f67 to
d12124f
Compare
|
https://github.com/khaneliman/home-manager/actions/runs/16033202876/job/45238595516?pr=568 looks even better. Was able to test simplifying some logic and handling people who have already been reviewing so they dont get re-requested. |
|
Would like to test against someone invited to my fork as a collaborate to make sure that flow works to avoid a bunch of fixes PRs. |
Want to create an easier way to notify maintainers that someone is working on their module. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
|
Sweet, got it working khaneliman#568 |
Want to create an easier way to notify maintainers that someone is working on their module. Added a workflow for requesting a review from any maintainers that have joined the `home-manager-maintainers` team in the organization. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Want to create an easier way to notify maintainers that someone is working on their module. Added a workflow for requesting a review from any maintainers that have joined the `home-manager-maintainers` team in the organization. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Description
Checklist
Change is backwards compatible.
Code formatted with
nix fmtor./format.Code tested through
nix-shell --pure tests -A run.allor
nix build --reference-lock-file flake.lock ./tests#test-allusing Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC