Skip to content
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

feat: allow specific GitHub and/or npm emails #858

Merged
merged 12 commits into from
Sep 21, 2023
Merged

Conversation

JoshuaKGoldberg
Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg commented Sep 21, 2023

PR Checklist

Overview

Builds off the ideas in #851 by adding optional --email-github and --email-npm overrides. Adds a string complaint if an improper combination is specified: one of those two without the other or email, or both of those two along with email. At this point email is now a required option.

Adjusts the sorting of rerun suggestions a bit to make sure emails are sorted inline and --base comes immediately after --mode.

Also fills in some unit test coverage in the area.

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #858 (034ff6d) into main (5c0cf29) will increase coverage by 0.12%.
The diff coverage is 93.58%.

@@            Coverage Diff             @@
##             main     #858      +/-   ##
==========================================
+ Coverage   92.38%   92.50%   +0.12%     
==========================================
  Files          87       89       +2     
  Lines        4453     4538      +85     
  Branches      294      322      +28     
==========================================
+ Hits         4114     4198      +84     
  Misses        339      339              
- Partials        0        1       +1     
Flag Coverage Δ
create 70.72% <61.07%> (-0.52%) ⬇️
initialize 35.05% <66.44%> (+0.38%) ⬆️
migrate 70.22% <63.75%> (-0.81%) ⬇️
unit 55.02% <89.10%> (+1.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/shared/types.ts 0.00% <0.00%> (ø)
src/shared/options/detectEmailRedundancy.ts 91.30% <91.30%> (ø)
src/shared/options/readOptions.ts 92.23% <97.36%> (-0.40%) ⬇️
src/bin/index.ts 100.00% <100.00%> (ø)
src/bin/mode.ts 100.00% <100.00%> (ø)
src/create/createRerunSuggestion.ts 100.00% <100.00%> (ø)
src/create/index.ts 89.04% <100.00%> (ø)
src/initialize/index.ts 97.77% <100.00%> (ø)
src/migrate/index.ts 97.56% <100.00%> (ø)
src/shared/options/args.ts 100.00% <100.00%> (ø)
... and 4 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JoshuaKGoldberg JoshuaKGoldberg merged commit d112a31 into main Sep 21, 2023
@JoshuaKGoldberg JoshuaKGoldberg deleted the emails-split branch September 21, 2023 17:26
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

🎉 This is included in version v1.32.0 🎉

The release is available on:

Cheers! 📦🚀

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.

🚀 Feature: Allow for overriding emails
1 participant