Github Bot(yaml)在 PR 时不发表评论

问题描述 投票:0回答:1

这是我放置的代码,但当有人请求公关时它不会发表评论,我们将不胜感激

name: Greetings

on: 
  pull_request_target:

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
      - name: Greet PR Submitter
        uses: actions/first-interaction@v1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          pr-message: |
            Hello @${{ github.actor }}, thank you for submitting a PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
            - Verify your PR is **up-to-date with origin/master.** 
            - Verify all Continuous Integration (CI) **checks are passing**.
            - Reduce changes to the absolute **minimum** required for your bug fix or feature addition. _"It is not daily increase but daily decrease, hack away the unessential." - Bruce Lee._

工作流程已触发并成功,但没有发表任何评论,也检查了权限

yaml github-actions
1个回答
0
投票
name: Greetings

on:
  pull_request_target:

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
      - name: Greet PR Submitter
        uses: actions/first-interaction@v1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          pr-message: |
            Hello @${{ github.actor }}, thank you for submitting a PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
            - Verify your PR is up-to-date with origin/master.
            - Verify all Continuous Integration (CI) checks are passing.
            - Reduce changes to the absolute minimum required for your bug fix or feature addition.

            "It is not daily increase but daily decrease, hack away the unessential." - Bruce Lee.
© www.soinside.com 2019 - 2024. All rights reserved.