all-contributors-for-repository 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <h1 align="center">All Contributors For Repository</h1>
2
2
 
3
- <p align="center">Generates an allcontributors list for an existing repository. 🤝</p>
3
+ <p align="center">Generates an <a href="https://allcontributors.org">allcontributors</a> list for an existing repository. 🤝</p>
4
4
 
5
5
  <p align="center">
6
6
  <a href="#contributors" target="_blank">
7
7
  <!-- prettier-ignore-start -->
8
8
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
9
- <img alt="All Contributors: 1" src="https://img.shields.io/badge/all_contributors-1-21bb42.svg" />
9
+ <img alt="All Contributors: 2" src="https://img.shields.io/badge/all_contributors-2-21bb42.svg" />
10
10
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
11
11
  <!-- prettier-ignore-end -->
12
12
  </a>
@@ -131,7 +131,8 @@ Thanks! 💖
131
131
  <table>
132
132
  <tbody>
133
133
  <tr>
134
- <td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
134
+ <td align="center" valign="top" width="14.28%"><a href="https://www.fdlpm.com"><img src="https://avatars.githubusercontent.com/u/9667945?v=4?s=100" width="100px;" alt="Fabian De La Peña Montero"/><br /><sub><b>Fabian De La Peña Montero</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=fdlpm" title="Documentation">📖</a></td>
135
+ <td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a></td>
135
136
  </tr>
136
137
  </tbody>
137
138
  </table>
@@ -8,6 +8,8 @@ function addAcceptedIssues(acceptedIssues, contributors, options) {
8
8
  [options.labelTypeBug, "bug"],
9
9
  // - 📖 `doc`: authors of merged PRs that address issues labeled as docs
10
10
  [options.labelTypeDocs, "docs"],
11
+ // 💡 `ideas`: anybody who filed an issue labeled as accepting PRs and a feature
12
+ [options.labelTypeIdeas, "ideas"],
11
13
  // - 🔧 `tool`: authors of merged PRs that address issues labeled as tooling
12
14
  [options.labelTypeTool, "tool"]
13
15
  ]) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collect/adding/addAcceptedIssues.ts"],"sourcesContent":["import { ContributorsCollection } from \"../../ContributorsCollection.js\";\nimport { AllContributorsForRepositoryOptions } from \"../../options.js\";\nimport { AcceptedIssue } from \"../collecting/collectAcceptedIssues.js\";\n\nexport function addAcceptedIssues(\n\tacceptedIssues: AcceptedIssue[],\n\tcontributors: Pick<ContributorsCollection, \"add\">,\n\toptions: Pick<\n\t\tAllContributorsForRepositoryOptions,\n\t\t`labelType${string}` & keyof AllContributorsForRepositoryOptions\n\t>,\n) {\n\tfor (const acceptedIssue of acceptedIssues) {\n\t\tconst labels = acceptedIssue.labels.map((label) =>\n\t\t\ttypeof label === \"string\" ? label : label.name,\n\t\t);\n\n\t\tfor (const [labelType, contribution] of [\n\t\t\t// 🐛 `bug`: anybody who filed an issue labeled as accepting PRs and a bug\n\t\t\t[options.labelTypeBug, \"bug\"],\n\t\t\t// - 📖 `doc`: authors of merged PRs that address issues labeled as docs\n\t\t\t[options.labelTypeDocs, \"docs\"],\n\t\t\t// - 🔧 `tool`: authors of merged PRs that address issues labeled as tooling\n\t\t\t[options.labelTypeTool, \"tool\"],\n\t\t] as const) {\n\t\t\tif (labels.some((label) => label === labelType)) {\n\t\t\t\tcontributors.add(\n\t\t\t\t\tacceptedIssue.user?.login,\n\t\t\t\t\tacceptedIssue.number,\n\t\t\t\t\tcontribution,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"AAIO,SAAS,kBACf,gBACA,cACA,SAIC;AACD,aAAW,iBAAiB,gBAAgB;AAC3C,UAAM,SAAS,cAAc,OAAO;AAAA,MAAI,CAAC,UACxC,OAAO,UAAU,WAAW,QAAQ,MAAM;AAAA,IAC3C;AAEA,eAAW,CAAC,WAAW,YAAY,KAAK;AAAA;AAAA,MAEvC,CAAC,QAAQ,cAAc,KAAK;AAAA;AAAA,MAE5B,CAAC,QAAQ,eAAe,MAAM;AAAA;AAAA,MAE9B,CAAC,QAAQ,eAAe,MAAM;AAAA,IAC/B,GAAY;AACX,UAAI,OAAO,KAAK,CAAC,UAAU,UAAU,SAAS,GAAG;AAChD,qBAAa;AAAA,UACZ,cAAc,MAAM;AAAA,UACpB,cAAc;AAAA,UACd;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;","names":[]}
1
+ {"version":3,"sources":["../../../src/collect/adding/addAcceptedIssues.ts"],"sourcesContent":["import { ContributorsCollection } from \"../../ContributorsCollection.js\";\nimport { AllContributorsForRepositoryOptions } from \"../../options.js\";\nimport { AcceptedIssue } from \"../collecting/collectAcceptedIssues.js\";\n\nexport function addAcceptedIssues(\n\tacceptedIssues: AcceptedIssue[],\n\tcontributors: Pick<ContributorsCollection, \"add\">,\n\toptions: Pick<\n\t\tAllContributorsForRepositoryOptions,\n\t\t`labelType${string}` & keyof AllContributorsForRepositoryOptions\n\t>,\n) {\n\tfor (const acceptedIssue of acceptedIssues) {\n\t\tconst labels = acceptedIssue.labels.map((label) =>\n\t\t\ttypeof label === \"string\" ? label : label.name,\n\t\t);\n\n\t\tfor (const [labelType, contribution] of [\n\t\t\t// 🐛 `bug`: anybody who filed an issue labeled as accepting PRs and a bug\n\t\t\t[options.labelTypeBug, \"bug\"],\n\t\t\t// - 📖 `doc`: authors of merged PRs that address issues labeled as docs\n\t\t\t[options.labelTypeDocs, \"docs\"],\n\t\t\t// 💡 `ideas`: anybody who filed an issue labeled as accepting PRs and a feature\n\t\t\t[options.labelTypeIdeas, \"ideas\"],\n\t\t\t// - 🔧 `tool`: authors of merged PRs that address issues labeled as tooling\n\t\t\t[options.labelTypeTool, \"tool\"],\n\t\t] as const) {\n\t\t\tif (labels.some((label) => label === labelType)) {\n\t\t\t\tcontributors.add(\n\t\t\t\t\tacceptedIssue.user?.login,\n\t\t\t\t\tacceptedIssue.number,\n\t\t\t\t\tcontribution,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"AAIO,SAAS,kBACf,gBACA,cACA,SAIC;AACD,aAAW,iBAAiB,gBAAgB;AAC3C,UAAM,SAAS,cAAc,OAAO;AAAA,MAAI,CAAC,UACxC,OAAO,UAAU,WAAW,QAAQ,MAAM;AAAA,IAC3C;AAEA,eAAW,CAAC,WAAW,YAAY,KAAK;AAAA;AAAA,MAEvC,CAAC,QAAQ,cAAc,KAAK;AAAA;AAAA,MAE5B,CAAC,QAAQ,eAAe,MAAM;AAAA;AAAA,MAE9B,CAAC,QAAQ,gBAAgB,OAAO;AAAA;AAAA,MAEhC,CAAC,QAAQ,eAAe,MAAM;AAAA,IAC/B,GAAY;AACX,UAAI,OAAO,KAAK,CAAC,UAAU,UAAU,SAAS,GAAG;AAChD,qBAAa;AAAA,UACZ,cAAc,MAAM;AAAA,UACpB,cAAc;AAAA,UACd;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "all-contributors-for-repository",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Generates an allcontributors list for an existing repository. 🤝",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,49 +40,49 @@
40
40
  "co-author-to-username": "^0.1.0",
41
41
  "commit-to-co-authors": "^0.1.0",
42
42
  "conventional-commits-parser": "^5.0.0",
43
- "octokit": "^3.0.0"
43
+ "octokit": "^3.1.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@release-it/conventional-changelog": "^8.0.0",
47
- "@types/conventional-commits-parser": "^3.0.3",
48
- "@types/eslint": "^8.44.3",
49
- "@typescript-eslint/eslint-plugin": "^6.7.3",
50
- "@typescript-eslint/parser": "^6.7.3",
51
- "@vitest/coverage-v8": "^0.34.6",
46
+ "@release-it/conventional-changelog": "^8.0.1",
47
+ "@types/conventional-commits-parser": "^3.0.6",
48
+ "@types/eslint": "^8.56.2",
49
+ "@typescript-eslint/eslint-plugin": "^6.18.1",
50
+ "@typescript-eslint/parser": "^6.18.1",
51
+ "@vitest/coverage-v8": "^1.1.3",
52
52
  "console-fail-test": "^0.2.3",
53
- "cspell": "^8.0.0",
54
- "eslint": "^8.50.0",
53
+ "cspell": "^8.3.2",
54
+ "eslint": "^8.56.0",
55
55
  "eslint-plugin-deprecation": "^2.0.0",
56
56
  "eslint-plugin-eslint-comments": "^3.2.0",
57
- "eslint-plugin-jsdoc": "^46.8.2",
58
- "eslint-plugin-jsonc": "^2.9.0",
57
+ "eslint-plugin-jsdoc": "^48.0.2",
58
+ "eslint-plugin-jsonc": "^2.11.2",
59
59
  "eslint-plugin-markdown": "^3.0.1",
60
- "eslint-plugin-n": "^16.1.0",
60
+ "eslint-plugin-n": "^16.6.2",
61
61
  "eslint-plugin-no-only-tests": "^3.1.0",
62
- "eslint-plugin-perfectionist": "^2.1.0",
63
- "eslint-plugin-regexp": "^2.0.0",
64
- "eslint-plugin-vitest": "^0.3.1",
65
- "eslint-plugin-yml": "^1.9.0",
62
+ "eslint-plugin-perfectionist": "^2.5.0",
63
+ "eslint-plugin-regexp": "^2.2.0",
64
+ "eslint-plugin-vitest": "^0.3.20",
65
+ "eslint-plugin-yml": "^1.11.0",
66
66
  "husky": "^8.0.3",
67
- "jsonc-eslint-parser": "^2.3.0",
68
- "knip": "2.43.0",
69
- "lint-staged": "^15.0.0",
70
- "markdownlint": "^0.32.0",
71
- "markdownlint-cli": "^0.37.0",
72
- "npm-package-json-lint": "^7.0.0",
67
+ "jsonc-eslint-parser": "^2.4.0",
68
+ "knip": "3.13.2",
69
+ "lint-staged": "^15.2.0",
70
+ "markdownlint": "^0.33.0",
71
+ "markdownlint-cli": "^0.38.0",
72
+ "npm-package-json-lint": "^7.1.0",
73
73
  "npm-package-json-lint-config-default": "^6.0.0",
74
- "prettier": "^3.0.3",
74
+ "prettier": "^3.1.1",
75
75
  "prettier-plugin-curly": "^0.1.3",
76
- "prettier-plugin-packagejson": "^2.4.6",
77
- "release-it": "^17.0.0",
76
+ "prettier-plugin-packagejson": "^2.4.9",
77
+ "release-it": "^17.0.1",
78
78
  "sentences-per-line": "^0.2.1",
79
79
  "should-semantic-release": "^0.2.1",
80
- "tsup": "^8.0.0",
81
- "typescript": "^5.2.2",
82
- "vitest": "^0.34.6",
80
+ "tsup": "^8.0.1",
81
+ "typescript": "^5.3.3",
82
+ "vitest": "^1.1.3",
83
83
  "yaml-eslint-parser": "^1.2.2"
84
84
  },
85
- "packageManager": "pnpm@8.10.5",
85
+ "packageManager": "pnpm@8.14.0",
86
86
  "engines": {
87
87
  "node": ">=18"
88
88
  },