Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposing this PR for issue #417.
The PR provides an interface for these endpoints for the REST api:
Org Projects
GET /orgs/{org}/projects
POST /orgs/{org}/projects
Projects
GET /projects/{project_id}
PATCH /projects/{project_id}
DELETE /projects/{project_id}
GET /repos/{owner}/{repo}/projects
POST /repos/{owner}/{repo}/projects
User Projects
POST /user/projects
GET /users/{username}/projects
I tried to follow the same style of other modules in this repo in terms of function naming and inputs. Github's project api is a bit heterogeneous when it comes to required parameters & uri parameters so functions in
api/project.rs
are a bit different from each other but I tried to keep things ergonomic. Hopefully I'm in the ballpark.Note: I added tests based on the "mock" serve (see "test" folder). I don't have an organization or "classical" (old style) project so I can't fully test the api. I'll open the PR as draft for now.