Skip to content

Commit cd2fbd7

Browse files
🤖 Add authors and contributors to Practice Exercises (#1055)
* Add authors and contributors to Practice Exercises For each Practice Exercise, we've looked at the commit history of its files to see which commits touched that Practice Exercise. Each commit that we could associate with a Practice Exercise was used to determine authorship/contributorship. ### Authors 1. Find the Git commit author of the oldest commit linked to that Practice Exercise 2. Find the GitHub username for the Git commit author of that commit 3. Add the GitHub username of the Git commit author to the `authors` key in the `.meta/config.json` file ### Contributors 1. Find the Git commit authors and any co-authors of all but the oldest commit linked to that Practice Exercise. If there is only one commit, there won't be any contributors. 1. Exclude the Git commit author and any co-authors of the oldest commit from the list of Git commit authors (an author is _not_ also a contributor) 2. Find the GitHub usernames for the Git commit authors and any co-authors of those commits 3. Add the GitHub usernames of the Git commit authors and any co-authors to the `contributor` key in the `.meta/config.json` file We used the GitHub GraphQL API to find the username of a commit author or any co-authors. In some cases though, a username cannot be found for a commit (e.g. due to the user account no longer existing), in which case the commit was skipped. ## Renames There are a small number of Practice Exercises that might have been renamed at some point. You can ask Git to "follow" a file over its renames using `git log --follow <file>`, which will also return commits made before renames. Unfortunately, Git does not store renames, it just stores the contents of the renamed files and tries to guess if a file was renamed by looking at its contents. This _can_ (and will) lead to false positives, where Git will think a file has been renamed whereas it hasn't. As we don't want to have incorrect authors/contributors for exercises, we're ignoring renames. The only exception to this are known exercise renames: - `bracket-push` was renamed to `matching-brackets` - `retree` was renamed to `satellite` - `resistor-colors` was renamed to `resistor-color-duo` - `kindergarden-garden` was renamed to `kindergarten-garden` ## Exclusions There are some commits that we skipped over, and which thus didn't influence the authors/contributors list: - Commits authored by `dependabot[bot]`, `dependabot-preview[bot]` or `github-actions[bot]` - Bulk update PRs made by `ErikSchierboom` or `kytrinx` to update the track * [CI] Format code * Exclude contributions made for the following files: - README.md - package.json - package-lock.json - .eslintrc - .npmrc - babel.config.js - LICENSE * [CI] Format code Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c25d3bd commit cd2fbd7

File tree

112 files changed

+944
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+944
-108
lines changed

‎exercises/practice/accumulate/.meta/config.json‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"blurb": "Implement the `accumulate` operation, which, given a collection and an operation to perform on each element of the collection, returns a new collection containing the result of applying that operation to each element of the input collection.",
3-
"authors": [],
3+
"authors": ["matthewmorgan"],
4+
"contributors": [
5+
"ankorGH",
6+
"gargrave",
7+
"rchavarria",
8+
"ryanplusplus",
9+
"SleeplessByte",
10+
"xarxziux"
11+
],
412
"files": {
513
"solution": ["accumulate.js"],
614
"test": ["accumulate.spec.js"],

‎exercises/practice/acronym/.meta/config.json‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"blurb": "Convert a long phrase to its acronym",
3-
"authors": [],
3+
"authors": ["matthewmorgan"],
4+
"contributors": [
5+
"ankorGH",
6+
"cmccandless",
7+
"gargrave",
8+
"rchavarria",
9+
"ryanplusplus",
10+
"serixscorpio",
11+
"SleeplessByte"
12+
],
413
"files": {
514
"solution": ["acronym.js"],
615
"test": ["acronym.spec.js"],

‎exercises/practice/affine-cipher/.meta/config.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"blurb": "Create an implementation of the Affine cipher, an ancient encryption algorithm from the Middle East.",
3-
"authors": [],
3+
"authors": ["TomPradat"],
4+
"contributors": ["SleeplessByte"],
45
"files": {
56
"solution": ["affine-cipher.js"],
67
"test": ["affine-cipher.spec.js"],

‎exercises/practice/all-your-base/.meta/config.json‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"blurb": "Convert a number, represented as a sequence of digits in one base, to any other base.",
3-
"authors": [],
3+
"authors": ["javaeeeee"],
4+
"contributors": [
5+
"ankorGH",
6+
"matthewmorgan",
7+
"OrthoDex",
8+
"rchavarria",
9+
"serixscorpio",
10+
"SleeplessByte"
11+
],
412
"files": {
513
"solution": ["all-your-base.js"],
614
"test": ["all-your-base.spec.js"],

‎exercises/practice/allergies/.meta/config.json‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
{
22
"blurb": "Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.",
3-
"authors": [],
3+
"authors": ["rchavarria"],
4+
"contributors": [
5+
"ankorGH",
6+
"matthewmorgan",
7+
"ovidiu141",
8+
"ryanplusplus",
9+
"SleeplessByte",
10+
"tejasbubane",
11+
"thanhcng",
12+
"xarxziux"
13+
],
414
"files": {
515
"solution": ["allergies.js"],
616
"test": ["allergies.spec.js"],

‎exercises/practice/alphametics/.meta/config.json‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"blurb": "Write a function to solve alphametics puzzles.",
3-
"authors": [],
3+
"authors": ["matthewmorgan"],
4+
"contributors": [
5+
"rchavarria",
6+
"slaymance",
7+
"SleeplessByte",
8+
"tejasbubane",
9+
"xarxziux"
10+
],
411
"files": {
512
"solution": ["alphametics.js"],
613
"test": ["alphametics.spec.js"],

‎exercises/practice/anagram/.meta/config.json‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{
22
"blurb": "Given a word and a list of possible anagrams, select the correct sublist.",
3-
"authors": [],
3+
"authors": ["rchavarria"],
4+
"contributors": [
5+
"amscotti",
6+
"ankorGH",
7+
"draalger",
8+
"gabriel376",
9+
"gargrave",
10+
"kytrinyx",
11+
"matthewmorgan",
12+
"ovidiu141",
13+
"ryanplusplus",
14+
"SleeplessByte",
15+
"tejasbubane"
16+
],
417
"files": {
518
"solution": ["anagram.js"],
619
"test": ["anagram.spec.js"],

‎exercises/practice/armstrong-numbers/.meta/config.json‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"blurb": "Determine if a number is an Armstrong number",
3-
"authors": [],
3+
"authors": ["PakkuDon"],
4+
"contributors": [
5+
"ankorGH",
6+
"gargrave",
7+
"hayashi-ay",
8+
"ovidiu141",
9+
"SleeplessByte",
10+
"xarxziux"
11+
],
412
"files": {
513
"solution": ["armstrong-numbers.js"],
614
"test": ["armstrong-numbers.spec.js"],

‎exercises/practice/atbash-cipher/.meta/config.json‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"blurb": "Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.",
3-
"authors": [],
3+
"authors": ["matthewmorgan"],
4+
"contributors": [
5+
"Futuro212",
6+
"ovidiu141",
7+
"rchavarria",
8+
"ryanplusplus",
9+
"SleeplessByte",
10+
"tejasbubane",
11+
"xarxziux"
12+
],
413
"files": {
514
"solution": ["atbash-cipher.js"],
615
"test": ["atbash-cipher.spec.js"],

‎exercises/practice/bank-account/.meta/config.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"blurb": "Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions!",
3-
"authors": [],
3+
"authors": ["TomPradat"],
4+
"contributors": ["SleeplessByte"],
45
"files": {
56
"solution": ["bank-account.js"],
67
"test": ["bank-account.spec.js"],

0 commit comments

Comments
 (0)