diff --git a/.github/workflows/generator-changelog.yml b/.github/workflows/generator-changelog.yml index f6e55226..5719b106 100644 --- a/.github/workflows/generator-changelog.yml +++ b/.github/workflows/generator-changelog.yml @@ -12,10 +12,7 @@ jobs: if: github.event.pull_request.merged == true steps: - name: Checkout code - uses: actions/checkout@v3 - with: - ref: main - + uses: actions/checkout@v4 - name: Update Changelog uses: AntonioGally/ag-changelogger/@main with: diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml new file mode 100644 index 00000000..b3734935 --- /dev/null +++ b/.github/workflows/pr-review.yml @@ -0,0 +1,33 @@ +name: Pierre-Review + +on: + pull_request: + pull_request_review_comment: + types: [created] + +concurrency: + group: + ${{ github.repository }}-${{ github.event.number || github.head_ref || + github.sha }}-${{ github.workflow }}-${{ github.event_name == + 'pull_request_review_comment' && 'pr_comment' || 'pr' }} + cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} + +jobs: + auto: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run Pierre-Review + uses: aummo/pierre-review@main + - name: PR Review & Summary Bot with AI and Chat Features Experimental + uses: primathontech/primathon-ai-code-reviewer-experimental@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + with: + debug: false + review_simple_changes: true + review_comment_lgtm: true \ No newline at end of file diff --git a/.github/workflows/workflow-reporter.yml b/.github/workflows/workflow-reporter.yml new file mode 100644 index 00000000..1b740d3c --- /dev/null +++ b/.github/workflows/workflow-reporter.yml @@ -0,0 +1,12 @@ +# Receive the workflow stats +workflowStat: true + +# Receive the workflow job stats +jobStat: true + + +salutation: Hello + +# Custom body message +# This will come after salutation +body: 持续集成工作流程失败。请查询相关详情