From c4ee95a40ac2facc0dc081655879e691114f09f2 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:25:55 +0900 Subject: [PATCH] Add workflow to request release review via comment This workflow triggers a comment reply when an issue comment with '/request-release-review' is created, providing guidance for the release review process. --- .github/workflows/request-release-review.yml | 50 ++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/request-release-review.yml diff --git a/.github/workflows/request-release-review.yml b/.github/workflows/request-release-review.yml new file mode 100644 index 0000000000..2bcbf70a42 --- /dev/null +++ b/.github/workflows/request-release-review.yml @@ -0,0 +1,50 @@ +name: Request release review + +on: + issue_comment: + types: [created] + +jobs: + reply: + if: github.event.comment.body == '/request-release-review' + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + steps: + - name: Reply + uses: actions/github-script@v6 + with: + script: | + const body = `To dev team (@misskey-dev/dev): + + リリースが提案されています :rocket: + + GOの場合はapprove、NO GOの場合はその旨コメントをお願いいたします。 + + 判断にあたって考慮すべき観点は、 + + - やり残したことはないか? + - CHANGELOGは過不足ないか? + - バージョンに問題はないか?(月跨いでいるのに更新忘れているなど) + - 再考すべき仕様・実装はないか? + - ベータ版を検証したサーバーから不具合の報告等は上がってないか? + - (セキュリティの修正や重要なバグ修正などのため)リリースを急いだ方が良いか?そうではないか? + - Actionsが落ちていないか? + + などが挙げられます。 + + ご協力ありがとうございます :sparkles: + ` + + const issue_number = context.payload.issue ? context.payload.issue.number : (context.payload.pull_request && context.payload.pull_request.number) + if (!issue_number) { + console.log('No issue or PR number found in payload; skipping') + } else { + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number, + body, + }) + }