Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
775f0f6
Add support for projects V2
JoannaaKL Sep 17, 2025
74712bd
Add test
JoannaaKL Sep 17, 2025
3a8cf0c
Address feedback
JoannaaKL Sep 22, 2025
b754eeb
Merge branch 'master' into add-projects
JoannaaKL Sep 22, 2025
e93ed36
Remove header and rename functions
JoannaaKL Sep 22, 2025
99852cf
Update comments
JoannaaKL Sep 22, 2025
7664215
Copyright update
JoannaaKL Sep 22, 2025
89016d9
Merge branch 'master' into add-projects
JoannaaKL Sep 23, 2025
2b94765
Update comments
JoannaaKL Sep 23, 2025
a4b0a56
Generate docs
JoannaaKL Sep 23, 2025
696102b
Add list projects option
JoannaaKL Sep 23, 2025
469e03a
Generate openapi docs
JoannaaKL Sep 23, 2025
2dbe5b4
Results of generate
JoannaaKL Sep 23, 2025
478ef5a
Merge branch 'master' into add-projects
JoannaaKL Sep 23, 2025
c34802d
Merge branch 'master' into add-projects
JoannaaKL Sep 23, 2025
053a9e1
Update github/projects.go
JoannaaKL Sep 23, 2025
680a0d1
Rename url in test
JoannaaKL Sep 23, 2025
d8696b4
Generate again
JoannaaKL Sep 23, 2025
93dd34f
Merge branch 'master' into add-projects
JoannaaKL Sep 23, 2025
060aaae
Shorten functions for orgs
JoannaaKL Sep 24, 2025
98c28fa
Implemented all endpoints for project items
JoannaaKL Sep 24, 2025
a4b1014
Remove comments
JoannaaKL Sep 24, 2025
57766b6
Merge branch 'master' into add-project-items
JoannaaKL Sep 24, 2025
e59c224
Merge branch 'master' into add-project-items
JoannaaKL Sep 24, 2025
4e935dd
Add tests
JoannaaKL Sep 24, 2025
d18c303
Merge remote-tracking branch 'refs/remotes/origin/add-project-items' …
JoannaaKL Sep 24, 2025
0c5356d
More tests
JoannaaKL Sep 24, 2025
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
21 changes: 12 additions & 9 deletions github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,15 +1179,18 @@ type FieldValue struct {

// ProjectV2Item represents an item belonging to a project.
type ProjectV2Item struct {
ID *int64 `json:"id,omitempty"`
NodeID *string `json:"node_id,omitempty"`
ProjectNodeID *string `json:"project_node_id,omitempty"`
ContentNodeID *string `json:"content_node_id,omitempty"`
ContentType *string `json:"content_type,omitempty"`
Creator *User `json:"creator,omitempty"`
CreatedAt *Timestamp `json:"created_at,omitempty"`
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
ArchivedAt *Timestamp `json:"archived_at,omitempty"`
ID *int64 `json:"id,omitempty"`
NodeID *string `json:"node_id,omitempty"`
ProjectNodeID *string `json:"project_node_id,omitempty"`
ContentNodeID *string `json:"content_node_id,omitempty"`
ProjectURL *string `json:"project_url,omitempty"`
ContentType *string `json:"content_type,omitempty"`
Creator *User `json:"creator,omitempty"`
CreatedAt *Timestamp `json:"created_at,omitempty"`
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
ArchivedAt *Timestamp `json:"archived_at,omitempty"`
ItemURL *string `json:"item_url,omitempty"`
Fields []*ProjectV2Field `json:"fields,omitempty"`
}

// PublicEvent is triggered when a private repository is open sourced.
Expand Down
64 changes: 64 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions github/github-stringify_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ type Client struct {
Meta *MetaService
Migrations *MigrationService
Organizations *OrganizationsService
Projects *ProjectsService
PullRequests *PullRequestsService
RateLimit *RateLimitService
Reactions *ReactionsService
Expand Down Expand Up @@ -456,6 +457,7 @@ func (c *Client) initialize() {
c.Meta = (*MetaService)(&c.common)
c.Migrations = (*MigrationService)(&c.common)
c.Organizations = (*OrganizationsService)(&c.common)
c.Projects = (*ProjectsService)(&c.common)
c.PullRequests = (*PullRequestsService)(&c.common)
c.RateLimit = (*RateLimitService)(&c.common)
c.Reactions = (*ReactionsService)(&c.common)
Expand Down
2 changes: 1 addition & 1 deletion github/orgs_attestations.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// with a given subject digest that are associated with repositories
// owned by an organization.
//
// GitHub API docs: https://docs.github.com/rest/orgs/orgs#list-attestations
// GitHub API docs: https://docs.github.com/rest/orgs/attestations#list-attestations
//
//meta:operation GET /orgs/{org}/attestations/{subject_digest}
func (s *OrganizationsService) ListAttestations(ctx context.Context, org, subjectDigest string, opts *ListOptions) (*AttestationsResponse, *Response, error) {
Expand Down
Loading
Loading