-
Notifications
You must be signed in to change notification settings - Fork 18
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
✨ Add github action that moves peer review issues issues as the label on the review is updated across our peer review project board. #154
Comments
Note: i have a start on this code that works in using graphQL if anyone wants to tackle this. this pr has a VERY messy example of interfacing with the API and finding an issue on a board and moving it based on it's label status. We now just need to
if my code is too painful to read you can also rewrite it entirely. i have no ego related to code that i write! |
@FFY00 this is a mapping of labels to status:
column_name_mapping = { Filipe i'll add more mappings in just a bit but this is a start / enough for you to work on things. |
@FFY00 here is a gist with my semi working code! https://gist.github.com/lwasser/05c4094bfa3166d9fd304db54db56ba6 |
@FFY00 link is here now - https://gist.github.com/lwasser/05c4094bfa3166d9fd304db54db56ba6 |
@lwasser, thanks for the code! It was a great help. I did try to use the REST API, but found that it was broken for newer projects, so I started implementing it with the GraphQL API based on your work, but that quickly lead to something that was more complicated than I think it should be. For that reason, I decided to implement it using github actions directly, which is not as nice, but certainly nicer than the complex script would end up being. PR: pyOpenSci/software-submission#182 For future reference, here's the code I ended up writing for the script: https://gist.github.com/FFY00/cf322dc62692f25ea321cffca3fa9e77 |
closing this as it is working now!! @FFY00 thank you AGAIN for your help!! |
We currently have a peer review project board here that we use to track current reviews. this is helpful to keep tabs on our editorial process. Most often editors don't update the review status on the board but they DO update the labels for each issue.
It easy not too difficult to move an issue to a new "column" or status on the project board using the GitHUB api / graphQL. I have some code that is a proof of concept below.
There are also actions out there but i'm not sure if any existing actions do what we need them to do. what we want to do is.
0/pre-review-checks
move it to the pre-review-checks status on the board1-editor-assigned
then move the package tounder-review
status on the board6/pyOS-approved 🚀🚀🚀
label, then update the status topyos-accepted
9/joss-approved
label assigned, update the status tojoss-accepted
on the board.I looked into the actions below
but i haven't been able to get them to work.
Here is a discussion of doing this using a github action and a github app!
Authentication via GitHub Apps actions/add-to-project#158
GitHub action
Once we get the python code working to update the board, we'd next want to create an action that implements this script and updates the board.
Tasks
this issue could be divided into discrete subtasks
it is also fine if we want to refactor my script in smaller chunks during a sprint vs doing all of the work !
The text was updated successfully, but these errors were encountered: