Link a GitHub project to a repository
github_project_linkLinks a GitHub project board to a repository so board lookups find it among that repository's boards. Requires board update and repository write access.
Instructions
Link a project board to a repository, so the board lookup finds it among that repository's boards. The viewer must be able to update the board and write to the repository; a board that is already linked is left as it is (changed: false). GitHub links only boards of the repository's own owner, so a board of another user or organization is invalid_argument, before anything is written. A board is named by project: its number, owner/number or its URL, used as it is; any other project is a title, and no project is Roadmap: the open board of that whole title is looked up, never guessed, in owner's boards if owner is given, else in the boards linked to repo, then its organization's, then the viewer's. Needs a token with the project scope; if GitHub reports missing scopes, run gh auth refresh -s project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | owner/name of the repository to link or unlink; defaults to the working tree's repository (its origin). Also where the board lookup starts. | |
| owner | No | A user or organization login, or "@me": the owner of a numbered board, else the only owner searched for a title. | |
| project | No | The board, as its number, owner/number or its URL (used as it is; a bare number takes owner, else the owner of repo or of the working tree's repository), or as its title, looked up among open boards (whole title, case-insensitive). Default: the title Roadmap. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | owner/name of the repository. | |
| changed | Yes | false when the board was already in the wanted state. | |
| project | Yes |