-
-
Notifications
You must be signed in to change notification settings - Fork 258
26 lines (22 loc) · 963 Bytes
/
Copy pathissue-labeled.yml
File metadata and controls
26 lines (22 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Issue Labeled
on:
issues:
types: [labeled]
permissions:
contents: read
issues: write
jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: need reproduction
if: github.event.label.name == 'need reproduction'
env:
GH_TOKEN: ${{ github.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
REPO: ${{ github.repository }}
run: |
body="Hello @${ISSUE_AUTHOR}. Please describe in detail the sequence of actions that leads to the bug (skip it if it's already there). Add screenshots of errors from the console. If possible add a video. Issues marked with \`need reproduction\` will be closed if they have no activity within 3 days."
gh issue comment "$ISSUE_NUMBER" --repo "$REPO" --body "$body"
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-label "pending triage" || true