Skip to content

Automatic generation of contributor graphic in README.md #100

Closed

Description

@mttrbrts

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

Activity

  1. Niladri24dutta commented on Oct 2, 2019

    @Niladri24dutta

    @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 ?

  2. mttrbrts commented on Oct 2, 2019

    @mttrbrts
    SponsorMemberAuthor

    Thanks @Niladri24dutta My mistake, I forgot that for this repo the contents of website is also built manually.

    I suggest focussing on the image generate part, for now? I can set up the Travis skelton build tomorrow..

  3. kharaone commented on Oct 2, 2019

    @kharaone
    Contributor

    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.

  4. mttrbrts commented on Oct 3, 2019

    @mttrbrts
    SponsorMemberAuthor

    Great idea @kharaone! I've added the bot.

    @all-contributors please add @kharaone and @Niladri24dutta for documentation

  5. mttrbrts commented on Oct 3, 2019

    @mttrbrts
    SponsorMemberAuthor

    @Niladri24dutta Can you generate the new contributors config using the all-contributors CLI, please? https://allcontributors.org/docs/en/cli/usage#all-contributors-generate

  6. Niladri24dutta commented on Oct 3, 2019

    @Niladri24dutta

    @mttrbrts Can you let me know where should I use the cli command all-contributors generate? Do i need to create the file .all-contributorsrc manually?

  7. mttrbrts commented on Oct 3, 2019

    @mttrbrts
    SponsorMemberAuthor

    @mttrbrts Can you let me know where should I use the cli command all-contributors generate? Do i need to create the file .all-contributorsrc manually?

    It looks like you should start with all-contributora init https://allcontributors.org/docs/en/cli/usage#all-contributors-init

  8. daniloff200 commented on Oct 6, 2019

    @daniloff200
    Contributor

    Yes, all-contributors init generates the .all-contributorsrc file, but, it's empty, and you have to add all users, who contributed with add command.

    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-Garg

    is a full list of contributors, and I have to add each of them...

  9. daniloff200 commented on Oct 6, 2019

    @daniloff200
    Contributor

    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

  10. 1 remaining item

  11. daniloff200 commented on Oct 6, 2019

    @daniloff200
    Contributor

    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

  12. kharaone commented on Oct 7, 2019

    @kharaone
    Contributor

    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.

  13. Niladri24dutta commented on Oct 8, 2019

    @Niladri24dutta

    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.

  14. mttrbrts commented on Oct 8, 2019

    @mttrbrts
    SponsorMemberAuthor

    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.

  15. daniloff200 commented on Oct 8, 2019

    @daniloff200
    Contributor

    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

  16. kharaone commented on Oct 10, 2019

    @kharaone
    Contributor

    You should have an example of what I meant by seeding the initial run. #162

  17. jolanglinais commented on Oct 18, 2019

    @jolanglinais
    Member

    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?

  18. kharaone commented on Oct 19, 2019

    @kharaone
    Contributor

    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.

  19. jolanglinais commented on Oct 19, 2019

    @jolanglinais
    Member

    So I believe we'd want this issue to now track the implementation of the same concept in the following repos:

    • ergo
    • cicero
    • concerto
    • markdown-transform
    • markdown-editor
    • cicero-ui
    • concerto-ui
    • template-studio-v2
    • cicero-vscode-extension
    • cicero-template-library
    • models
    • techdocs(@kharaone)
  20. jeromesimeon commented on Oct 19, 2019

    @jeromesimeon
    Member

    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.

  21. jolanglinais commented on Oct 19, 2019

    @jolanglinais
    Member

    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.

  22. kharaone commented on Oct 20, 2019

    @kharaone
    Contributor

    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.

  23. jolanglinais commented on Oct 21, 2019

    @jolanglinais
    Member

    Scratch #100 (comment), this issue is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Difficulty: MediumType: Feature Request 🛍️hacktoberfest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions