From a23bbf2ef55f4a2cd93e5a1c9949c052e57d495c Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 26 Aug 2024 16:21:29 +0200 Subject: [PATCH 1/4] added closed issue message workflow --- .github/workflows/closed-issue-message.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/closed-issue-message.yml diff --git a/.github/workflows/closed-issue-message.yml b/.github/workflows/closed-issue-message.yml new file mode 100644 index 00000000000000..5a1c8da8232f7a --- /dev/null +++ b/.github/workflows/closed-issue-message.yml @@ -0,0 +1,17 @@ +name: Add closing message to issue + +on: + issues: + types: + - closed + workflow_call: + +permissions: {} + +jobs: + add-comment: + name: Add closing message + uses: mui/mui-public/.github/workflows/reusable/add-closing-message-to-issue.yml@master + permissions: + contents: read + issues: write From 9284568001c152e580e6bf6efe31480b0ae17fbd Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 26 Aug 2024 16:22:40 +0200 Subject: [PATCH 2/4] changed revision to a commit SHA --- .github/workflows/closed-issue-message.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/closed-issue-message.yml b/.github/workflows/closed-issue-message.yml index 5a1c8da8232f7a..c1c228ea70f948 100644 --- a/.github/workflows/closed-issue-message.yml +++ b/.github/workflows/closed-issue-message.yml @@ -11,7 +11,7 @@ permissions: {} jobs: add-comment: name: Add closing message - uses: mui/mui-public/.github/workflows/reusable/add-closing-message-to-issue.yml@master + uses: mui/mui-public/.github/workflows/reusable/add-closing-message-to-issue.yml@04275a99fe10cee127ee417b8a872cfebc7d08e7 permissions: contents: read issues: write From b67700b2274c0530f98b634de4e7e7271e1ac427 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 26 Aug 2024 16:44:00 +0200 Subject: [PATCH 3/4] added state_reason check to only run this on "completed" issues --- .github/workflows/closed-issue-message.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/closed-issue-message.yml b/.github/workflows/closed-issue-message.yml index c1c228ea70f948..79b1b775e94987 100644 --- a/.github/workflows/closed-issue-message.yml +++ b/.github/workflows/closed-issue-message.yml @@ -11,6 +11,7 @@ permissions: {} jobs: add-comment: name: Add closing message + if: github.event.issue.state_reason == 'completed' uses: mui/mui-public/.github/workflows/reusable/add-closing-message-to-issue.yml@04275a99fe10cee127ee417b8a872cfebc7d08e7 permissions: contents: read From 8382256de220229314179db0a27f1034be38f461 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 26 Aug 2024 17:03:43 +0200 Subject: [PATCH 4/4] added closing reason to stackoverflow workflow to prevent closing message --- .github/workflows/support-stackoverflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/support-stackoverflow.yml b/.github/workflows/support-stackoverflow.yml index 5bf22123293d15..5ba93685846e1b 100644 --- a/.github/workflows/support-stackoverflow.yml +++ b/.github/workflows/support-stackoverflow.yml @@ -32,4 +32,5 @@ jobs: If you have a question on Stack Overflow, you are welcome to link to it here, it might help others. If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened. close-issue: true + issue-close-reason: 'not planned' lock-issue: false