Skip to content

Commit

Permalink
Issues management
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebaltazar committed Nov 12, 2024
1 parent cbff462 commit 001c664
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/handle-new-issue-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: '💬 Handle new issue comment'
on:
issue_comment:
types: [created]

jobs:
handle_new_issue_comment:
runs-on: ubuntu-latest
name: Handle new issue comment
steps:
- name: Toggle awaiting-reply label
uses: jd-solanki/gh-action-toggle-awaiting-reply-label@v2.1.2
with:
label: awaiting-reply
19 changes: 19 additions & 0 deletions .github/workflows/handle-new-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Handle new issue'
on:
issues:
types: [opened]

jobs:
handle_new_issue:
runs-on: ubuntu-latest
name: Handle new issue
steps:
- name: Find duplicates
uses: wow-actions/potential-duplicates@v1.0.8
with:
GITHUB_TOKEN: ${{ github.token }}
label: duplicate
comment: >
Potential duplicates: {{#issues}}
- #{{ number }} _({{ accuracy }}% Match)_
{{/issues}}
18 changes: 18 additions & 0 deletions .github/workflows/issue-staler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: '😶‍🌫️ Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-message: 'This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.'
close-issue-message: 'This issue has been automatically marked as closed because it has no recent activity.'
stale-issue-label: 'stale'
only-labels: 'awaiting-reply'
exempt-issue-labels: 'triage'
days-before-stale: 7
days-before-close: 7

0 comments on commit 001c664

Please sign in to comment.