René's URL Explorer Experiment


Title: refactor: simplify seat probe diagnostics in copilot-report by locus313 · Pull Request #50 · locus313/github-api-scripts · GitHub

Open Graph Title: refactor: simplify seat probe diagnostics in copilot-report by locus313 · Pull Request #50 · locus313/github-api-scripts

X Title: refactor: simplify seat probe diagnostics in copilot-report by locus313 · Pull Request #50 · locus313/github-api-scripts

Description: Description Ponytail audit cleanup of the zero-seat probe block added to github-copilot-report.sh. The block was correct in purpose but had two unnecessary complexity hotspots. Changes New script: /github-/github-.sh Modified: lib/github-common.sh Other: reporting/github-copilot-report/github-copilot-report.sh Removed dead 403 branch — the code's own comment documented that GitHub returns 404 (not 403) on billing endpoints when manage_billing:enterprise scope is absent. The 403 case would never fire. Flattened nested 404 scope-check — replaced a 3-level nested if/else (22 lines, repeated error text) with a single if/else (8 lines) that preserves all actionable guidance. Initialised declare -A with =() — fixes empty-array expansion under bash 5.3 for _GRAPH_CACHE, USER_CREDITS_USED, USER_MODEL_CREDITS, _ALL_MODELS_SET, DEPT_USERS, DEPT_CREDITS. Added empty-string guard in department loop — bash 5.3 emits a single empty-string element when iterating ${!assoc[@]} on an empty associative array; the [[ -z "$dept" ]] && continue guard prevents a blank row in the summary table. Net diff: ~22 lines removed. How to test export GITHUB_TOKEN=ghp_REDACTED export GITHUB_ENTERPRISE=test-enterprise ./reporting/github-copilot-report/github-copilot-report.sh Expected: same output as before for enterprises with seats. For enterprises with 0 seats, the 404 error message now points directly to the missing scope or wrong slug without repeating itself. Checklist set -euo pipefail is the first executable line after the # === header Script sources lib/github-common.sh via SCRIPT_DIR All required env vars validated with require_env_var Token validated with validate_github_token (or validate_token for secondary tokens) User-supplied slugs validated with validate_slug sleep added between repo-level operations to respect rate limits README.md updated with the new/changed script (env var table + usage example) — no user-visible behaviour change, no README update needed Script header comment matches README documentation Tested on a non-production org before production shellcheck passes (shellcheck --severity=warning --exclude=SC2034,SC1091 --shell=bash)

Open Graph Description: Description Ponytail audit cleanup of the zero-seat probe block added to github-copilot-report.sh. The block was correct in purpose but had two unnecessary complexity hotspots. Changes New script...

X Description: Description Ponytail audit cleanup of the zero-seat probe block added to github-copilot-report.sh. The block was correct in purpose but had two unnecessary complexity hotspots. Changes New script...

