hatamiarash7/Gitlab-CommitCounter · 文件
文件最后提交记录最后更新时间
README.md
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 😉
- Fork it !
- Create your feature branch :
git checkout -b my-new-feature - Commit your changes :
git commit -am 'Add some feature' - Push to the branch :
git push origin my-new-feature - Submit a pull request
Issues
Each project may have many problems. Contributing to the better development of this project by reporting them. 👍