-
Notifications
You must be signed in to change notification settings - Fork 216
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
Implementation of project board automations #3375
Conversation
…oject_automations_impl
Size Change: 0 B Total Size: 974 kB ℹ️ View Unchanged
|
Full-stack documentation: https://docs.openverse.org/_preview/3375 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. New files ➕: Changed files 🔄:
|
e277220
to
4e5a052
Compare
- name: Unzip artifact | ||
run: | | ||
unzip event_info.zip | ||
mv event.json /tmp/event.json |
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.
This is one thing that's bothering me a lot, it's two lines of Bash breaking up two action/github-script
s. Surely it could be done inside JS? Or the previous step in Bash?
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.
Could use https://www.npmjs.com/package/unzipper to do the unzipping in JavaScript? Converting the previous github script to bash looks more complicated to me (lots of gh cli response parsing 🫠).
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.
This looks excellent, @dhruvkb! Nice finding a workaround for PRs. Given the complexity, it looks like that could have been a separate PR, but now it's done 👍
Fixes
Fixes #3374 by @dhruvkb
Description
This PR implements the changes and additions to the project automations as per the plan outlined in #3042.
Given how GitHub Actions development goes, I'm anticipating quite a few revisions on this work once the actions start running and failing and exposing edge cases so if you could review it a bit deeply, we might catch and patch those cases faster.
Testing Instructions
The changes are so tightly coupled with GitHub that it's very hard to test them at all. Also they need an access token making it not possible to test them in CI. However here are some bits that you can test locally.
Project
export ACCESS_TOKEN=<your token>
.node
REPL from theautomations/js
directory.PullRequest
export ACCESS_TOKEN=<your token>
.node
REPL from theautomations/js
directory.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin