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
Automatic generation of contributor graphic in README.md #100
Is your feature request related to a problem? Please describe.
Currently the contributor graphic that shows profile images for contributors in README.md is manually created.
Describe the solution you'd like
It would be awesome if this was created automatically during the Travis build for the master branch.
Describe alternatives you've considered
Currently scripts/get_contributors.sh uses the GitHub API to generate a Markdown file. This file is then rendered as HTML and converted to a PNG.
I'm open to other alternatives pipelines, including third-party services.
Additional context
PR that added the contributor graphic #98
@mttrbrts is there any existing .yml file for travis CI that is being used for the master branch? if not then should I create a build definition for travis that executes the script scripts/get_contributors.sh ?
There's actually an easy way through a bot for example which allows you a bit more of control than just adding a contributor automatically. I saw it used in different other repositories. https://allcontributors.org/
I think that's something that would fit your current processes and is customizable enough to adapt for any changes. Everyone isn't contributing the same way ;)
You even have a CLI option.
Actually, this list of contributions, that I shared above, was the result of check
It doesn't update the list of contributors, it just compares the actual list on Github, and your local all-contributorsrc@mttrbrts
The initial commit will probably require a simple seeding setup
init-command
foreach contributor from check-command
add-command contributor
generate-command
and then the bot (or cli) can take care of the updates.
Actually, this list of contributions, that I shared above, was the result of check
It doesn't update the list of contributors, it just compares the actual list on Github, and your local all-contributorsrc@mttrbrts
@daniloff200 Yes it taking a lot of manual effort to put each name in the list.
sounds good for me @mttrbrts
But, I don't exactly get, how we gonna execute all the steps, mentioned by @kharaone , so, just waiting from some example solution for this repo
Want to make sure I understand what #162 does now: There is now a script in this repo that we can manually run to regenerate the list of contributors, correct?
The initial point was to provide an initialisation script for the configuration file.
If you already have a configuration file, it will indeed update it with contributors it didn't have.
I'll voice a bit of a contrarian opinion on this. I'm not sure why we need to add all this extra work for something GitHub handles perfectly well already. GitHub also does this process without polluting the build process or the PRs.
I do like the idea of giving contributors more visibility, but I think that could be done in a less intrusive and more effective way on the documentation site itself.
Open to this issue and #83 being focused into the techdocs itself for a specific section, because it's a good point to not necessarily have this in the source code for libraries.
the upstream PR have been approved too, which means that the readme.md file will need the comment-marker for the badge section too to get the bot working accordingly.
Activity
Niladri24dutta commentedon Oct 2, 2019
@mttrbrts is there any existing .yml file for travis CI that is being used for the master branch? if not then should I create a build definition for travis that executes the script scripts/get_contributors.sh ?
mttrbrts commentedon Oct 2, 2019
Thanks @Niladri24dutta My mistake, I forgot that for this repo the contents of
websiteis also built manually.I suggest focussing on the image generate part, for now? I can set up the Travis skelton build tomorrow..
kharaone commentedon Oct 2, 2019
There's actually an easy way through a bot for example which allows you a bit more of control than just adding a contributor automatically. I saw it used in different other repositories.
https://allcontributors.org/
I think that's something that would fit your current processes and is customizable enough to adapt for any changes. Everyone isn't contributing the same way ;)
You even have a CLI option.
mttrbrts commentedon Oct 3, 2019
Great idea @kharaone! I've added the bot.
@all-contributors please add @kharaone and @Niladri24dutta for documentation
mttrbrts commentedon Oct 3, 2019
@Niladri24dutta Can you generate the new contributors config using the all-contributors CLI, please? https://allcontributors.org/docs/en/cli/usage#all-contributors-generate
Niladri24dutta commentedon Oct 3, 2019
@mttrbrts Can you let me know where should I use the cli command
all-contributors generate? Do i need to create the file.all-contributorsrcmanually?mttrbrts commentedon Oct 3, 2019
It looks like you should start with
all-contributora inithttps://allcontributors.org/docs/en/cli/usage#all-contributors-initdaniloff200 commentedon Oct 6, 2019
Yes,
all-contributors initgenerates the.all-contributorsrcfile, but, it's empty, and you have to add all users, who contributed withaddcommand.Looks actually weird
For example, for this repo
jeromesimeon, dselman, mttrbrts, irmerk, peterhunn, javiercanossini, lex111, 4katie, FelixKuehl, 4dd3r, daniloff200, jbesq777, Michael-Grover, nithilan4, oorjitchowdhary, contractpendev, pranjalv9, ryanctlin, Yash-Gargis a full list of contributors, and I have to add each of them...
daniloff200 commentedon Oct 6, 2019
Same with the bot
You can add only one user per request to the bot, he will pick the first one and make a PR
1 remaining item
daniloff200 commentedon Oct 6, 2019
Actually, this list of contributions, that I shared above, was the result of
checkIt doesn't update the list of contributors, it just compares the actual list on Github, and your local
all-contributorsrc@mttrbrtskharaone commentedon Oct 7, 2019
The initial commit will probably require a simple seeding setup
init-command
foreach contributor from check-command
add-command contributor
generate-command
and then the bot (or cli) can take care of the updates.
Niladri24dutta commentedon Oct 8, 2019
@daniloff200 Yes it taking a lot of manual effort to put each name in the list.
mttrbrts commentedon Oct 8, 2019
I like @kharaone's plan. @daniloff200 , are you happy to give that a go?
It seems like we have all of the components, between the all-contributors CLI, bit and my bash script.
daniloff200 commentedon Oct 8, 2019
sounds good for me @mttrbrts
But, I don't exactly get, how we gonna execute all the steps, mentioned by @kharaone , so, just waiting from some example solution for this repo
kharaone commentedon Oct 10, 2019
You should have an example of what I meant by seeding the initial run. #162
jolanglinais commentedon Oct 18, 2019
Want to make sure I understand what #162 does now: There is now a script in this repo that we can manually run to regenerate the list of contributors, correct?
kharaone commentedon Oct 19, 2019
The initial point was to provide an initialisation script for the configuration file.
If you already have a configuration file, it will indeed update it with contributors it didn't have.
jolanglinais commentedon Oct 19, 2019
So I believe we'd want this issue to now track the implementation of the same concept in the following repos:
ergociceroconcertomarkdown-transformmarkdown-editorcicero-uiconcerto-uitemplate-studio-v2cicero-vscode-extensioncicero-template-librarymodelstechdocs(@kharaone)jeromesimeon commentedon Oct 19, 2019
I'll voice a bit of a contrarian opinion on this. I'm not sure why we need to add all this extra work for something GitHub handles perfectly well already. GitHub also does this process without polluting the build process or the PRs.
I do like the idea of giving contributors more visibility, but I think that could be done in a less intrusive and more effective way on the documentation site itself.
jolanglinais commentedon Oct 19, 2019
Open to this issue and #83 being focused into the
techdocsitself for a specific section, because it's a good point to not necessarily have this in the source code for libraries.kharaone commentedon Oct 20, 2019
the upstream PR have been approved too, which means that the readme.md file will need the comment-marker for the badge section too to get the bot working accordingly.
jolanglinais commentedon Oct 21, 2019
Scratch #100 (comment), this issue is closed.