From 1f27f8437b10a421363e50360647bc3701a943dc Mon Sep 17 00:00:00 2001 From: shimomura-shunsuke Date: Wed, 5 Aug 2026 16:02:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20self-hosted=20Renovate=20bot(renovate-ut?= =?UTF-8?q?-issl-self-hosted)=E3=82=82=E3=83=95=E3=82=A3=E3=83=AB=E3=82=BF?= =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ut-isslのself-hosted Renovate(renovate-ut-issl-self-hosted[bot])からの PRも一律Closed対象にする必要があった。author.loginを個別列挙から "renovate"プレフィックス一致に変更し、hosted/self-hosted両方および 将来のself-hostedインスタンスをまとめて対象化する。 --- .github/workflows/update-renovate-tracking.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-renovate-tracking.yml b/.github/workflows/update-renovate-tracking.yml index 68272bf..7cc5476 100644 --- a/.github/workflows/update-renovate-tracking.yml +++ b/.github/workflows/update-renovate-tracking.yml @@ -140,10 +140,12 @@ jobs: JQ_FILTER=' [.data.organization.projectV2.items.nodes[] | select(.content.__typename == "PullRequest") | - # 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]") | + # Match every Renovate bot by its "renovate" login prefix. This covers + # the hosted app (GraphQL "renovate" / REST "renovate[bot]") and any + # self-hosted instances such as "renovate-ut-issl-self-hosted", whose + # logins likewise start with "renovate". No human account in the org + # uses such a login, so a prefix match is safe. + select((.content.author.login // "") | startswith("renovate")) | { id, pr: "\(.content.repository.nameWithOwner)#\(.content.number)",