Skip to content

Commit 9f30e66

Browse files
Default smoke test team to Security with fallback to first team
1 parent 8b2fc24 commit 9f30e66

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/smoke_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ def main() -> int:
121121

122122
# LINEAR_TEAM_ID may be a UUID or a team key (e.g. "RAV"); team() resolves
123123
# both, but filters and mutations need the canonical UUID, so use team.id.
124-
team_ref = os.environ.get("LINEAR_TEAM_ID") or teams[0].id
124+
# Default to the Security team; fall back to the first available team.
125+
team_ref = os.environ.get("LINEAR_TEAM_ID")
126+
if not team_ref:
127+
security = next((t for t in teams if t.name == "Security"), None)
128+
team_ref = (security.id if security and security.id else None) or teams[0].id
125129
team = r.run(f"team(id={team_ref})", lambda: client.team(TeamRequest(id=team_ref)).team)
126130
if not team:
127131
print(f"\nCould not resolve team {team_ref!r}; cannot run issue checks.")

0 commit comments

Comments
 (0)