You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/02/05 12:18:57 UTC

(camel) branch pr-comment-check-perms updated (a5a2ec48ae4 -> bc1a26c284e)

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

acosentino pushed a change to branch pr-comment-check-perms
in repository https://gitbox.apache.org/repos/asf/camel.git


 discard a5a2ec48ae4 Make component-test runnable only by organization members
    omit 466ae742992 CAMEL-20281 - Camel-AWS Components: Make it possible to use AwsSessionCredentials to support temporary credentials - AWS EC2
     add 65ff391bd3f CAMEL-20281 - Camel-AWS Components: Make it possible to use AwsSessionCredentials to support temporary credentials - AWS EC2 (#13008)
     add 306014ffdaa Lang8 (#13009)
     add 403419e477e Regen
     add 8c0898e9942 Regen for commit 306014ffdaaba5d7a0c9333122471083827d3d1f (#13010)
     new bc1a26c284e Make component-test runnable only by organization members

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (a5a2ec48ae4)
            \
             N -- N -- N   refs/heads/pr-comment-check-perms (bc1a26c284e)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/camel/catalog/languages/datasonnet.json |  7 ++-
 .../apache/camel/catalog/models/datasonnet.json    |  7 ++-
 .../apache/camel/catalog/schemas/camel-spring.xsd  | 42 +++++++++---------
 .../camel/language/datasonnet/datasonnet.json      |  7 ++-
 .../language/datasonnet/DatasonnetExpression.java  | 51 ++++++++++++++--------
 .../language/datasonnet/DatasonnetLanguage.java    | 11 ++---
 .../camel/language/DatasonnetLanguageTest.java     | 24 +++++++++-
 .../apache/camel/model/language/datasonnet.json    |  7 ++-
 .../camel/model/language/DatasonnetExpression.java |  2 +-
 .../language/DatasonnetExpressionReifier.java      |  9 ++--
 .../java/org/apache/camel/xml/in/ModelParser.java  | 24 +++++-----
 .../java/org/apache/camel/xml/out/ModelWriter.java |  2 +-
 .../org/apache/camel/yaml/out/ModelWriter.java     |  2 +-
 .../dsl/yaml/deserializers/ModelDeserializers.java | 20 ++++++++-
 .../generated/resources/schema/camelYamlDsl.json   | 15 +++++++
 15 files changed, 158 insertions(+), 72 deletions(-)


(camel) 01/01: Make component-test runnable only by organization members

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch pr-comment-check-perms
in repository https://gitbox.apache.org/repos/asf/camel.git

commit bc1a26c284e54012bbc3da3ca279e8289dff585d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 5 13:17:38 2024 +0100

    Make component-test runnable only by organization members
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .github/actions/component-test/action.yaml | 12 ++++++++++--
 .github/workflows/pr-comment.yml           |  1 +
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.github/actions/component-test/action.yaml b/.github/actions/component-test/action.yaml
index 7257029e2cf..e9ab14357e2 100644
--- a/.github/actions/component-test/action.yaml
+++ b/.github/actions/component-test/action.yaml
@@ -30,11 +30,15 @@ inputs:
   comment-body:
     description: 'Body of the comment to process'
     required: true
+  author-association:
+    description: 'The comment author's association with the organization'
+    required: true
 runs:
   using: "composite"
   steps:
     - id: install-mvnd
       uses: ./.github/actions/install-mvnd
+      if: ${{ inputs.author-association == 'MEMBER' }}
     - name: maven build
       shell: bash
       run: ${{ github.action_path }}/component-test.sh
@@ -43,12 +47,14 @@ runs:
         COMMENT_BODY: ${{ inputs.comment-body }}
         FAST_BUILD: "true"
         LOG_FILE: build.log
+      if: ${{ inputs.author-association == 'MEMBER' }}
     - name: archive logs
       uses: actions/upload-artifact@v3
       if: always()
       with:
         name: build.log
         path: build.log
+      if: ${{ inputs.author-association == 'MEMBER' }}
     - name: maven test
       shell: bash
       run: ${{ github.action_path }}/component-test.sh
@@ -57,14 +63,16 @@ runs:
         COMMENT_BODY: ${{ inputs.comment-body }}
         FAST_BUILD: "false"
         LOG_FILE: tests.log
+      if: ${{ inputs.author-association == 'MEMBER' }}
     - name: archive logs
       uses: actions/upload-artifact@v3
       if: always()
       with:
         name: tests.log
         path: tests.log
+      if: ${{ inputs.author-association == 'MEMBER' }}
     - name: Success comment
-      if: success()
+      if: success() && ${{ inputs.author-association == 'MEMBER' }}
       uses: ./.github/actions/create-or-update-comment
       with:
         comment-id: ${{ inputs.comment-id }}
@@ -74,7 +82,7 @@ runs:
 
           **Result** :white_check_mark: The tests passed successfully
     - name: Failure comment
-      if: failure()
+      if: failure() && ${{ inputs.author-association == 'MEMBER' }}
       uses: ./.github/actions/create-or-update-comment
       with:
         comment-id: ${{ inputs.comment-id }}
diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index 77cd422cda4..e9e79c63c4e 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -68,3 +68,4 @@ jobs:
           pr-id: ${{ github.event.issue.number }}
           comment-id: ${{ github.event.comment.id }}
           comment-body: ${{ github.event.comment.body }}
+          author-association: ${{ github.event.comment.author_association }}