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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added --logo and --logo-alt #851

Merged
merged 7 commits into from
Sep 21, 2023
Merged

feat: added --logo and --logo-alt #851

merged 7 commits into from
Sep 21, 2023

Conversation

JoshuaKGoldberg
Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg commented Sep 20, 2023

PR Checklist

Overview

Adds in options to put an image in the README.md, and uses them in this repo with the "new" logo. (it's really TypeStat's old logo)

While I'm in the area, fills in test coverage for readOptions.test.ts. I also noticed it was taking >500ms to run sometimes. Turns out it wasn't mocking readOptionDefaults! 馃槺

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #851 (2b20839) into main (ad148b0) will increase coverage by 0.06%.
The diff coverage is 76.56%.

@@            Coverage Diff             @@
##             main     #851      +/-   ##
==========================================
+ Coverage   92.32%   92.38%   +0.06%     
==========================================
  Files          87       87              
  Lines        4405     4453      +48     
  Branches      284      294      +10     
==========================================
+ Hits         4067     4114      +47     
- Misses        338      339       +1     
Flag Coverage 螖
create 71.23% <58.62%> (-0.07%) 猬囷笍
initialize 34.66% <58.62%> (+0.28%) 猬嗭笍
migrate 71.03% <58.62%> (-0.07%) 猬囷笍
unit 53.49% <71.87%> (-0.63%) 猬囷笍

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

Files Changed Coverage 螖
...d/options/readOptionDefaults/parsePackageAuthor.ts 100.00% <酶> (酶)
src/shared/types.ts 0.00% <0.00%> (酶)
src/shared/options/readOptions.ts 92.62% <52.63%> (+3.12%) 猬嗭笍
src/create/createRerunSuggestion.ts 100.00% <100.00%> (酶)
src/shared/options/args.ts 100.00% <100.00%> (酶)
src/shared/options/getPrefillOrPromptedOption.ts 84.00% <100.00%> (-1.19%) 猬囷笍
src/shared/options/readOptionDefaults/index.ts 86.27% <100.00%> (酶)
...tions/readOptionDefaults/readDefaultsFromReadme.ts 100.00% <100.00%> (酶)

馃摚 We鈥檙e building smart automated test selection to slash your CI/CD build times. Learn more

@JoshuaKGoldberg JoshuaKGoldberg changed the title feat: added --logo and --logoAlt feat: added --logo and --logo-alt Sep 21, 2023
@JoshuaKGoldberg JoshuaKGoldberg merged commit 72c6d99 into main Sep 21, 2023
15 of 16 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the readme-logo branch September 21, 2023 13:58
JoshuaKGoldberg added a commit that referenced this pull request Sep 21, 2023
## PR Checklist

- [x] Addresses an existing open issue: fixes #542
- [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

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.
@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 an optional image for a repo
1 participant