PR board: Stop touching archived items (#59428)

The GitHub workflow was sometimes failing when someone edited the
already-merged PR that had been archived on the board because archived
items can't have their fields changed. The project board fields don't
need to be updated when the PR is already merged or closed.

Release Notes:

- N/A
This commit is contained in:
Lena 2026-06-16 15:05:26 +02:00 committed by GitHub
parent ed6e747bc5
commit 4c0717facc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -784,6 +784,10 @@ if __name__ == "__main__":
print(f"Skipping draft PR #{pr['number']}")
sys.exit(0)
if pr.get("state") != "open":
print(f"Skipping PR #{pr['number']} (state: {pr.get('state')})")
sys.exit(0)
print(f"Processing PR #{pr['number']}: action={action}")
if action in ("labeled", "unlabeled"):