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 ac857ac6c53a chore(ci): proper Octokit function
ac857ac6c53a is described below
commit ac857ac6c53aa32eae2e7c4d5206f2efc427eb3e
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Wed Feb 18 10:42:50 2026 +0100
chore(ci): proper Octokit function
---
.github/workflows/pr-labeler.yml | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml
index 22b96d0bbe90..1417baa7b97d 100644
--- a/.github/workflows/pr-labeler.yml
+++ b/.github/workflows/pr-labeler.yml
@@ -37,11 +37,14 @@ jobs:
id: pr
with:
script: |
- const { data } = await
github.rest.checks.listPullRequestsAssociatedWithCheckSuite({
- owner: context.repo.owner,
- repo: context.repo.repo,
- check_suite_id: context.payload.workflow_run.check_suite_id
- });
+ const response = await github.request(
+ "GET
/repos/{owner}/{repo}/check-suites/{check_suite_id}/pull-requests",
+ {
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ check_suite_id: context.payload.workflow_run.check_suite_id
+ }
+ );
return data[0]?.number;
- name: Label changes scope