-
-
Notifications
You must be signed in to change notification settings - Fork 79
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: Is CTA adding more checks than there are workflows for it? #1171
Comments
Ah, yes, this is a bug. Good catch. Workflow files are created conditionally based on options: create-typescript-app/src/steps/writing/creation/dotGitHub/createWorkflows.ts Lines 119 to 120 in 01704e9
...but branch protection settings are all always created: create-typescript-app/src/steps/initializeGitHubRepository/initializeBranchProtectionSettings.ts Lines 26 to 31 in 70d6937
The |
## PR Checklist - [x] Addresses an existing open issue: fixes #1171 - [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 This way, when creating/initializing/migrating a repository, branch protection settings won't be created for excluded options' CI flows.
🎉 This is included in version v1.57.7 🎉 The release is available on: Cheers! 📦🚀 |
Bug Report Checklist
main
branch of the repository.Expected
Heya!
So I'm hacking away at my side project here: johnnyreilly/schemar#1
And I noticed on the PR that there were checks for workflows that I don't have in my repo; a bunch of the lint_knip / lint_markdown etc workflows
Given I don't have those in my repo, I was surprised they showed up in GitHub. Regrettably I can't remember if those workflow files originally existed or if I deleted them. (Makes me think it'd be handy to have a metadata file that shows how a project was initialised or something)
Actual
Additional Info
This might be user error; not sure.
The text was updated successfully, but these errors were encountered: