https://github.com/hatamiarash7/gitlab-commitcounter
Count commits for gitlab project
https://github.com/hatamiarash7/gitlab-commitcounter
commit docker gitlab
Last synced: 3 months ago
JSON representation
Count commits for gitlab project
- Host: GitHub
- URL: https://github.com/hatamiarash7/gitlab-commitcounter
- Owner: hatamiarash7
- License: gpl-3.0
- Created: 2020-06-09T08:21:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T06:25:24.000Z (about 1 year ago)
- Last Synced: 2024-04-25T00:56:03.195Z (about 1 year ago)
- Topics: commit, docker, gitlab
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Count commits for Gitlab repository
[](https://github.com/hatamiarash7/Gitlab-CommitCounter/blob/master/LICENSE)   
It's a small Docker image to count commits for a Gitlab repository. There is an [API endpoint](https://docs.gitlab.com/ee/api/commits.html) to do that :
```lang-none
https://gitlab.com/api/v4/projects//repository/commits
```## Install
```bash
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
```bash
docker run --rm -e "PROJECT_ID=13960749" -e "ACCESS_TOKEN=erplmkbnoihsdFgfalsdk" -e "BRANCH=master" hatamiarash7/gitlab-commit-counter
```---
## Support
[](https://en.cryptobadges.io/donate/bc1qmmh6vt366yzjt3grjxjjqynrrxs3frun8gnxrz) [](https://en.cryptobadges.io/donate/0x0831bD72Ea8904B38Be9D6185Da2f930d6078094)
[](https://ko-fi.com/D1D1WGU9)
## 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. 👍