💁🏻 30 Minutes to Merge: Automating nose booping using Actions
📅 Tuesday, May 25, 2021
🕐 11:00am Pacific Time (in your timezone)
🎙️ hosted by @github (github.community event)
🏷️ Automation, Actions
Subscribe to this issues to get a notification before the show begins and a summary after the show concludes.
Together with @jlengstorf, we created a CLI to bump a nose-boop counter on Jason's GitHub profile page at https://github.com/jlengstorf/. We created a CLI and published it to npm. You can run it with npx boop-jasons-nose. It will create an issue in https://github.com/jlengstorf/jlengstorf.
We then created a GitHub App and deployed it to Netlify functions. The app receives webhook requests for new issues, and then is using its own credentials to bump the nose-boop counter (function source code).
We planned to use GitHub Actions, but Actions experienced problems at the time of the show, so we skipped that part and used a GitHub App instead.
Outline
[x] Quick recap of what we did during the Learn With Jason show. See gr2m/boop-gregors-nose. The relevant bit we want to automate with GitHub Actions is: for each newly created issue, bump the nose-boop counter by one.
💁🏻 30 Minutes to Merge: Automating nose booping using Actions 📅 Tuesday, May 25, 2021 🕐 11:00am Pacific Time (in your timezone) 🎙️ hosted by @github (github.community event) 🏷️ Automation, Actions
Subscribe to this issues to get a notification before the show begins and a summary after the show concludes.
This will be a a follow to the show on learnwithjason.dev: https://www.learnwithjason.dev/github-automation-with-octokit (video, see also #11)
Together with @jlengstorf, we created a CLI to bump a nose-boop counter on Jason's GitHub profile page at https://github.com/jlengstorf/. We created a CLI and published it to npm. You can run it with
npx boop-jasons-nose
. It will create an issue in https://github.com/jlengstorf/jlengstorf.We then created a GitHub App and deployed it to Netlify functions. The app receives webhook requests for new issues, and then is using its own credentials to bump the nose-boop counter (function source code).
We planned to use GitHub Actions, but Actions experienced problems at the time of the show, so we skipped that part and used a GitHub App instead.
Outline
.github/workflows/boop.yml
and runcli.js
cli.js
withaction.js
and authenticate usingGITHUB_TOKEN
action.yml
- usepersonal-access-token
inputRecording
Shownotes
octokit
for sending requests to update the README and to create issues.@octokit/auth-oauth-device
as the authentication strategy in the CLI@actions/core
to read thepersonal-access-token
input from GitHub Actions WorkflowsTodos