Skip to content

Linux admin github repository traffic

Bradley Allen edited this page Feb 8, 2020 · 1 revision

Linux-admin/github-repository-traffic/

Goals:

View repository traffic historical data with more depth than 14 days on GitHub

Download repository traffic data from GitHub (min: 14 days), use cron for scheduling
    Downloaded data includes all repository traffic data
Parse repository traffic data for views and clones data to be used in table.md files
    Create clone.table.md markdown file
    Create view.table.md markdown file
Store raw and parsed data files, tables.md
    Short term storage policy:
        Keep all files for two years
        Include parse.repository.data.sh script used each year
    Long term storage policy:
        Group data yearly and include parse.repository.data.sh script used that year
        After five years only keep downloaded data and parse.repository.data.sh script used that year
Upload markdown (*.md) files to GitHub repository in /images directory
Update README.md file in Traffic section (img.shields.io) with latest tables and totals img.shields.io include link to images/tables

Then automate with cron, scripts, Docker containers, Serverless Functions, that would be a good day


### >>> Need to move this design information into the documentation and then remove from here <<<
#               push files to images/clone.table.md images/view.table.md to github owner/repository/images/(clones,views, NOT popular.referrers.list, popular.paths.list)
#               link *.table.md to README.md badges
#        .... NOTE to self ..... need data first and do'nt want to waste time creating test data ....  come back in a month or six
#
#       column -t -s' ' filename
#       soffice --convert-to png ./clones
#       display ./clones.png
#
#       <img alt="Steam Views" src="https://img.shields.io/steam/views/100">
#
#       cd ~/github/BradleyA/automate/:repo
#       git pull
#       git commit -m '$DATE: automation the update of README table' README.md
#       git push README.md
###
#86# github-repository-data/parse.repository.data.sh
Clone this wiki locally