Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/public_stale-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Months without activity before warning issue owners (one month = 30 days). Issues close 30 days after the warning.
type: number
default: 6
comment-postfix:
description: Postfix message to include in the stale warning comment.
type: string
default: ''

jobs:
staleIssues:
Expand Down Expand Up @@ -45,6 +49,7 @@ jobs:
stale-issue-message: >-
This issue has had no activity for ${{ inputs.stale-months }} month(s).
It will be closed as not planned in 30 days unless it is updated or commented on.
${{ inputs.comment-postfix }}
close-issue-message: Closed as not planned after 30 days without activity following the stale warning.
close-issue-reason: not_planned
remove-stale-when-updated: true
Expand Down
8 changes: 5 additions & 3 deletions docs/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,10 @@ Optional. Wraps [`actions/stale`](https://github.com/actions/stale) to warn on i
as **not planned** 30 days later if still inactive. Locked issues are skipped. Pull requests use the same stale and
close thresholds, with the `Stale` label and no warning or closing comments.

| Input | Type | Default | Description |
| -------------- | ------ | ------- | -------------------------------------------------------------------- |
| `stale-months` | number | `6` | Optional whole number of inactive months (1–12); one month = 30 days |
| Input | Type | Default | Description |
| ----------------- | ------ | ------- | ----------------------------------------------------------------------- |
| `stale-months` | number | `6` | Optional whole number of inactive months (1–12); one month = 30 days |
| `comment-postfix` | string | `''` | Optional postfix message to add at the end of the stale warning comment |

```yaml
name: Close stale issues
Expand All @@ -403,6 +404,7 @@ jobs:
uses: apify/apify-test-tools/.github/workflows/public_stale-issues.yaml@workflows-v0
with:
stale-months: 6
comment-postfix: '@SomeCodeOwner @AwesomeTeamMember @org/team-full-backlog'
```

With `stale-months: 6`, an issue is labeled `stale` and warned after 180 days without activity, then closed after
Expand Down
Loading