Skip to content

Commit

Permalink
ci: Add auto-labelling like the main repo has for issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Nov 12, 2023
1 parent 7e5ccb7 commit 9022997
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Issue Labeled

on:
issues:
types: [labeled]

jobs:
reply_labelled:
if: github.repository_owner == 'withastro'
uses: withastro/automation/.github/workflows/issue-labeled.yml@main
with:
repro_message_content: |
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or at least sharing the file where the issue happen. Issues marked with `needs repro` will be closed if they have no activity within 3 days.
11 changes: 11 additions & 0 deletions .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Label issues
on:
issues:
types:
- reopened
- opened

jobs:
label_issues:
if: github.repository_owner == 'withastro'
uses: withastro/automation/.github/workflows/issue-opened.yml@main

0 comments on commit 9022997

Please sign in to comment.