Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hatamiarash7/gitlab-commitcounter
Count commits for gitlab project
https://github.com/hatamiarash7/gitlab-commitcounter
commit docker gitlab
Last synced: 6 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T06:25:24.000Z (8 months ago)
- Last Synced: 2024-04-25T00:56:03.195Z (8 months 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
[![GitHub license](https://img.shields.io/github/license/hatamiarash7/Gitlab-CommitCounter)](https://github.com/hatamiarash7/Gitlab-CommitCounter/blob/master/LICENSE) ![GitHub last commit](https://img.shields.io/github/last-commit/hatamiarash7/Gitlab-CommitCounter) ![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/hatamiarash7/gitlab-commit-counter) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/hatamiarash7/gitlab-commit-counter?sort=date)
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
[![Donate with Bitcoin](https://en.cryptobadges.io/badge/micro/bc1qmmh6vt366yzjt3grjxjjqynrrxs3frun8gnxrz)](https://en.cryptobadges.io/donate/bc1qmmh6vt366yzjt3grjxjjqynrrxs3frun8gnxrz) [![Donate with Ethereum](https://en.cryptobadges.io/badge/micro/0x0831bD72Ea8904B38Be9D6185Da2f930d6078094)](https://en.cryptobadges.io/donate/0x0831bD72Ea8904B38Be9D6185Da2f930d6078094)
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](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. 👍