BED-9673: detect GitHub deployment metadata at startup - #57
BED-9673: detect GitHub deployment metadata at startup#57jaredcatkinson wants to merge 2 commits into
Conversation
…ub-deployment-version BED-9673: detect GitHub deployment metadata at startup
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. WalkthroughChangesDeployment metadata propagation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Deployment metadata is consistently detected and emitted for enterprise and organization nodes, with no unresolved merge risk identified. Sequence Diagram(s)sequenceDiagram
participant Source
participant GitHubMetaAPI
participant SourceContext
participant EnterpriseResource
participant OrganizationResource
Source->>GitHubMetaAPI: Request /meta
GitHubMetaAPI-->>Source: Deployment metadata
Source->>SourceContext: Store metadata
Source->>EnterpriseResource: Provide enterprise context
Source->>OrganizationResource: Provide organization context
EnterpriseResource-->>Source: Emit enterprise metadata
OrganizationResource-->>Source: Emit organization metadata
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Summary
/metaduring source startup to identify GHEC vs GHES and capture GHES version metadataGH_EnterpriseandGH_Organizationroot nodessecurityContactEmailfield from the enterprise GraphQL query and modelTesting
HOME=/private/tmp .venv/bin/python -m pytestHOME=/private/tmp .venv/bin/python -m ruff check src/openhound_github/source.py src/openhound_github/graphql.py src/openhound_github/models/enterprise.py src/openhound_github/models/org.py src/openhound_github/resources/enterprise.py src/openhound_github/resources/organization.py tests/test_enterprise_resources.py tests/test_source_endpoints.py tests/test_source_org_canonicalization.pygit diff --checkSummary by CodeRabbit
New Features
Bug Fixes