Skip to content

Chore add label on pr #7

Chore add label on pr

Chore add label on pr #7

Workflow file for this run

name: "Add labels"
on:
pull_request:
permissions:
pull-requests: read
jobs:
apply-label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const { execSync } = require('child_process')
const { commits } = context.payload.pull_request
const rawFiles = execSync(`git diff --name-only HEAD HEAD~${commits}`).toString()
const files = rawFiles.split('\n').filter(Boolean)
console.log(files)