Skip to content

Fix code scanning alert - Missing module docstring #142

Fix code scanning alert - Missing module docstring

Fix code scanning alert - Missing module docstring #142

---
# SPDX-FileCopyrightText: GitHub, Inc. and contributors
# SPDX-License-Identifier: MIT
#
name: "Add Label to Issue"
on: # yamllint disable-line rule:truthy
issues:
types:
- reopened
- opened
permissions:
contents: read
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["need triage"]
})