Skip to content

Add GitHub api to write comments #17

Add GitHub api to write comments

Add GitHub api to write comments #17

Workflow file for this run

name: CLA Checking
on:
push: # TODO: change event trigger to be pull request
jobs:
check-cla:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '20'
- name: install npm packages
run: npm install googleapis @octokit/core handlebars
- name: run script
run: node .github/actions/check-for-CLA/index.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}