[PR #191] [MERGED] feat(linear-ticket): gate protected branches only #199

Closed
opened 2026-10-26 22:37:16 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/github-workflows/pull/191
Author: @huntcsg
Created: 8/20/2026
Status: ✅ Merged
Merged: 8/20/2026
Merged by: @huntcsg

Base: main ← Head: linear-issue-required-on-protected-branches


📝 Commits (2)

  • 04c0a1f feat(linear-ticket): gate protected branches only
  • 1d769e3 fix(linear-ticket): avoid shared status bypass

📊 Changes

6 files changed (+216 additions, -27 deletions)

View changed files

📝 .github/workflows/linear-ticket.yml (+6 -4)
📝 README.md (+1 -1)
📝 docs/callers/linear-ticket.md (+22 -9)
📝 scripts/linear-ticket/README.md (+14 -5)
➕ scripts/linear-ticket/tests/test_validate.py (+128 -0)
📝 scripts/linear-ticket/validate.py (+45 -8)

📄 Description

Summary

  • enforce linked Linear tickets only for PRs targeting protected branches
  • support multiple branches protected by branch protection or rulesets
  • publish no shared status for unprotected targets to prevent SHA-scoped status bypasses
  • suppress stale results when a PR is retargeted

Tests

  • python3 -m unittest discover -s scripts/linear-ticket/tests -p 'test_*.py' -v
  • python3 -m py_compile scripts/linear-ticket/lib.py scripts/linear-ticket/validate.py scripts/linear-ticket/tests/test_validate.py

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/github-workflows/pull/191 **Author:** [@huntcsg](https://github.com/huntcsg) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@huntcsg](https://github.com/huntcsg) **Base:** `main` ← **Head:** `linear-issue-required-on-protected-branches` --- ### 📝 Commits (2) - [`04c0a1f`](https://github.com/Comfy-Org/github-workflows/commit/04c0a1f1bd1765f63f01cf8536ee0e756a1f2c7e) feat(linear-ticket): gate protected branches only - [`1d769e3`](https://github.com/Comfy-Org/github-workflows/commit/1d769e32585ee8a7ebe0dcbffac7265a6e7a9e23) fix(linear-ticket): avoid shared status bypass ### 📊 Changes **6 files changed** (+216 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/linear-ticket.yml` (+6 -4) 📝 `README.md` (+1 -1) 📝 `docs/callers/linear-ticket.md` (+22 -9) 📝 `scripts/linear-ticket/README.md` (+14 -5) ➕ `scripts/linear-ticket/tests/test_validate.py` (+128 -0) 📝 `scripts/linear-ticket/validate.py` (+45 -8) </details> ### 📄 Description ## Summary - enforce linked Linear tickets only for PRs targeting protected branches - support multiple branches protected by branch protection or rulesets - publish no shared status for unprotected targets to prevent SHA-scoped status bypasses - suppress stale results when a PR is retargeted ## Tests - `python3 -m unittest discover -s scripts/linear-ticket/tests -p 'test_*.py' -v` - `python3 -m py_compile scripts/linear-ticket/lib.py scripts/linear-ticket/validate.py scripts/linear-ticket/tests/test_validate.py` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 22:37:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/github-workflows#199
No description provided.