If you got tagged in this PR, it is because you are being credited for work you've done in the past on Exercism here, and we want to ensure you don't miss out on the recognition you deserve 🙂
With v3, we've introduced the idea of exercise authors and contributors. This information is stored in the exercises' .meta/config.json
files (see the docs).
Concept Exercises, which are all new, already contain authors and contributors. Practice Exercises though are missing this information. In this PR, we attempt to populate the authors and contributors of Practice Exercises based on their commit history.
Maintainer TODO list
These are the things you, the maintainers, should do:
- [ ] Check the authors and contributors, adding/removing users where the data is missing or incorrect
- [ ] Double-check any renamed Practice Exercises
- [ ] Check for Practice Exercises with missing authors, which are most likely due to the author not being on GitHub anymore
- [ ] Add additional authors if you know that a Practice Exercise has actually been created by more than one author
For clarity, authors should be the people who originally created the exercise on this track. Contributors should be people who have substantially contributed to that exercise. PRs for typos or multiple-exercise PRs do not automatically mean someone should be considered a contributor to that exercise. Those non-exercise-specific contributions will get recognition through Exercism's reputation system in v3.
If you find something needs updating, just push a new commit to this PR.
Automatic Merging
We will automatically merge this PR before we launch v3, but will give the maximum time we can to maintainers to review it first.
The rest of this issue explains how this PR has been generated. You do not need to read it.
Algorithm
We start out by looking at the current Practice Exercises. For each Practice Exercise, we'll look at the commit history of its files to see which commits touched that Practice Exercise. How renames are handled is discussed in the "Renames" section later in this document.
Any commit that we can associate with a Practice Exercise is used to determine authorship/contributorship. Here is how we assign authorship/contributorship:
Authors
- Find the Git commit author of the oldest commit linked to that Practice Exercise.
- Find the GitHub username for the Git commit author of that commit
- Add the GitHub username of the Git commit author to the
authors
key in the .meta/config.json
file
Contributors
- 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.
- 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)
- Find the GitHub usernames for the Git commit authors and any co-authors of those commits
- Add the GitHub usernames of the Git commit authors and any co-authors to the
contributor
key in the .meta/config.json
file
We're using the GitHub GraphQL API to find the username of a commit author and 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 we'll skip the commit.
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
If you know of a rename of a Practice Exercise, please check to see if its authors and contributors are correctly set.
Exclusions
There are some commits that we skip over, which thus don'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
Tracking
https://github.com/exercism/v3-launch/issues/24
cc @0xae, @aaditkamat, @abhijitparida, @aboutroots, @AbstractBeliefs, @acedrew, @ackerleytng, @aes421, @AiryShift, @akashsara, @aldraco, @Alexhans, @alexpjohnson, @alirezaghey, @AnAccountForReportingBugs, @AndrejTS, @anunciado, @ariso353, @atg-abhishek, @austinlyons, @beatorizu, @behrtam, @betegelse, @BethanyG, @betojulio, @bsoyka, @c4llmeco4ch, @carloscdias, @chgraef, @chrisftw, @cjchallis, @clapmyhands, @cmccandless, @cptjackson, @crazymykl, @crsmi, @cruxicheiros, @csabella, @ctholho, @cypher, @danishprakash, @davepeake, @de2Zotjes, @deep110, @denislooby, @dmerejkowsky, @DocFogel, @Dog, @dotrungkien, @dvermd, @ee7, @elyashiv, @elyssonmr, @emerali, @etmoore, @etrepum, @ferhatelmas, @flores-jacob, @fluxusfrequency, @forgeRW, @fortrieb, @frerich, @gabriel376, @gabriellhrn, @Galixxon, @GascaK, @GKotfis, @Grociu, @gsbullmer, @guaneec, @guygastineau, @hanksudo, @hariesramdhani, @hebertjulio, @helenst, @henrik, @hop, @iandexter, @ikhadykin, @ikkebr, @ilmanzo, @jackattack24, @jamesmcm, @jandersoncampelo, @janetriley, @jeremystucki, @jesserizzo, @jgomo3, @jnaulty, @josix, @jremmen, @JuliaKBremer, @julianandrews, @junming403, @justani, @K4cePhoenix, @koljakube, @kotp, @krapes, @kylecjo, @kytrinyx, @lekum, @lemoncurry, @lowks, @luanjpb, @lucasdpau, @lucasloisp, @luoken, @magnus-hogberg, @mambocab, @mandel01, @markijbema, @MartinDelille, @michaelem, @michaelkunc, @miketamis, @mikeyny, @Mofeywalker, @MojitoMonday, @morganpartee, @mostlybadfly, @mpatibandla, @MrNaif2018, @mtroiani, @N-Parsons, @n1k0, @nikamirrr, @Nishant23, @nithin-vijayan, @njgingrich, @nmbrgts, @NobbZ, @oalbe, @olufotebig, @omer-g, @Oniwa, @orozcoadrian, @pamtdoh, @parinporecha, @parthsharma2, @PatrickMcSweeny, @patricksjackson, @Paul-Ilyin, @Peque, @peterblazejewicz, @petertseng, @pheanex, @pranasziaukas, @pyropy, @pywkm, @rever0f, @rfuentescruz, @rivergillis, @rjsabatini, @RJTK, @roadfoodr, @robkeim, @rodrigocam, @rohitrango, @rootulp, @rozuur, @rpalo, @sambryant4, @samdec11, @samwincott, @saurabhchalke, @sdublish, @sharno, @siejqa, @simmol, @sjakobi, @sjwarner-bp, @skeskali, @smalley, @smt923, @spencer51324312, @Stigjb, @stonemirror, @subkrish, @Sukhj1nder, @sukovanej, @susg, @thenigan, @thomasjpfan, @tqa236, @trangttt, @treyhunner, @tsamoglou, @tstirrat15, @twsh, @vgerak, @vigneshhari, @wandreuscv, @wobh, @xarxziux, @xitanggg, @yawpitch, @yo-ga, @yunchih, @YuriyCherniy, @ZacharyRSmith, @zwaltman as you are referenced in this PR
x:size/tiny