exercism/v3-launch

Add authors and contributors to practice exercises

ErikSchierboom opened this issue ยท 9 comments

With v3, we've introduced the idea of exercise authors and contributors. This information is stored in the exercise's .meta/config.json file (see the docs).

Concept Exercises, which are all new, have all defined their authors and contributors. Practice Exercises though are missing this information. We will try to automatically populate the authors and contributors of Practice Exercises based on the commit history.

iHiD commented

(cc @exercism/track-maintainers @exercism/alumni - You may want to check the PRs above that contain work you have done to ensure you are properly credited for your contributions ๐Ÿ’™)

Not sure how many this may affect but (and i'm guessing) because only "known" renames are tracked the rename from Feb 2014 where exercises were moved out of an assignments subdirectory isn't noticed so some exercises will be marked as authored by Katrina.

e.g. exercism/common-lisp@ada1291

@verdammelt Hmmm, weird. My script does take those renames into account. I'll have to look into it.

@verdammelt I know what's happening. The problem is that the track was renamed. It used to be named lisp instead of common-lisp. I see that you've already updates the authors, otherwise I could have run updated my script. But thanks for the heads-up!

Hello ๐Ÿ‘‹ @ErikSchierboom, does your script skip exercism/dart?

The problem is that the track was renamed.

This makes me wonder, what about authors/contributors who changed their username?

does your script skip exercism/dart?

@devkabiir No my script does not skip dart. I've looked into this, and the PR was not created because the v3-migration ๐Ÿค– label could not be found. I though I had created that label for all tracks, but I guess not. I've just re-added the label and re-run my script, leading to the PR being opened: exercism/dart#310

This makes me wonder, what about authors/contributors who changed their username?

Changing their username should not be an issue, as we lookup the username from the git commit author email.

@ErikSchierboom I believe @devkabiir used to be @kabiir which shows up in the generated PR in exercise/dart alongside his current I'd @devkabiir.

So I don't know if we should simplify it to his current username. Whatever @devkabiir would prefer.

Changing their username should not be an issue, as we lookup the username from the git commit author email.

For my case, I changed my username from kabiir to devkabiir. I suspect, kabiir was made available after some time as a valid username and someone did take it. This is a mistaken identity case. So if there are other contributors/authors with username changes or email changes, please be aware of this.

I do not know the exact way email lookup works, I think GitHub provides pseudo-anonymized emails like <####-username@users.noreply.github.com> or something like <####@users.noreply.github.com> in some cases. In any case could it be possible to automatically create PR-comments with details of username-misses or email-misses, for the dart track I almost know all of the contributor names and authors, but for tracks with higher traffic/commits they might require more efforts.

Aha, like that. Thanks for the info