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 2025/06/09 13:37:27 UTC
(camel) 01/01: Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at. Thanks to Alexander Barabanov from Intel for his finding.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit f2ef9236e849d50fb08925b242b4a64362eb0980
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 9 14:50:18 2025 +0200
Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at. Thanks to Alexander Barabanov from Intel for his finding.
---
.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 3219f08c26c..3e7cc57003e 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