diff --git a/.github/workflows/public_stale-issues.yaml b/.github/workflows/public_stale-issues.yaml index ca83217..eb8df31 100644 --- a/.github/workflows/public_stale-issues.yaml +++ b/.github/workflows/public_stale-issues.yaml @@ -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: @@ -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 diff --git a/docs/workflows.md b/docs/workflows.md index d92cfed..1b0526f 100644 --- a/docs/workflows.md +++ b/docs/workflows.md @@ -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 @@ -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