diff --git a/generate.yml b/generate.yml index 1432f62..566fdf3 100755 --- a/generate.yml +++ b/generate.yml @@ -130,6 +130,11 @@ file: "{{ role_path }}/.travis.yml" name: travis + - name: load github contributors + uri: + url: "https://api.github.com/repos/robertdebock/ansible-role-{{ role_name }}/contributors" + register: github_contributors + - name: generate secure hash command: "/usr/bin/travis encrypt --pro robertdebock:{{ secure.slack_token }} --no-interactive" register: travis_secure diff --git a/templates/README.md.j2 b/templates/README.md.j2 index 4264c5d..e34ef69 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -138,6 +138,16 @@ image="debian" tag="stable" tox {{ meta.galaxy_info.license }} +{% if github_contributors.json | length > 1 %} +## [Contributors](#contributors) + +I'd like to thank everybody that made contributions to this repository. It motivates me, improves the code and is just fun to collaborate. + +{% for contributor in github_contributors.json %}{% if contributor.login != "robertdebock" %} +- [{{ contributor.login }}](https://github.com/{{ contributor.login }}) +{% endif %} +{% endfor %} +{% endif %} ## [Author Information](#author-information)