Gitlab-CommitCounter

Count commits for gitlab project

GPL-3.0 License

Stars
1

Count commits for Gitlab repository

It's a small Docker image to count commits for a Gitlab repository. There is an API endpoint to do that :

https://gitlab.com/api/v4/projects/<ID>/repository/commits

Install

docker pull hatamiarash7/gitlab-commit-counter

Environment variables

  • PROJECT_ID : Project id for specific repository. You can find it under title or Settings > General
  • ACCESS_TOKEN : Personal access token for your account. You can create a token in User Settings > Access Tokens
  • BRANCH : Branch name

Usage

docker run --rm -e "PROJECT_ID=13960749" -e "ACCESS_TOKEN=erplmkbnoihsdFgfalsdk" -e "BRANCH=master" hatamiarash7/gitlab-commit-counter

Support

Contributing

Don't be shy and reach out to us if you want to contribute 😉

  1. Fork it !
  2. Create your feature branch : git checkout -b my-new-feature
  3. Commit your changes : git commit -am 'Add some feature'
  4. Push to the branch : git push origin my-new-feature
  5. Submit a pull request

Issues

Each project may have many problems. Contributing to the better development of this project by reporting them. 👍