From 2045a3640f5eab591b7823cdf9c10d26c8c58f0d Mon Sep 17 00:00:00 2001 From: bitliu Date: Thu, 7 Dec 2023 17:08:26 +0800 Subject: [PATCH] test Signed-off-by: bitliu --- .github/workflows/assign.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/assign.yaml b/.github/workflows/assign.yaml index 9b661cd..034ecaf 100644 --- a/.github/workflows/assign.yaml +++ b/.github/workflows/assign.yaml @@ -10,15 +10,14 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - name: Request review from team - uses: actions/github-script@v6 + - name: Comment + uses: peter-evans/create-or-update-comment@v3 with: - script: | - const pullRequestNumber = context.payload.pull_request.number; - await github.rest.pulls.requestReviewers({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: pullRequestNumber, - team_reviewers: ['gateway-reviewers'] - }); - github-token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body: | + This is a multi-line test comment + - With GitHub **Markdown** :sparkles: + - Created by [create-or-update-comment][1] + + [1]: https://github.com/peter-evans/create-or-update-comment + reactions: 'heart'