Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/extract-broken-links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jq -r --arg repo "$REPO_NAME" --arg repos_dir "$REPOS_PREFIX" '
url: .url,
status: $status,
category: (
if (.url | test("github\\.com/kagenti")) then "internal"
if (.url | test("github\\.com/(kagenti|rossoctl)")) then "internal"
else "external"
end
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/link-health-scanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ TREND_TABLE=$(jq -r '

# Build per-repo breakdown with issue counts
# Single org-wide query for all open scanner issues, then count client-side
issue_search=$(gh_with_backoff search issues "org:kagenti in:title \"Broken link in\" state:open" --json repository --jq '.[].repository.nameWithOwner' 2>/dev/null || true)
issue_search=$(gh_with_backoff search issues "org:rossoctl in:title \"Broken link in\" state:open" --json repository --jq '.[].repository.nameWithOwner' 2>/dev/null || true)
declare -A ISSUE_COUNTS
if [ -n "$issue_search" ]; then
while IFS= read -r r; do
Expand Down
8 changes: 4 additions & 4 deletions scripts/pr-review-impact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ LOOKBACK_LIMIT=200
#
get_repos() {
printf '%s\n' \
"kagenti/kagenti" \
"kagenti/kagenti-extensions" \
"kagenti/automation" \
"kagenti/agent-skills"
"rossoctl/rossoctl" \
"rossoctl/cortex" \
"rossoctl/automation" \
"rossoctl/agent-skills"
}

# --- CLI args ---
Expand Down
7 changes: 7 additions & 0 deletions tests/test-extract-broken-links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ write_fixture "$TEST_TMPDIR/int.json" \
'{"code":404}'
run_test "internal category" "$TEST_TMPDIR/int.json" '.[0].category' 'internal'

echo "Test 6b: rossoctl GitHub URL is category internal (post-rename)"
write_fixture "$TEST_TMPDIR/int-rossoctl.json" \
"docs/e2.md" \
"https://github.com/rossoctl/rossoctl/blob/main/missing.md" \
'{"code":404}'
run_test "internal category (rossoctl)" "$TEST_TMPDIR/int-rossoctl.json" '.[0].category' 'internal'

echo "Test 7: text status normalized to unreachable"
write_fixture "$TEST_TMPDIR/unreach.json" \
"docs/f.md" \
Expand Down