Next: , Previous: , Up: GitHub API Authentication   [Index]


1.1.3 GitHub API Authentication—GitHub Actions

In this post, I will explain how to create a GitHub Action workflow that adds a comment to every new pull request using

  1. A GitHub Action workflow file: .github/workflows/pr-comment.yml
  2. A single JavaScript file: .github/actions/pr-comment.js

Both files live in the same repository where the comments will be added.

You will need:

  1. git and Node.js installed
  2. A repository on GitHub
  3. the repository cloned to your local machine