From 63dc01d587edb4caccf9bff471d96efeffa5cc8e Mon Sep 17 00:00:00 2001 From: shimomura-shunsuke Date: Wed, 5 Aug 2026 15:02:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Renovate=20PR=E5=88=A4=E5=AE=9A=E3=82=92?= =?UTF-8?q?GraphQL=E3=81=AEbot=20login(renovate)=E3=81=AB=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GraphQL APIではRenovate botのauthor.loginは"renovate"(Bot型)で返るが、 フィルタが"renovate[bot]"(REST/UI表記)と比較していたため常に不一致となり、 Status=DoneのRenovate PRがあってもTrackingがClosedに更新されず素通りしていた。 両表記にマッチさせ、content=nullの項目でも落ちないよう修正。 --- .github/workflows/update-renovate-tracking.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-renovate-tracking.yml b/.github/workflows/update-renovate-tracking.yml index 27ab249..c20130d 100644 --- a/.github/workflows/update-renovate-tracking.yml +++ b/.github/workflows/update-renovate-tracking.yml @@ -147,7 +147,10 @@ jobs: JQ_FILTER=' [.data.organization.projectV2.items.nodes[] | select(.content.__typename == "PullRequest") | - select(.content.author.login == "renovate[bot]") | + # GraphQL returns the Renovate bot login as "renovate" (Bot actor), + # whereas the REST API / UI show "renovate[bot]". Accept both so the + # filter matches regardless of which form the API surfaces. + select((.content.author.login // "") | . == "renovate" or . == "renovate[bot]") | { id, pr: "\(.content.repository.nameWithOwner)#\(.content.number)",