Skip to content

Ish Sherlock

Ish Sherlock #1077

Workflow file for this run

name: Auto-Label
on:
issues:
types: [opened]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: satackey/action-js-inline@bf6fcaf35de1ed03bcfd25a0a8b1fa4c551ec908
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
script: |
const core = require('@actions/core');
const github = require('@actions/github');
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
const {repo, owner, number} = github.context.issue;
await octokit.rest.issues.addLabels({repo, owner, issue_number: number, labels: ['unconfirmed']});