This is an automated email from the ASF dual-hosted git repository.
paulk-asert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 3aba339dfa don't try to comment performance on PRs
3aba339dfa is described below
commit 3aba339dfa3965f3abf8a99a7a877086320bbe61
Author: Paul King <[email protected]>
AuthorDate: Sun May 31 08:07:53 2026 +1000
don't try to comment performance on PRs
---
.github/workflows/groovy-jmh-classic.yml | 3 ++-
.github/workflows/groovy-jmh.yml | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/groovy-jmh-classic.yml
b/.github/workflows/groovy-jmh-classic.yml
index ef4eae43c6..1e3f9449a0 100644
--- a/.github/workflows/groovy-jmh-classic.yml
+++ b/.github/workflows/groovy-jmh-classic.yml
@@ -77,7 +77,8 @@ jobs:
external-data-json-path: ./prev.json
save-data-file: false
summary-always: true
- comment-on-alert: true
+ # fork PRs get a read-only token; commenting there would 403 and
fail the step
+ comment-on-alert: ${{ github.event.pull_request.head.repo.full_name
== github.repository }}
alert-threshold: '150%'
fail-on-alert: false
github-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/groovy-jmh.yml b/.github/workflows/groovy-jmh.yml
index 0bb2a2b949..fa1014d551 100644
--- a/.github/workflows/groovy-jmh.yml
+++ b/.github/workflows/groovy-jmh.yml
@@ -77,7 +77,8 @@ jobs:
external-data-json-path: ./prev.json
save-data-file: false
summary-always: true
- comment-on-alert: true
+ # fork PRs get a read-only token; commenting there would 403 and
fail the step
+ comment-on-alert: ${{ github.event.pull_request.head.repo.full_name
== github.repository }}
alert-threshold: '150%'
fail-on-alert: false
github-token: ${{ secrets.GITHUB_TOKEN }}