GetOrganizationProjectItem gets a single item from an organization owned project. GitHub API docs: https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#get-an-item-for-an-organization-owned-project meta:operation GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}
(ctx context.Context, org string, projectNumber int, itemID int64, opts *GetProjectItemOptions)
| 564 | // |
| 565 | //meta:operation GET /orgs/{org}/projectsV2/{project_number}/items/{item_id} |
| 566 | func (s *ProjectsService) GetOrganizationProjectItem(ctx context.Context, org string, projectNumber int, itemID int64, opts *GetProjectItemOptions) (*ProjectV2Item, *Response, error) { |
| 567 | u := fmt.Sprintf("orgs/%v/projectsV2/%v/items/%v", org, projectNumber, itemID) |
| 568 | u, err := addOptions(u, opts) |
| 569 | if err != nil { |
| 570 | return nil, nil, err |
| 571 | } |
| 572 | |
| 573 | req, err := s.client.NewRequest(ctx, "GET", u, nil) |
| 574 | if err != nil { |
| 575 | return nil, nil, err |
| 576 | } |
| 577 | |
| 578 | var item *ProjectV2Item |
| 579 | resp, err := s.client.Do(req, &item) |
| 580 | if err != nil { |
| 581 | return nil, resp, err |
| 582 | } |
| 583 | |
| 584 | return item, resp, nil |
| 585 | } |
| 586 | |
| 587 | // UpdateOrganizationProjectItem updates an item in an organization owned project. |
| 588 | // |