0

我有批准拉取请求的 GitHub 操作:

      - name: Approve a PR
        run: gh pr review --approve "$PR_URL"
        env:
          PR_URL: ${{github.event.pull_request.html_url}}
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

当操作运行时,批准由 执行github-actions。有什么方法可以gh pr review --approve作为不同的用户执行吗?

4

1 回答 1

0

我可以在GITHUB_TOKEN字段中为不同的用户使用令牌。

于 2022-02-23T22:00:53.813 回答