Skip to content

feat: canonicalize renamed/transferred repos via GITHUB_REPO_ALIASES - #143

Merged
mergify[bot] merged 3 commits into
mainfrom
feat/repo-alias-map
Aug 8, 2026
Merged

feat: canonicalize renamed/transferred repos via GITHUB_REPO_ALIASES#143
mergify[bot] merged 3 commits into
mainfrom
feat/repo-alias-map

Conversation

@ericlitman

Copy link
Copy Markdown
Owner

The mastra-pilot transfer to mobilyze-llc left ericlitman/mastra-pilot in old Linear dispatch comments, and any future re-dispatch that copies a stale repo owner/name directive bounces off the allowlist. Rather than everyone remembering the new path:

  • new env GITHUB_REPO_ALIASES — comma-separated old-owner/name=new-owner/name pairs
  • the Linear webhook canonicalizes the resolved repo (directive or persisted thread metadata) through the alias map before the allowlist check and before persistence, so stale references self-heal
  • lookups are case-insensitive on the old path; unaliased repos pass through untouched

Unit tests cover parsing (including malformed entries) and canonicalization; make lint and make format-check pass.

Deployment note: set GITHUB_REPO_ALIASES='ericlitman/mastra-pilot=mobilyze-llc/mastra-pilot' in the studio2 master env when this rides a release.

🤖 Generated with Claude Code

Repository transfers (e.g. ericlitman/mastra-pilot -> mobilyze-llc/
mastra-pilot) leave stale owner/name references in old Linear dispatch
comments and operator muscle memory. GITHUB_REPO_ALIASES holds
comma-separated old=new pairs; the Linear webhook canonicalizes the
resolved repo before the allowlist check and thread persistence, so
stale directives keep working instead of bouncing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@openswebot openswebot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open SWE Review found 1 potential issue.

Open in Web

Comment thread agent/webhooks/common.py Outdated
Eric A. Litman and others added 2 commits August 7, 2026 21:49
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mergify

mergify Bot commented Aug 8, 2026

Copy link
Copy Markdown

Merge Queue Status

  • Entered queue2026-08-08 02:01 UTC · Rule: default · triggered by merge protections
  • Checks skipped · PR is already up-to-date
  • Merged2026-08-08 02:01 UTC · at 9d531beb9dac778a97dbea2d6bd677d218082347

This pull request spent 11 seconds in the queue, including 2 seconds running CI.

Required conditions to merge
  • github-review-approved [🛡 GitHub repository ruleset rule Mergify automatic merge queue]
  • github-review-approved [🛡 GitHub repository ruleset rule Protect main]
  • all of [🛡 Merge Protections rule Queue ready pull requests]:
  • any of [🛡 GitHub repository ruleset rule Mergify automatic merge queue]:
    • check-success = @mergify/Mergify Merge Protections
    • check-neutral = @mergify/Mergify Merge Protections
    • check-skipped = @mergify/Mergify Merge Protections
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Agent lint
    • check-neutral = @github-actions/Agent lint
    • check-skipped = @github-actions/Agent lint
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Agent format check
    • check-neutral = @github-actions/Agent format check
    • check-skipped = @github-actions/Agent format check
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Agent unit tests
    • check-neutral = @github-actions/Agent unit tests
    • check-skipped = @github-actions/Agent unit tests
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Playwright E2E
    • check-neutral = @github-actions/Playwright E2E
    • check-skipped = @github-actions/Playwright E2E
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/lint-pr-title
    • check-neutral = @github-actions/lint-pr-title
    • check-skipped = @github-actions/lint-pr-title
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Analyze (actions)
    • check-neutral = @github-actions/Analyze (actions)
    • check-skipped = @github-actions/Analyze (actions)
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Analyze (javascript-typescript)
    • check-neutral = @github-actions/Analyze (javascript-typescript)
    • check-skipped = @github-actions/Analyze (javascript-typescript)
  • any of [🛡 GitHub repository ruleset rule Protect main]:
    • check-success = @github-actions/Analyze (python)
    • check-neutral = @github-actions/Analyze (python)
    • check-skipped = @github-actions/Analyze (python)
  • any of [🛡 GitHub repository ruleset rule Review gate]:
    • check-success = Open SWE Review
    • check-neutral = Open SWE Review
    • check-skipped = Open SWE Review

@mergify
mergify Bot merged commit 5bf5f96 into main Aug 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant