Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.36 KB

pr-comment-setup.md

File metadata and controls

27 lines (21 loc) · 1.36 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 vitejs/vite and vitejs/vite-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 vitejs/vite and vitejs/vite-ecosystem-ci

  • vitejs/vite
    • 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
  • vitejs/vite-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 vitejs/vite

Add this workflow.