You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release Drafter: Automatically replace GitHub handles with real names and links #2775
When we make a release, we prefer to have a bulleted list with contributors' real names and links, like:
So we have to make the conversions manually which is tedious.
The Release Drafter provides the replacers option, which can search and replace content in the generated changelog body. I think we can use this option to automatically replace GitHun handles with real names and links. This can be done by adding something like below to the .github/release-drafter.yml file:
changed the title [-]Release Drafter: Automatically replace GitHub handlers with real names and links[/-][+]Release Drafter: Automatically replace GitHub handles with real names and links[/+]on Oct 29, 2023
Activity
[-]Release Drafter: Automatically replace GitHub handlers with real names and links[/-][+]Release Drafter: Automatically replace GitHub handles with real names and links[/+]yvonnefroehlich commentedon Oct 29, 2023
Then we only have to convert the comma separated list to a bullet point list, correct?
seisman commentedon Oct 29, 2023
Yes, we also need to do the handle-name conversion manually for new contributors.
weiji14 commentedon Oct 29, 2023
Could we try:
i.e. add the
hyphen(for making a markdown list) and a newline character at the end?The search seems to work with regex too, so we could potentially set up something like:
But the name will still need to be manually copied. Still, saves us from having to maintain a list of contributors.
P.S. Test the regex statement at https://regex101.com/r/CV1Am0/1
seisman commentedon Oct 30, 2023
Release-drafter produces a list like this:
so the above search-replace won't work.
The following regex works (https://regex101.com/r/IfV49k/1):
It converts the comma-separated list to:
The
replacersdocumentation says:So, we can have: