Skip to content

Conversation

@choldgraf
Copy link
Member

@choldgraf choldgraf commented Feb 20, 2023

Currently we create a "list of contributors" that includes usernames that are markdown links. So for example:

[@username](https:--some-link)

Many people use this package to copy/paste into their GitHub release notes description. For example:

https://github.com/pydata/pydata-sphinx-theme/releases/tag/v0.13.0rc3

GitHub has a special way of parsing that description, and generates its own "contributors to this release". This generates a nice little viz like this:

image

However, the usernames are only valid for this if the username is plain-text and not linked. So:

@choldgraf  <-- will be picked up
[@choldgraf](foo) <-- will not be picked up

This means many people don't make it into the github description for contributors.

So this PR slightly re-works our "all contributors" output to include plain-text versions of each username (and an activity link). That way it can be directly copy/pasted into GitHub descriptions.

Probably the easiest way to see what this does is to look at the updated regression tests:

https://github.com/executablebooks/github-activity/pull/82/files#diff-6c54192b8d2c9fe6985b500f05688bd1b18142b3d0e8d421d37bcded866c40aeR23

@choldgraf choldgraf requested a review from minrk February 20, 2023 14:46
@choldgraf
Copy link
Member Author

@minrk any chance you'd take a look at this one quickly since you're thinking about github-activity already? :-)

@minrk minrk merged commit 2d4da37 into master Feb 21, 2023
@minrk
Copy link
Collaborator

minrk commented Feb 21, 2023

Makes sense!

@minrk minrk deleted the gh-friendly-list branch February 21, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants