I tried making my first GitHub action here: https://github.com/spack/spack/pull/12269. The action looks at who modified certain files in a pull requet, then adds them as reviewers. Note that, yes, this is *like* the CODEOWNERS, but we want package maintainers to be able to add their names to a maintainer list in their own package.py files instead of always updating a single file. I added my action to main.workflow and attempted to trigger it with a pull request here: https://github.com/spack/spack/pull/12269 Now, my Actions tab doesn't work and just says "Sorry, something went wrong. Reload?". I'm not sure how best to get debug output from the actions, or how to understand what's wrong. Any pointers?
... View more
I'm trying to create an action that will add reviewers to PRs, but I'm not sure this is possible based on the guidance here: https://developer.github.com/actions/managing-workflows/workflow-configuration-options/#pull-request-events-for-forked-repositories For context, in Spack, there are ~3000 package recipes, and some of them have a `maintainers` field. I want the action to query the maintainers for any modified package recipes, and add them as reviewers. I'm not seeing how I can actually make this happen with the restrictions on actions for forked repositories. The token in `$GITHUB_TOKEN` will only have permissions of the user who created the PR, and they won't be able to do anything to my repo, right? Is there something I'm missing? If this isn't possible, will it be possible one day? It'd be nice to grant actions permissions to do things like this.
... View more