From 3a0789d92af499b70def61cb91ae07f58f6d54e5 Mon Sep 17 00:00:00 2001 From: A1lo Date: Sun, 14 Aug 2022 16:16:37 +0800 Subject: [PATCH 1/2] feat: support add a comment on staling or closing issue/pr --- .github/workflows/idle.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/idle.yml b/.github/workflows/idle.yml index 9498569..2482cea 100644 --- a/.github/workflows/idle.yml +++ b/.github/workflows/idle.yml @@ -22,6 +22,22 @@ on: default: 37 required: false type: number + close-issue-meesage: + description: The comment message will be added to the issues when closing it automatically. + required: false + type: string + stale-issue-message: + description: The comment message will be added to the issue when staling it automatically. + required: false + type: string + close-pr-message: + description: The comment message will be added to the PR when closing it automatically. + required: false + type: string + stale-pr-message: + description: The comment message will be added to the PR when staling it automatically. + required: false + type: string jobs: idle: @@ -34,6 +50,10 @@ jobs: days-before-close: ${{ inputs.days-before-close }} stale-issue-label: ${{ inputs.label }} stale-pr-label: ${{ inputs.label }} + close-issue-meesage: ${{ inputs.close-issue-meesage }} + stale-issue-message: ${{ inputs.stale-issue-message }} + close-pr-message: ${{ inputs.close-pr-message }} + stale-pr-message: ${{ inputs.stale-pr-message }} enable-statistics: true ascending: true # oldest first, for now operations-per-run: 300 From b56129aacbf3acbb1a35ccad193f7893dcf09d5e Mon Sep 17 00:00:00 2001 From: A1lo Date: Thu, 12 Oct 2023 19:48:58 +0800 Subject: [PATCH 2/2] fix typos and update the descriptions Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com> --- .github/workflows/idle.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/idle.yml b/.github/workflows/idle.yml index ff6f5e1..b36bd65 100644 --- a/.github/workflows/idle.yml +++ b/.github/workflows/idle.yml @@ -22,20 +22,20 @@ on: default: 30 required: false type: number - close-issue-meesage: - description: The comment message will be added to the issues when closing it automatically. + close-issue-message: + description: Comment to add when a stale issue is closed. required: false type: string stale-issue-message: - description: The comment message will be added to the issue when staling it automatically. + description: Comment to add when an issue becomes stale. required: false type: string close-pr-message: - description: The comment message will be added to the PR when closing it automatically. + description: Comment to add when a stale PR is closed. required: false type: string stale-pr-message: - description: The comment message will be added to the PR when staling it automatically. + description: Comment to add when a PR becomes stale. required: false type: string @@ -50,7 +50,7 @@ jobs: days-before-close: ${{ inputs.days-before-close }} stale-issue-label: ${{ inputs.label }} stale-pr-label: ${{ inputs.label }} - close-issue-meesage: ${{ inputs.close-issue-meesage }} + close-issue-message: ${{ inputs.close-issue-message }} stale-issue-message: ${{ inputs.stale-issue-message }} close-pr-message: ${{ inputs.close-pr-message }} stale-pr-message: ${{ inputs.stale-pr-message }}