5 lines
225 B
Plaintext
5 lines
225 B
Plaintext
function git_commit_no {
|
|
commits=$(curl -s 'https://api.github.com/repos/FreeCAD/FreeCAD/compare/120ca87015...master' | grep "ahead_by" | sed -s 's/ //g' | sed -s 's/"ahead_by"://' | sed -s 's/,//')
|
|
echo $((commits + 1))
|
|
}
|