Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.33 KB

pr-comment-setup.md

File metadata and controls

27 lines (21 loc) · 1.33 KB

Setting up "PR comment trigger" feature

(1) Create a GitHub App

  1. Create a GitHub App. Webhook is not needed. The following permissions are required:
    • Metadata: Read only
    • Actions: Read and Write
    • Issues: Read and Write
    • Pull requests: Read and Write
  2. Install that App to the organization/user. Give that App access to nuxt/nuxt and nuxt/ecosystem-ci.
  3. Check the App ID. It's written on https://github.com/settings/apps/<github-app-name-slug>. This is used later. GitHub App ID
  4. Generate a private key. It can be generated on the same page with the App ID. The key will be downloaded when you generate it. GitHub App private key

(2) Adding secrets to nuxt/nuxt and nuxt/ecosystem-ci

  • nuxt/nuxt
    • ECOSYSTEM_CI_GITHUB_APP_ID: ID of the created GitHub App
    • ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY: the content of the private key of the created GitHub App
  • nuxt/ecosystem-ci
    • PR_GITHUB_APP_ID: ID of the created GitHub App
    • PR_GITHUB_APP_PRIVATE_KEY: the content of the private key of the created GitHub App

(3) Adding workflows to nuxt/nuxt

Add this workflow.