AddOrganizationProjectItem adds an issue or pull request item to an organization owned project. GitHub API docs: https://docs.github.com/rest/projects/items?apiVersion=2022-11-28#add-item-to-organization-owned-project meta:operation POST /orgs/{org}/projectsV2/{project_number}/items
(ctx context.Context, org string, projectNumber int, opts *AddProjectItemOptions)
| 543 | // |
| 544 | //meta:operation POST /orgs/{org}/projectsV2/{project_number}/items |
| 545 | func (s *ProjectsService) AddOrganizationProjectItem(ctx context.Context, org string, projectNumber int, opts *AddProjectItemOptions) (*ProjectV2Item, *Response, error) { |
| 546 | u := fmt.Sprintf("orgs/%v/projectsV2/%v/items", org, projectNumber) |
| 547 | req, err := s.client.NewRequest(ctx, "POST", u, opts) |
| 548 | if err != nil { |
| 549 | return nil, nil, err |
| 550 | } |
| 551 | |
| 552 | var item *ProjectV2Item |
| 553 | resp, err := s.client.Do(req, &item) |
| 554 | if err != nil { |
| 555 | return nil, resp, err |
| 556 | } |
| 557 | |
| 558 | return item, resp, nil |
| 559 | } |
| 560 | |
| 561 | // GetOrganizationProjectItem gets a single item from an organization owned project. |
| 562 | // |