Skip to content

Commit

Permalink
Try this out
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Squyres <jeff@squyres.com>
  • Loading branch information
jsquyres committed Feb 19, 2024
1 parent 7081d1a commit bf639e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/close-stale-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,22 @@ jobs:
with:
# If there are no replies for 14 days, mark the issue as
# "stale" (and emit a warning).
days-before-stale: 14
days-before-stale: 1
# If there are no replies for 14 days after becoming stale,
# then close the issue (and emit a message explaining why).
days-before-close: 14
days-before-close: 1

# Never close PRs
days-before-pr-close: -1
< days-before-pr-close: -1

# We only close issues with this label
only-labels: "State: Awaiting user information"

# When a user replies, add this label
labels-to-add-when-unstale: "State: Awaiting developer information"

# When an issue is closed after both timeouts, add this
# label
close-issue-label: Closed due to no reply

# Messages that we put in comments on issues
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# This Action is run in conjunction with close-stale-issues.yaml. See
# that file for a more complete description of how they work together.

name: 'Remove "State: Awaiting user information" label when there has been a reply'
name: Remove relevant label when there has been a reply
on:
issue_comment:
types:
- created

jobs:
build:
remove-await-user:
runs-on: ubuntu-latest
# From
# https://github.com/marketplace/actions/close-issues-after-no-reply:
Expand All @@ -28,3 +28,24 @@ jobs:
label: "State: Awaiting user information"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

remove-await-devel:
runs-on: ubuntu-latest
# From
# https://github.com/marketplace/actions/close-issues-after-no-reply:
# only remove the label if someone replies to an issue who is an
# owner or collaborator on the repo.
if: |
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR'
steps:
- name: 'Remove "State: Awaiting developer information" label'
uses: octokit/request-action@v2.x
continue-on-error: true
with:
route: DELETE /repos/:repository/issues/:issue/labels/:label
repository: ${{ github.repository }}
issue: ${{ github.event.issue.number }}
label: "State: Awaiting user information"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bf639e9

Please # to comment.