Skip to content

Commit a88a0c4

Browse files
authored
Merge pull request #481 from cloudfoundry/orphaned-repo-finder
Added a script to find orphaned repos
2 parents af3b214 + 607bb78 commit a88a0c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

org/orphaned_repos.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -eu -o pipefail
4+
5+
comm -3 <(cat org/cloudfoundry.yml | spruce json \
6+
| jq -r '.orgs.cloudfoundry.repos | with_entries(select(.value.archived != true)) | keys | map("cloudfoundry/\(.)") | sort | unique | .[]') \
7+
<(./toc/working-groups/parsable-working-groups.sh \
8+
| jq -s -r 'map(map(.areas[].repositories)) | flatten | map(select(contains("cloudfoundry"))) | sort | unique | .[]')

0 commit comments

Comments
 (0)