Skip to content

Commit da39d1b

Browse files
build(deps): Bump github.com/prometheus/common from 0.64.0 to 0.65.0 (#24895)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: aljo242 <[email protected]>
1 parent 5cab4b5 commit da39d1b

File tree

9 files changed

+62
-12
lines changed

9 files changed

+62
-12
lines changed

data.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
3+
# -------------------------------
4+
# Configuration
5+
# -------------------------------
6+
TIMEFRAME="6 months ago"
7+
TOP_N=10
8+
9+
# -------------------------------
10+
# Ensure we're in a Git repo
11+
# -------------------------------
12+
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
13+
echo "This is not a Git repository. Please run inside a Git project."
14+
exit 1
15+
fi
16+
17+
echo "Analyzing top $TOP_N contributors in: $(pwd)"
18+
echo "Timeframe: Since $TIMEFRAME"
19+
20+
# -------------------------------
21+
# Get total commits in timeframe
22+
# -------------------------------
23+
TOTAL_COMMITS=$(git log --since="$TIMEFRAME" --pretty=oneline | wc -l)
24+
25+
if [ "$TOTAL_COMMITS" -eq 0 ]; then
26+
echo "No commits found in the last 6 months."
27+
exit 0
28+
fi
29+
30+
# -------------------------------
31+
# Get and sort commits per author
32+
# -------------------------------
33+
echo
34+
echo "Top $TOP_N Contributors by Commit Share:"
35+
echo "------------------------------------------"
36+
37+
git shortlog -sne --since="$TIMEFRAME" \
38+
| awk -v total="$TOTAL_COMMITS" '{
39+
count = $1
40+
sub($1 FS, "")
41+
printf "%s|%d|%.2f\n", $0, count, (count * 100) / total
42+
}' \
43+
| sort -t'|' -k2 -nr \
44+
| head -n $TOP_N \
45+
| awk -F'|' '{
46+
printf "%-30s %4d commits (%5.2f%%)\n", $1, $2, $3
47+
}'
48+
49+
echo "------------------------------------------"
50+
echo "Total commits in timeframe: $TOTAL_COMMITS"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ require (
4848
github.com/mattn/go-isatty v0.0.20
4949
github.com/mdp/qrterminal/v3 v3.2.1
5050
github.com/prometheus/client_golang v1.22.0
51-
github.com/prometheus/common v0.64.0
51+
github.com/prometheus/common v0.65.0
5252
github.com/rs/zerolog v1.34.0
5353
github.com/spf13/cast v1.9.2
5454
github.com/spf13/cobra v1.9.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,8 +1431,8 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b
14311431
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
14321432
github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
14331433
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
1434-
github.com/prometheus/common v0.64.0 h1:pdZeA+g617P7oGv1CzdTzyeShxAGrTBsolKNOLQPGO4=
1435-
github.com/prometheus/common v0.64.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
1434+
github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE=
1435+
github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
14361436
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
14371437
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
14381438
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=

simapp/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ require (
159159
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
160160
github.com/prometheus/client_golang v1.22.0 // indirect
161161
github.com/prometheus/client_model v0.6.2 // indirect
162-
github.com/prometheus/common v0.64.0 // indirect
162+
github.com/prometheus/common v0.65.0 // indirect
163163
github.com/prometheus/procfs v0.16.1 // indirect
164164
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
165165
github.com/rogpeppe/go-internal v1.14.1 // indirect

simapp/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,8 +1439,8 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b
14391439
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
14401440
github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
14411441
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
1442-
github.com/prometheus/common v0.64.0 h1:pdZeA+g617P7oGv1CzdTzyeShxAGrTBsolKNOLQPGO4=
1443-
github.com/prometheus/common v0.64.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
1442+
github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE=
1443+
github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
14441444
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
14451445
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
14461446
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=

tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ require (
157157
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
158158
github.com/prometheus/client_golang v1.22.0 // indirect
159159
github.com/prometheus/client_model v0.6.2 // indirect
160-
github.com/prometheus/common v0.64.0 // indirect
160+
github.com/prometheus/common v0.65.0 // indirect
161161
github.com/prometheus/procfs v0.16.1 // indirect
162162
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
163163
github.com/rogpeppe/go-internal v1.14.1 // indirect

tests/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,8 +1437,8 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b
14371437
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
14381438
github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
14391439
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
1440-
github.com/prometheus/common v0.64.0 h1:pdZeA+g617P7oGv1CzdTzyeShxAGrTBsolKNOLQPGO4=
1441-
github.com/prometheus/common v0.64.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
1440+
github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE=
1441+
github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
14421442
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
14431443
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
14441444
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=

tests/systemtests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ require (
125125
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
126126
github.com/prometheus/client_golang v1.22.0 // indirect
127127
github.com/prometheus/client_model v0.6.2 // indirect
128-
github.com/prometheus/common v0.64.0 // indirect
128+
github.com/prometheus/common v0.65.0 // indirect
129129
github.com/prometheus/procfs v0.16.1 // indirect
130130
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
131131
github.com/rogpeppe/go-internal v1.14.1 // indirect

tests/systemtests/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,8 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b
613613
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
614614
github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
615615
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
616-
github.com/prometheus/common v0.64.0 h1:pdZeA+g617P7oGv1CzdTzyeShxAGrTBsolKNOLQPGO4=
617-
github.com/prometheus/common v0.64.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
616+
github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE=
617+
github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
618618
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
619619
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
620620
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=

0 commit comments

Comments
 (0)