Skip to content

Instantly share code, notes, and snippets.

@holmanb
Created October 10, 2023 00:42
Show Gist options
  • Save holmanb/246509ae07e6b55ea7aba0af26495f03 to your computer and use it in GitHub Desktop.
Save holmanb/246509ae07e6b55ea7aba0af26495f03 to your computer and use it in GitHub Desktop.
Cloud-init community contributions
# We want to identify the number of community commits since Ubuntu 23.04 landed, which was cloud-init release 23.1
# Release 23.1.1 has commit hash 4896402b2b0
# Find the number of commits since 23.04:
$ git log --format='%ae' 4896402b2b0..HEAD | wc -l
308
# Find the number of commits authored by non-Canonicalers
$ git log --format='%ae' 4896402b2b0..HEAD | grep -v -e canonical -e ubuntu -e bholman -e orndorf -e catmsred | wc -l
130
# Percentage of community contributions since 23.04
$ echo "100*130/308" | bc -l
42.20779220779220779220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment