A javascript action that takes in an issue number and a label and does the labelling on demand
Required The repository token, i.e. secrets.GITHUB_TOKEN
Required The label name to apply to an issue
Required The issue number to apply the label to
on:
push:
branches:
- master
jobs:
applyLabel:
runs-on: ubuntu-latest
name: A job to apply label onto an issue
steps:
- uses: carmenfan/[email protected]
with:
issue-number: 10
label: "invalid"
github-token: ${{ secrets.GITHUB_TOKEN }}