Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:building_construction: Apply or remove label when waiting for response

Alicia Sykes2162424ad098
diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml
index 9c448e11..86fa3222 100644
--- a/.github/workflows/close-stale-issues.yml
+++ b/.github/workflows/close-stale-issues.yml
@@ -13,7 +13,7 @@ jobs:
uses: actions/stale@v4
with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
- days-before-stale: 42
+ days-before-stale: 30
days-before-close: 5
operations-per-run: 30
remove-stale-when-updated: true
@@ -41,9 +41,9 @@ jobs:
uses: actions/stale@v4
with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
- days-before-stale: 7
+ days-before-stale: 5
days-before-close: 3
- operations-per-run: 10
+ operations-per-run: 30
remove-stale-when-updated: true
stale-issue-message: >
Hello! Looks like additional info is required for this issue to be addressed.
@@ -55,3 +55,25 @@ jobs:
close-issue-label: 'πŸ•ΈοΈ Inactive'
exempt-issue-labels: 'πŸ“Œ Keep Open'
exempt-pr-labels: 'πŸ“Œ Keep Open'
+
+ # Comment on issues that I should have replied to
+ - name: Notify Repo Owner to Respond
+ uses: actions/stale@v4
+ with:
+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
+ days-before-stale: 7
+ days-before-close: 365
+ operations-per-run: 30
+ remove-stale-when-updated: true
+ stale-issue-message: Hey @Lissy93 - Don't forget to respond!
+ stale-pr-message: Hey @Lissy93 - Don't forget to respond!
+ only-labels: 'πŸ‘€ Awaiting Maintainer Response'
+ labels-to-remove-when-unstale: 'πŸ‘€ Awaiting Maintainer Response'
+ close-issue-message: 'Closed due to no response from repo author for over a year'
+ close-pr-message: 'Closed due to no response from repo author for over a year'
+ stale-issue-label: 'πŸ‘€ Awaiting Maintainer Response'
+ stale-pr-label: 'πŸ‘€ Awaiting Maintainer Response'
+ close-issue-label: 'πŸ•ΈοΈ Inactive'
+ close-pr-label: 'πŸ•ΈοΈ Inactive'
+ exempt-issue-labels: 'πŸ“Œ Keep Open'
+ exempt-pr-labels: 'πŸ“Œ Keep Open'
\ No newline at end of file
diff --git a/.github/workflows/remove-stale-label.yml b/.github/workflows/remove-stale-label.yml
index 6eab2210..fea0fc4f 100644
--- a/.github/workflows/remove-stale-label.yml
+++ b/.github/workflows/remove-stale-label.yml
@@ -1,13 +1,13 @@
# When a new comment is added to an issue, if it had the Stale or Awaiting User Response labels,
# then those labels will be removed, providing it was not user lissy93 who added the commend.
-name: 🎯 Remove Stale Label on Update
+name: 🎯 Add/ Remove Awaiting Response Labels
on:
issue_comment:
types: [created]
jobs:
remove-stale:
runs-on: ubuntu-latest
- if: ${{ github.event.inputs.name != 'liss-bot' }}
+ if: ${{ github.event.inputs.name != 'liss-bot' && github.event.inputs.name != 'lissy93' }}
steps:
- name: Remove Stale labels when Updated
uses: actions-cool/issues-helper@v2
@@ -16,3 +16,27 @@ jobs:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: '🚏 Awaiting User Response,⚰️ Stale'
+
+ add-awaiting-author:
+ runs-on: ubuntu-latest
+ if: ${{ github.event.inputs.name != 'liss-bot' && github.event.inputs.name != 'lissy93' }}
+ steps:
+ - name: Add Awaiting Author labels when Updated
+ uses: actions-cool/issues-helper@v2
+ with:
+ actions: add-labels
+ token: ${{ secrets.BOT_GITHUB_TOKEN }}
+ issue-number: ${{ github.event.issue.number }}
+ labels: 'πŸ‘€ Awaiting Maintainer Response'
+
+ remove-awaiting-author:
+ runs-on: ubuntu-latest
+ if: ${{ github.event.inputs.name == 'lissy93' }}
+ steps:
+ - name: Remove Awaiting Author labels when Updated
+ uses: actions-cool/issues-helper@v2
+ with:
+ actions: remove-labels
+ token: ${{ secrets.BOT_GITHUB_TOKEN }}
+ issue-number: ${{ github.event.issue.number }}
+ labels: 'πŸ‘€ Awaiting Maintainer Response'