Logs statistics for specific commits in CSV form and optionally sends them as JSON to a web api.
Project description
gitcommitlogger
A Python package that logs the details of a specific set of commits made to a GitHub repository. Logs are saved into a CSV
file and can optionally be sent in a request to a web app, such as a Google Apps Script attached to a Google Sheet where the data can be stored.
Overview:
- Set up Google Sheet with Apps Script published as a web app - this allows it to respond to
GET
orPOST
requests. - Add the URL of the Apps Script web app to the GitHub repository as a secret named
WEB_APP_URL
. - The
logs-commits.yml
GitHub Action in this repository will send aPOST
request to the Google Sheet web app whenever a push is made on the repository. - The web app will then add a row to the Google Sheet with the details of the commit, including the commit id, author, number of files changed in the commit, number of lines added and deleted.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitcommitlogger-0.0.1.tar.gz
(39.3 kB
view hashes)
Built Distribution
Close
Hashes for gitcommitlogger-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be76dc5ed4d6840cdb18cc2fb562e8abeab025d1c3b86195ec47096be2b6d09 |
|
MD5 | 5335c11ca7d0dc1dd352ceec0842d485 |
|
BLAKE2b-256 | 363309d5e4d095f29854340bd051b2fb7c7994c03a069a837bf4bdd180540285 |