Skip to content

Commit 0edc793

Browse files
fix: put redundant .all-contributorsrc properties back (#2204)
## PR Checklist - [x] Addresses an existing open issue: fixes #2203 - [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 🎁
1 parent b42e48f commit 0edc793

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

Diff for: .all-contributorsrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"badgeTemplate": "\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>",
3+
"commitType": "docs",
34
"contributors": [
45
{
56
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
@@ -391,7 +392,10 @@
391392
"contributions": ["bug"]
392393
}
393394
],
395+
"contributorsPerLine": 7,
394396
"contributorsSortAlphabetically": true,
397+
"files": ["README.md"],
395398
"projectName": "create-typescript-app",
396-
"projectOwner": "JoshuaKGoldberg"
399+
"projectOwner": "JoshuaKGoldberg",
400+
"repoType": "github"
397401
}

Diff for: src/blocks/blockAllContributors.test.ts

+21-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,16 @@ describe("blockAllContributors", () => {
5555
"files": {
5656
".all-contributorsrc": "{
5757
"badgeTemplate": "\\t<a href=\\"#contributors\\" target=\\"_blank\\"><img alt=\\"👪 All Contributors: <%= contributors.length %>\\" src=\\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\\" /></a>",
58+
"commitType": "docs",
5859
"contributors": [],
60+
"contributorsPerLine": 7,
5961
"contributorsSortAlphabetically": true,
62+
"files": [
63+
"README.md"
64+
],
6065
"projectName": "test-repository",
61-
"projectOwner": "test-owner"
66+
"projectOwner": "test-owner",
67+
"repoType": "github"
6268
}",
6369
".github": {
6470
"workflows": {
@@ -182,6 +188,7 @@ describe("blockAllContributors", () => {
182188
"files": {
183189
".all-contributorsrc": "{
184190
"badgeTemplate": "\\t<a href=\\"#contributors\\" target=\\"_blank\\"><img alt=\\"👪 All Contributors: <%= contributors.length %>\\" src=\\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\\" /></a>",
191+
"commitType": "docs",
185192
"contributors": [
186193
{
187194
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
@@ -198,9 +205,14 @@ describe("blockAllContributors", () => {
198205
"profile": "http://www.joshuakgoldberg.com"
199206
}
200207
],
208+
"contributorsPerLine": 7,
201209
"contributorsSortAlphabetically": true,
210+
"files": [
211+
"README.md"
212+
],
202213
"projectName": "test-repository",
203-
"projectOwner": "JoshuaKGoldberg"
214+
"projectOwner": "JoshuaKGoldberg",
215+
"repoType": "github"
204216
}",
205217
".github": {
206218
"workflows": {
@@ -323,6 +335,7 @@ describe("blockAllContributors", () => {
323335
"files": {
324336
".all-contributorsrc": "{
325337
"badgeTemplate": "\\t<a href=\\"#contributors\\" target=\\"_blank\\"><img alt=\\"👪 All Contributors: <%= contributors.length %>\\" src=\\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\\" /></a>",
338+
"commitType": "docs",
326339
"contributors": [
327340
{
328341
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
@@ -339,9 +352,14 @@ describe("blockAllContributors", () => {
339352
"profile": "http://www.example.com"
340353
}
341354
],
355+
"contributorsPerLine": 7,
342356
"contributorsSortAlphabetically": true,
357+
"files": [
358+
"README.md"
359+
],
343360
"projectName": "test-repository",
344-
"projectOwner": "test-owner"
361+
"projectOwner": "test-owner",
362+
"repoType": "github"
345363
}",
346364
".github": {
347365
"workflows": {

Diff for: src/blocks/blockAllContributors.ts

+4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,14 @@ export const blockAllContributors = base.createBlock({
6969
{
7070
badgeTemplate:
7171
' <a href="#contributors" target="_blank"><img alt="👪 All Contributors: <%= contributors.length %>" src="https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg" /></a>',
72+
commitType: "docs",
7273
contributors: options.contributors ?? [],
74+
contributorsPerLine: 7,
7375
contributorsSortAlphabetically: true,
76+
files: ["README.md"],
7477
projectName: options.repository,
7578
projectOwner: options.owner,
79+
repoType: "github",
7680
},
7781
null,
7882
2,

0 commit comments

Comments
 (0)