mirror of
https://github.com/home-assistant/core.git
synced 2026-02-26 12:55:16 +00:00
Assign no-stale to Tasks/Epic/Opportunity issue type (#163080)
This commit is contained in:
20
.github/workflows/restrict-task-creation.yml
vendored
20
.github/workflows/restrict-task-creation.yml
vendored
@@ -8,6 +8,26 @@ on:
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
add-no-stale:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
if: >-
|
||||
github.event.issue.type.name == 'Task'
|
||||
|| github.event.issue.type.name == 'Epic'
|
||||
|| github.event.issue.type.name == 'Opportunity'
|
||||
steps:
|
||||
- name: Add no-stale label
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
await github.rest.issues.addLabels({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number,
|
||||
labels: ['no-stale']
|
||||
});
|
||||
|
||||
check-authorization:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
Reference in New Issue
Block a user