Skip to content

[Bug]: This site can’t be reached > host file entry not created #18

[Bug]: This site can’t be reached > host file entry not created

[Bug]: This site can’t be reached > host file entry not created #18

Workflow file for this run

name: 'Remove labels'
on:
issue_comment:
types: [created]
jobs:
remove_label:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v7
with:
script: |
const issue_num = context.issue.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
const issue = await github.rest.issues.get({
owner,
repo,
issue_number: issue_num
});
const labelsToRemove = ['needs more information', 'stale', 'Stale'];
for (const label of labelsToRemove) {
if (issue.data.labels.some(issueLabel => issueLabel.name === label)) {
await github.rest.issues.removeLabel({
issue_number: issue_num,
owner,
repo,
name: label
});
}
}