Skip to content

Commit 9a86ad3

Browse files
committed
- updates inactivity message and delays
1 parent cb6e9bd commit 9a86ad3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/inactive-issues.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ env:
1515
NEEDS_ATTENTION_LABEL: "Needs attention"
1616
NEEDS_AUTHOR_FEEDBACK_LABEL: "Needs author feedback"
1717
NO_RECENT_ACTIVITY_LABEL: "No recent activity"
18-
NO_RECENT_ACTIVITY_DURATION: "00:00:01"
19-
NO_RECENT_ACTIVITY_DURATION_CLOSE: "00:00:01"
18+
NO_RECENT_ACTIVITY_DURATION_IN_DAYS: 7
19+
NO_RECENT_ACTIVITY_DURATION_CLOSE_IN_DAYS: 28
2020
ORG_NAME: ${{ github.repository_owner }}
2121
REPO_NAME: ${{ github.event.repository.name }}
22-
NO_RECENT_ACTIVITY_COMMENT: "This issue has been labeled because there has been no recent activity. It will be closed if no further activity occurs within 1 day."
22+
NO_RECENT_ACTIVITY_COMMENT: "This issue has been labeled with `No recent activity` because there has been no recent activity. It will be closed if no further activity occurs within 28 days. Please re-open this issue or open a new one after this delay if you need to."
2323

2424

2525
jobs:

scripts/close-no-recent.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$inactivityDelay = [timespan]::Parse($Env:NO_RECENT_ACTIVITY_DURATION_CLOSE)
1+
$inactivityDelay = [timespan]::FromDays([int]::Parse($Env:NO_RECENT_ACTIVITY_DURATION_CLOSE_IN_DAYS))
22
$oldIssues = gh issue list --label "$Env:NO_RECENT_ACTIVITY_LABEL" --state open --limit 100 --json number,author,createdAt | ConvertFrom-Json
33
foreach($oldIssue in $oldIssues) {
44
$lastComment = gh issue view $oldIssue.number --json comments | ConvertFrom-Json | Select-Object -ExpandProperty comments | Where-Object {$_.author.login -eq $oldIssue.author.login} | Select-Object -Last 1

scripts/label-no-recent.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$inactivityDelay = [timespan]::Parse($Env:NO_RECENT_ACTIVITY_DURATION)
1+
$inactivityDelay = [timespan]::FromDays([int]::Parse($Env:NO_RECENT_ACTIVITY_DURATION_IN_DAYS))
22
$oldIssues = gh issue list --label "$Env:NEEDS_AUTHOR_FEEDBACK_LABEL" --state open --limit 100 --json number,author,createdAt | ConvertFrom-Json
33
foreach($oldIssue in $oldIssues) {
44
$lastComment = gh issue view $oldIssue.number --json comments | ConvertFrom-Json | Select-Object -ExpandProperty comments | Where-Object {$_.author.login -eq $oldIssue.author.login} | Select-Object -Last 1

0 commit comments

Comments
 (0)