Skip to content

fix(repository-shorthand): support repo provider prefix#1472

Merged
michaelfaith merged 5 commits intomainfrom
fix/repository-shorthand
Jan 4, 2026
Merged

fix(repository-shorthand): support repo provider prefix#1472
michaelfaith merged 5 commits intomainfrom
fix/repository-shorthand

Conversation

@michaelfaith
Copy link
Owner

PR Checklist

Overview

This change updates all fixers to support different repo providers, and the providers prefix in general. Now if you have repo defined in object syntax with either bitbucket, gitlab, github, or gist urls, the fixer will construct a shorthand string using the corresponding provider prefix. On the other side, if you have repo defined as a shorthand and have configured to prefer object, it'll use the correct url based on the provider prefix, if specified (assume github if not).

This change updates all fixers to support different repo providers, and the providers prefix in general.  Now if you have repo defined in object syntax with either bitbucket, gitlab, github, or gist urls, the fixer will construct a shorthand string using the corresponding provider prefix.  On the other side, if you have repo defined as a shorthand and have configured to prefer object, it'll use the correct url based on the provider prefix, if specified (assume github if not).
@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.12%. Comparing base (a766dba) to head (a857252).
⚠️ Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1472      +/-   ##
==========================================
- Coverage   97.39%   97.12%   -0.27%     
==========================================
  Files          28       28              
  Lines         575      592      +17     
  Branches      169      172       +3     
==========================================
+ Hits          560      575      +15     
- Misses          1        2       +1     
- Partials       14       15       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@michaelfaith michaelfaith marked this pull request as ready for review December 30, 2025 22:19
@michaelfaith
Copy link
Owner Author

@JoshuaKGoldberg not urgent, but curious if this one may have flown under your radar, with all the other release-related work?

Copy link
Collaborator

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Looking good, sorry for the delay! 👏

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
@michaelfaith michaelfaith enabled auto-merge (squash) January 4, 2026 16:19
@michaelfaith michaelfaith merged commit fb5f10a into main Jan 4, 2026
13 of 14 checks passed
@michaelfaith michaelfaith deleted the fix/repository-shorthand branch January 4, 2026 16:20
michaelfaith pushed a commit that referenced this pull request Jan 4, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.88.0](v0.87.1...v0.88.0)
(2026-01-04)


### ⚠ BREAKING CHANGES

* add require-repository rule
([#1491](#1491))

### Features

* add require-repository rule
([#1491](#1491))
([4d802c5](4d802c5))


### Bug Fixes

* **repository-shorthand:** support repo provider prefix
([#1472](#1472))
([fb5f10a](fb5f10a))
* **valid-repository:** support dashes and dots in repo shorthand
([#1468](#1468))
([8b83678](8b83678))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

🐛 Bug: repository-shorthand fixer doesn't support repo provider prefix

2 participants