-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
21 lines (18 loc) · 966 Bytes
/
Copy pathissue-needs-repro.yml
File metadata and controls
21 lines (18 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: "Issue: Needs Repro"
on:
issues:
types: [ labeled ]
jobs:
reply-labeled:
if: github.repository == 'withastro/astro'
runs-on: depot-ubuntu-24.04-arm-small
steps:
- name: Remove triaging label
if: github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'needs repro')
env:
GH_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
run: |
gh issue comment "$ISSUE_NUMBER" --repo "$REPO" --body "Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new/repro). Issues marked with `needs repro` will be closed if they have no activity within 3 days."
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-label "needs triage"