Skip to content

Commit

Permalink
Merge pull request #35 from jpmorgan-payments/metrics
Browse files Browse the repository at this point in the history
Metrics
  • Loading branch information
maria-mcparland authored Jan 9, 2024
2 parents 98ae180 + 402d131 commit fa73554
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
ls
- name: Run merge script
run: |
./merge.sh clone-stats.csv clone-stats
./merge.sh clone-stats.csv clone-stats
./merge.sh traffic-stats.csv traffic-stats
./merge.sh referrer-stats.csv referrer-stats
- uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
7 changes: 7 additions & 0 deletions metrics/clone-stats.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repository_name,date,clones,unique_cloners
unicorn-finance,2023-12-31,1,1
unicorn-finance,2023-12-29,3,2
unicorn-finance,2024-01-05,1,1
unicorn-finance,2024-01-08,41,16
unicorn-finance,2024-01-09,4,2
unicorn-finance,2023-12-30,5,3
2 changes: 1 addition & 1 deletion metrics/merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if [ ! -f "$output_file" ]; then
fi

# Sort the CSV file by the second column (date)
sorted_csv_file="./${2}_sorted.csv"
sorted_csv_file="./${2}-sorted.csv"
if [ -e "$sorted_csv_file" ]; then
rm "$sorted_csv_file"
fi
Expand Down
1 change: 0 additions & 1 deletion metrics/merged-file-clone.csv

This file was deleted.

1 change: 0 additions & 1 deletion metrics/merged-file-referrer.csv

This file was deleted.

1 change: 0 additions & 1 deletion metrics/merged-file-traffic.csv

This file was deleted.

5 changes: 5 additions & 0 deletions metrics/referrer-stats.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repository_name,site,views,unique_visitors/cloners
unicorn-finance,Google,3,3
unicorn-finance,payments-preview.prod.aws.jpmchase.net,1,1
unicorn-finance,github.com,43,11
unicorn-finance,developer.payments.jpmorgan.com,3,3
12 changes: 12 additions & 0 deletions metrics/traffic-stats.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repository_name,date,views,unique_visitors/cloners
unicorn-finance,2023-12-31,1,1
unicorn-finance,2024-01-01,4,1
unicorn-finance,2023-12-26,1,1
unicorn-finance,2024-01-02,95,5
unicorn-finance,2023-12-27,9,2
unicorn-finance,2024-01-03,7,6
unicorn-finance,2024-01-04,3,3
unicorn-finance,2023-12-29,5,4
unicorn-finance,2024-01-05,2,1
unicorn-finance,2024-01-07,2,1
unicorn-finance,2024-01-08,147,6

0 comments on commit fa73554

Please sign in to comment.