-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat:Expand GitHub OpenAPI: enterprise team endpoints, ProjectsV2 username #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughExpanded and restructured OpenAPI spec in src/libs/GitHub/openapi.yaml: added enterprise team and team-membership endpoints, migrated user ProjectsV2 paths from user_id to username, renamed org custom-properties operationIds, introduced Copilot repository-rule schema, added new schemas/examples, adjusted nullable fields, and updated references/documentation. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Admin as Enterprise Admin
participant API as GitHub API
participant Dir as Directory/IdP
Admin->>API: POST /enterprises/{enterprise}/teams (create)
API-->>Admin: 201 Team (id, slug, urls)
note over API: Enterprise team resource created
Admin->>API: POST /enterprises/{enterprise}/teams/{team_slug}/memberships/add
API->>Dir: (optional) Sync/validate members
Dir-->>API: Member statuses
API-->>Admin: 200 Bulk add result
Admin->>API: GET /enterprises/{enterprise}/teams/{team_slug}/memberships
API-->>Admin: 200 Members list
Admin->>API: DELETE /enterprises/{enterprise}/teams/{team_slug}
API-->>Admin: 204 No Content
note right of API: Team deleted
sequenceDiagram
autonumber
actor User as User
participant API as GitHub API
participant Proj as ProjectsV2
User->>API: GET /users/{username}/projectsV2/{project_number}
API->>Proj: Fetch project
Proj-->>API: Project data
API-->>User: 200 Project
User->>API: POST /users/{username}/projectsV2/{project_number}/items
API->>Proj: Create item
Proj-->>API: Item (id, content refs)
API-->>User: 201 Item
User->>API: PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}
API->>Proj: Update fields/content
Proj-->>API: Updated item
API-->>User: 200 Item
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (82)
📒 Files selected for processing (1)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Refactor
Documentation