This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new a12942bc3cfc feat(ci): new PR commenter
a12942bc3cfc is described below

commit a12942bc3cfc22b50144c20384dad75c79be98d0
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Thu Feb 19 09:54:55 2026 +0100

    feat(ci): new PR commenter
    
    Closes CAMEL-22994
---
 .../workflows/{pr-labeler.yml => pr-commenter.yml} | 30 ++++++++++++++++------
 .github/workflows/pr-labeler.yml                   |  2 +-
 2 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/pr-labeler.yml 
b/.github/workflows/pr-commenter.yml
similarity index 64%
copy from .github/workflows/pr-labeler.yml
copy to .github/workflows/pr-commenter.yml
index 1a9270c21053..46aa4041aa3b 100644
--- a/.github/workflows/pr-labeler.yml
+++ b/.github/workflows/pr-commenter.yml
@@ -15,7 +15,7 @@
 # limitations under the License.
 # ---------------------------------------------------------------------------
 
-name: Label pull request
+name: Comment pull request
 
 on:
   workflow_run:
@@ -53,7 +53,7 @@ jobs:
             fs.writeFileSync('${{github.workspace}}/pr-id.zip', 
Buffer.from(download.data));
       - run: unzip pr-id.zip
 
-      - name: 'Exctract PR id'
+      - name: 'Extract PR id'
         id: pr
         uses: actions/github-script@v8
         with:
@@ -63,10 +63,24 @@ jobs:
             const issue_number = Number(fs.readFileSync('./id'));
             core.setOutput('id', issue_number)
 
-      - name: Label changes scope
-        uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
+      - name: 'Comment on PR'
+        uses: actions/github-script@v7
         with:
-          repo-token: ${{ secrets.GITHUB_TOKEN }}
-          configuration-path: .github/actions/labeler/label-config.yml
-          sync-labels: true
-          pr-number: ${{ steps.pr.outputs.id }}
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          script: |
+            await github.rest.issues.createComment({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              issue_number: ${{ steps.pr.outputs.id }},
+              body: `:star2: Thank you for your contribution to the Apache 
Camel project! :star2:
+                :robot: CI automation will test this PR automatically.
+
+                :camel: Apache Camel Committers, please review the following 
items:
+
+                * First-time contributors **require MANUAL approval** for the 
GitHub Actions to run
+                * You can use the command \`/component-test 
(camel-)component-name1 (camel-)component-name2..\` to request a test from the 
test bot.
+                * You can label PRs using \`build-all\`, \`build-dependents\`, 
\`skip-tests\` and \`test-dependents\` to fine-tune the checks executed by this 
PR.
+                * Build and test logs are available in the Summary page. 
**Only** [Apache Camel 
committers](https://camel.apache.org/community/team/#committers) have access to 
the summary.
+                * :warning: Be careful when sharing logs. Review their 
contents before sharing them publicly.
+                `
+            })
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml
index 1a9270c21053..338f69a5bb31 100644
--- a/.github/workflows/pr-labeler.yml
+++ b/.github/workflows/pr-labeler.yml
@@ -53,7 +53,7 @@ jobs:
             fs.writeFileSync('${{github.workspace}}/pr-id.zip', 
Buffer.from(download.data));
       - run: unzip pr-id.zip
 
-      - name: 'Exctract PR id'
+      - name: 'Extract PR id'
         id: pr
         uses: actions/github-script@v8
         with:

Reply via email to