Opengraph URL: https://github.com/locus313/github-api-scripts/pull/50

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:59a3e64a-cb53-a4cf-7f09-d9540a88eb46
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC2E4:3E74E8:1269DBE:195AF0A:6A61B3AC
html-safe-nonced9cecb0402886321b22a521901267d6d596e0e7fb184626981a9503f02365a69
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkU0OjNFNzRFODoxMjY5REJFOjE5NUFGMEE6NkE2MUIzQUMiLCJ2aXNpdG9yX2lkIjoiODk5NjAwOTI1MDY5NTIxODM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc34d485c5724dcd26889e672729439e531a5564441fa00aae04d61c91ece6d0a
hovercard-subject-tagpull_request:4056243548
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/locus313/github-api-scripts/pull/50/files
twitter:imagehttps://avatars.githubusercontent.com/u/4015312?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4015312?s=400&v=4
og:image:altDescription Ponytail audit cleanup of the zero-seat probe block added to github-copilot-report.sh. The block was correct in purpose but had two unnecessary complexity hotspots. Changes New script...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/locus313/github-api-scripts git https://github.com/locus313/github-api-scripts.git
octolytics-dimension-user_id4015312
octolytics-dimension-user_loginlocus313
octolytics-dimension-repository_id382846115
octolytics-dimension-repository_nwolocus313/github-api-scripts
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id382846115
octolytics-dimension-repository_network_root_nwolocus313/github-api-scripts
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac296ae7f21856f1f92adbad22f870b6fbb4b907
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/locus313/github-api-scripts/pull/50/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flocus313%2Fgithub-api-scripts%2Fpull%2F50%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flocus313%2Fgithub-api-scripts%2Fpull%2F50%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=locus313%2Fgithub-api-scripts
Reloadhttps://github.com/locus313/github-api-scripts/pull/50/files
Reloadhttps://github.com/locus313/github-api-scripts/pull/50/files
Reloadhttps://github.com/locus313/github-api-scripts/pull/50/files
locus313 https://github.com/locus313
github-api-scriptshttps://github.com/locus313/github-api-scripts
Please reload this pagehttps://github.com/locus313/github-api-scripts/pull/50/files
Notifications https://github.com/login?return_to=%2Flocus313%2Fgithub-api-scripts
Fork 1 https://github.com/login?return_to=%2Flocus313%2Fgithub-api-scripts
Star 2 https://github.com/login?return_to=%2Flocus313%2Fgithub-api-scripts
Code https://github.com/locus313/github-api-scripts
Issues 0 https://github.com/locus313/github-api-scripts/issues
Pull requests 0 https://github.com/locus313/github-api-scripts/pulls
Actions https://github.com/locus313/github-api-scripts/actions
Projects https://github.com/locus313/github-api-scripts/projects
Security and quality 0 https://github.com/locus313/github-api-scripts/security
Insights https://github.com/locus313/github-api-scripts/pulse
Code https://github.com/locus313/github-api-scripts
Issues https://github.com/locus313/github-api-scripts/issues
Pull requests https://github.com/locus313/github-api-scripts/pulls
Actions https://github.com/locus313/github-api-scripts/actions
Projects https://github.com/locus313/github-api-scripts/projects
Security and quality https://github.com/locus313/github-api-scripts/security
Insights https://github.com/locus313/github-api-scripts/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flocus313%2Fgithub-api-scripts%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flocus313%2Fgithub-api-scripts%2Fissues%2Fnew%2Fchoose
locus313https://github.com/locus313
mainhttps://github.com/locus313/github-api-scripts/tree/main
refactor/copilot-report-simplify-seat-probe-diagnosticshttps://github.com/locus313/github-api-scripts/tree/refactor/copilot-report-simplify-seat-probe-diagnostics
Conversation 0 https://github.com/locus313/github-api-scripts/pull/50
Commits 1 https://github.com/locus313/github-api-scripts/pull/50/commits
Checks 1 https://github.com/locus313/github-api-scripts/pull/50/checks
Files changed https://github.com/locus313/github-api-scripts/pull/50/files
Please reload this pagehttps://github.com/locus313/github-api-scripts/pull/50/files
refactor: simplify seat probe diagnostics in copilot-report https://github.com/locus313/github-api-scripts/pull/50/files#top
Show all changes 1 commit https://github.com/locus313/github-api-scripts/pull/50/files
e3e420d refactor: simplify seat probe diagnostics in copilot-report locus313 Jul 14, 2026 https://github.com/locus313/github-api-scripts/pull/50/commits/e3e420dbcfdc5e9685493bb916dc3d01b3f64728
Clear filters https://github.com/locus313/github-api-scripts/pull/50/files
Please reload this pagehttps://github.com/locus313/github-api-scripts/pull/50/files
Please reload this pagehttps://github.com/locus313/github-api-scripts/pull/50/files
reporting/github-copilot-report/github-copilot-report.shhttps://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
View file https://github.com/locus313/github-api-scripts/blob/e3e420dbcfdc5e9685493bb916dc3d01b3f64728/reporting/github-copilot-report/github-copilot-report.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/locus313/github-api-scripts/pull/50/{{ revealButtonHref }}
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com/locus313/github-api-scripts/pull/50/files#diff-0ebdf394b1345bceec3e0f9371e45108fa1e0684efb74fe7e1252deaf6d210e8
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.