https://github.com/vintasoftware/scrapping-metrics
https://github.com/vintasoftware/scrapping-metrics
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vintasoftware/scrapping-metrics
- Owner: vintasoftware
- Created: 2022-01-08T14:55:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T23:08:00.000Z (about 4 years ago)
- Last Synced: 2025-08-19T01:23:37.910Z (11 months ago)
- Language: HTML
- Homepage: https://exp-dash-app.herokuapp.com/
- Size: 4.29 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scrapping-metrics
## Setup
- Fork this repo
- Update `metrics.json` to be:
```
{}
```
- On Github, go to Setting > Secrets and create (follow the steps [here](https://github.com/vintasoftware/github-metrics#project-variables-setup)):
- GITHUB_LOGIN
- ORG_NAME
- REPOSITORY_NAME
- GITHUB_TOKEN
- EXCLUDE_AUTHORS
- START_DATE
- To fill the data retroactively you should run:
- The script considers sprints of 2 weeks and 2019-12-30 as the start date
```
python retroactive.py
```
- To deploy run:
```
$ heroku create my-dash-app # change my-dash-app to a unique name
$ git add . # add all files to git
$ git commit -m 'Initial app boilerplate'
$ git push heroku main # deploy code to heroku
$ heroku ps:scale web=1 # run the app with a 1 heroku "dyno"
```
- On heroku, configure a pipeline deploy for every new push to main
## Local Setup
```
- pyenv virtualenv 3.9.0 kpis
- pip install -r requirements.txt
- ipython kernel install --name "kpis" --user
- jupyter lab
```
## Running the notebook
- https://mybinder.org/
## TODO
- Improve code
- Separate metrics per squad
- Include hotfixes metrics
## Resources
- https://simonwillison.net/2021/Dec/7/git-history/
- https://simonwillison.net/2020/Oct/9/git-scraping/