fix: Renovate PRのTrackingを一律Closedにする - #5
Merged
Conversation
GraphQL APIではRenovate botのauthor.loginは"renovate"(Bot型)で返るが、 フィルタが"renovate[bot]"(REST/UI表記)と比較していたため常に不一致となり、 Status=DoneのRenovate PRがあってもTrackingがClosedに更新されず素通りしていた。 両表記にマッチさせ、content=nullの項目でも落ちないよう修正。
Renovate PRは議論・手動トラッキングの対象にならないため、PRの状態 (open/closed/merged)やプロジェクトのStatusに関わらず、Renovate項目は 一律Tracking=Closedにする。既にClosedの項目はスキップ。 これにより、autocloseされた(未マージCLOSEDの)PRがTrackedへ復活する 問題も解消される。不要になったstate/status/Trackedの参照およびStatus 関連のinput/env(status-field-name)を削除して簡素化。
shunsuke-shimomura
force-pushed
the
fix/renovate-tracking-by-pr-state
branch
from
August 5, 2026 06:51
b274d98 to
fcb67d1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
PR #4 で Renovate PR を検出できるようになったが、dry-run 実行で判定ロジックの問題が判明した。
失敗例(dry-run): https://github.com/ut-issl/sw-integration-task-list/actions/runs/30981776243/job/92227541642
autoclose された(未マージで CLOSED になった)PR がプロジェクト Status=Todo のまま残るため、従来の「Status が Done か」で判定するロジックが、すでに Closed だった Tracking を Tracked に引き戻していた。
方針
Renovate の PR は内容が議論の俎上に上がることがなく、手動でトラッキングする必要もない。したがって PR の状態(open/closed/merged)やプロジェクト Status に関わらず、Renovate 項目は一律
Tracking=Closedにするのが正しい。修正内容
Tracking=Closedに設定(既に Closed の項目はスキップ)。state/ JQ のstatus抽出、Trackedオプションの取得・検証、status-field-nameinput とSTATUS_FIELDenv。テスト(合成フィクスチャ)
python3 yaml.safe_load/actionlintパス。影響範囲
@main参照かつstatus-field-nameを渡していないため input 削除の影響なし。マージ後の次回スケジュール実行から有効。