hatamiarash7/gitlab-commit-counter

By hatamiarash7

Updated almost 2 years ago

Count commits for gitlab project

Image
0

154

hatamiarash7/gitlab-commit-counter repository overview

Count commits for Gitlab repository

GitHub license GitHub last commit Docker Cloud Build Status Docker Image Size (latest by date)

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

Donate with Bitcoin Donate with Ethereum

ko-fi

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. 👍

Tag summary

Content type

Image

Digest

sha256:b0d3c706c

Size

24.4 MB

Last updated

almost 2 years ago

Requires Docker Desktop 4.37.1 or later.