housebroken-cli 0.2.5__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/PKG-INFO +1 -1
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/pyproject.toml +1 -1
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/inbox.sh +16 -1
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/.gitignore +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/LICENSE +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/README.md +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/bin/housebroken +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/hatch_build.py +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/check-ai-policy.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/comment-census.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/diff-defaults.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/distinct-outside.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/file-pr.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/fork-hygiene.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/notes.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/pr-sweep.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/prior-art.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/scripts/verify-filed-pr.sh +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/skills/housebroken/SKILL.md +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/src/housebroken/__init__.py +0 -0
- {housebroken_cli-0.2.5 → housebroken_cli-0.2.7}/src/housebroken/cli.py +0 -0
|
@@ -120,10 +120,24 @@ if [ "$do_ci" -eq 1 ]; then
|
|
|
120
120
|
echo "== census of open pull requests: failing, blocked, conflicting, changes requested, draft =="
|
|
121
121
|
prs="$(gh search prs --author "$user" --state open --limit 100 --json repository,number,isDraft --jq '.[] | "\(.repository.nameWithOwner) \(.number) \(.isDraft)"' 2>/dev/null)"
|
|
122
122
|
total=$(printf '%s\n' "$prs" | grep -c . || true)
|
|
123
|
+
# GitHub search returns a short page when it is throttled, and a census of half
|
|
124
|
+
# the pull requests reads exactly like a clean one. Compare against the count the
|
|
125
|
+
# API itself reports and say so loudly rather than silently flagging fewer.
|
|
126
|
+
claimed="$(gh api "search/issues?q=is:pr+author:$user+is:open&per_page=1" --jq '.total_count' 2>/dev/null)"
|
|
127
|
+
case "$claimed" in
|
|
128
|
+
''|*[!0-9]*) echo "CENSUS UNVERIFIED: could not read the open pull request count from the API" ;;
|
|
129
|
+
*) [ "$total" -ge "$claimed" ] || echo "CENSUS INCOMPLETE: search returned $total of $claimed open pull requests, so this census covers only part of them; re-run when the search rate limit recovers" ;;
|
|
130
|
+
esac
|
|
123
131
|
flagged=0
|
|
132
|
+
unreadable=0
|
|
133
|
+
unreadable_list=""
|
|
124
134
|
while read -r repo num draft; do
|
|
125
135
|
[ -n "$repo" ] || continue
|
|
126
|
-
j="$(gh pr view "$num" --repo "$repo" --json mergeable,reviewDecision,statusCheckRollup 2>/dev/null)"
|
|
136
|
+
j="$(gh pr view "$num" --repo "$repo" --json mergeable,reviewDecision,statusCheckRollup 2>/dev/null)"
|
|
137
|
+
if [ -z "$j" ]; then
|
|
138
|
+
# A pull request we could not read is not a clean one: say so rather than skipping in silence.
|
|
139
|
+
unreadable=$((unreadable + 1)); unreadable_list="$unreadable_list $repo#$num"; continue
|
|
140
|
+
fi
|
|
127
141
|
why="$(jq -r --arg draft "$draft" '
|
|
128
142
|
[ ( [.statusCheckRollup[]? | (.conclusion // .state // "")] | if any(. == "FAILURE" or . == "ERROR") then "FAILING" elif any(. == "ACTION_REQUIRED") then "needs-run-approval" else empty end ),
|
|
129
143
|
( if .mergeable == "CONFLICTING" then "CONFLICTING" else empty end ),
|
|
@@ -135,6 +149,7 @@ if [ "$do_ci" -eq 1 ]; then
|
|
|
135
149
|
echo "$repo#$num: $why${fails:+ [$fails]}"
|
|
136
150
|
fi
|
|
137
151
|
done <<<"$prs"
|
|
152
|
+
[ "$unreadable" -eq 0 ] || echo "CENSUS UNREADABLE: could not read $unreadable of $total pull requests, so their state is unknown, not clean:$unreadable_list"
|
|
138
153
|
echo "$flagged of $total open pull requests flagged"
|
|
139
154
|
fi
|
|
140
155
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|