-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug: Migrating a non-JoshuaKGoldberg repo creates the wrong owners for JoshuaKGoldberg actions #1043
Comments
I was able to reproduce this bug but can't figure out why it happens. I'd still change it to double quotes just to pass the OCD test. 🤣
|
I think I found the issue. I commented this line and the
If this is indeed the issue, what would you suggest as the proper solution instead of commenting the line? |
Hmm, yeah, it's tricky. I never liked having that specific The array of replacements including that entry go down to And/or: maybe only replace a repo path like |
## PR Checklist - [x] Addresses an existing open issue: fixes #1043 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Uses a [`to` callback](https://github.com/adamreisnz/replace-in-file/#using-callbacks-for-to) to determine whether to swap out owner to `options.owner` in `"JoshuaKGoldberg"` _(always)_ or `"JoshuaKGoldberg/..."` (if the `...` is `options.repository`). Also fixes some existing edge cases around owner replacements: * Syncs up the end-of-readme attribution notice so there's only one place it's written in the templates * Uses `options.owner` and `options.repository` in `createDotGitHubFiles` instead of hardcoding `JoshuaKGoldberg/create-typescript-app`.
🎉 This is included in version v1.49.1 🎉 The release is available on: Cheers! 📦🚀 |
Bug Report Checklist
main
branch of the repository.Expected
Running
--mode migrate
on an existing repo under a owner other thanJoshuaKGoldberg
should still set up actions likeJoshuaKGoldberg/release-it-action
under the proper owners.Actual
I'd missed in omnidan/node-emoji#142 that two actions were set up incorrectly:
omnidan/all-contributors-auto-action
was configured instead ofJoshuaKGoldberg/all-contributors-auto-action
omnidan/release-it-action
was configured instead ofJoshuaKGoldberg/release-it-action
Additional Info
No response
The text was updated successfully, but these errors were encountered: