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

acosentino 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 a899aec1622 Use .head.repo.pushed_at in pr-comment workflow instead of 
.pushed_at (#18325)
a899aec1622 is described below

commit a899aec1622940ac80e6b840d756345e3c31e133
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Jun 9 14:50:18 2025 +0200

    Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at 
(#18325)
---
 .github/workflows/pr-comment.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index b72af9fc6fa..c2334f7e298 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -51,7 +51,7 @@ jobs:
         run: |
           pr="$(gh api /repos/${GH_REPO}/pulls/${PR_NUMBER})"
           head_sha="$(echo "$pr" | jq -r .head.sha)"
-          pushed_at="$(echo "$pr" | jq -r .pushed_at)"
+          pushed_at="$(echo "$pr" | jq -r .head.repo.pushed_at)"
           if [[ $(date -d "$pushed_at" +%s) -gt $(date -d "$COMMENT_AT" +%s) 
]]; then
               exit 1
           fi

Reply via email to