Skip to content

Workflow to auto label Pull Request #1

Workflow to auto label Pull Request

Workflow to auto label Pull Request #1

Workflow file for this run

name: Add Label to PR
on:
pull_request:
types: [opened]
jobs:
add-label:
runs-on: ubuntu-latest
steps:
- name: Add label to PR
uses: actions/github-script@v6
with:
script: |
const prNumber = context.payload.pull_request.number;
const label = 'APPROVED_FOR_CI';
await github.issues.addLabels({
...context.repo,
issue_number: prNumber,
labels: [label],
});