Last active
March 13, 2019 18:18
-
-
Save samsalisbury/43298a247bfe182a51e10f383976c17c to your computer and use it in GitHub Desktop.
Generating spreadsheet of Sous manifests + owners
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
.[] | |
| | |
select( | |
.NumInstances != 0 | |
and ( .SourceID.Location | startswith("github.com/sous") | not ) | |
and ( .SourceID.Location | contains("hack") | not ) | |
and ( .SourceID.Location | contains("demo") | not ) | |
and ( .SourceID.Location | contains("sous") | not ) | |
) | |
| | |
{ | |
source: .SourceID.Location, | |
owners: .Owners | keys | sort | join("|"), | |
} | |
] | |
| unique | |
| .[] | "\(.source)|\(.owners)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sous query gdm -format=json | tee gdm.json | |
jq -s -f query.jq < gdm.json | jq -r '.' | sed $'s/|/\t/g' > manifests.tsv | |
pbcopy < manifests.tsv # now paste into Google Sheets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment