|
34739 | 34739 | } |
34740 | 34740 | } |
34741 | 34741 | }, |
| 34742 | + "/repos/{owner}/{repo}/merge-upstream": { |
| 34743 | + "post": { |
| 34744 | + "summary": "Sync a fork branch with the upstream repository", |
| 34745 | + "description": "Sync a branch of a forked repository to keep it up-to-date with the upstream repository.", |
| 34746 | + "tags": [ |
| 34747 | + "repos" |
| 34748 | + ], |
| 34749 | + "operationId": "repos/merge-upstream", |
| 34750 | + "externalDocs": { |
| 34751 | + "description": "API method documentation", |
| 34752 | + "url": "https://docs.github.com/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" |
| 34753 | + }, |
| 34754 | + "parameters": [ |
| 34755 | + { |
| 34756 | + "$ref": "#/components/parameters/owner" |
| 34757 | + }, |
| 34758 | + { |
| 34759 | + "$ref": "#/components/parameters/repo" |
| 34760 | + } |
| 34761 | + ], |
| 34762 | + "requestBody": { |
| 34763 | + "content": { |
| 34764 | + "application/json": { |
| 34765 | + "schema": { |
| 34766 | + "type": "object", |
| 34767 | + "properties": { |
| 34768 | + "branch": { |
| 34769 | + "type": "string", |
| 34770 | + "description": "The name of the branch which should be updated to match upstream." |
| 34771 | + } |
| 34772 | + }, |
| 34773 | + "required": [ |
| 34774 | + "branch" |
| 34775 | + ] |
| 34776 | + }, |
| 34777 | + "example": { |
| 34778 | + "branch": "main" |
| 34779 | + } |
| 34780 | + } |
| 34781 | + } |
| 34782 | + }, |
| 34783 | + "responses": { |
| 34784 | + "200": { |
| 34785 | + "description": "The branch has been successfully synced with the upstream repository", |
| 34786 | + "content": { |
| 34787 | + "application/json": { |
| 34788 | + "schema": { |
| 34789 | + "$ref": "#/components/schemas/merged-upstream" |
| 34790 | + }, |
| 34791 | + "examples": { |
| 34792 | + "default": { |
| 34793 | + "$ref": "#/components/examples/merged-upstream" |
| 34794 | + } |
| 34795 | + } |
| 34796 | + } |
| 34797 | + } |
| 34798 | + }, |
| 34799 | + "409": { |
| 34800 | + "description": "The branch could not be synced because of a merge conflict" |
| 34801 | + }, |
| 34802 | + "422": { |
| 34803 | + "description": "The branch could not be synced for some other reason" |
| 34804 | + } |
| 34805 | + }, |
| 34806 | + "x-github": { |
| 34807 | + "githubCloudOnly": false, |
| 34808 | + "enabledForGitHubApps": true, |
| 34809 | + "previews": [ |
| 34810 | + |
| 34811 | + ], |
| 34812 | + "category": "repos", |
| 34813 | + "subcategory": "merging-upstream" |
| 34814 | + } |
| 34815 | + } |
| 34816 | + }, |
34742 | 34817 | "/repos/{owner}/{repo}/merges": { |
34743 | 34818 | "post": { |
34744 | 34819 | "summary": "Merge a branch", |
|
69903 | 69978 | "license" |
69904 | 69979 | ] |
69905 | 69980 | }, |
| 69981 | + "merged-upstream": { |
| 69982 | + "title": "Merged upstream", |
| 69983 | + "description": "Results of a successful merge upstream request", |
| 69984 | + "type": "object", |
| 69985 | + "properties": { |
| 69986 | + "message": { |
| 69987 | + "type": "string" |
| 69988 | + }, |
| 69989 | + "merge_type": { |
| 69990 | + "type": "string", |
| 69991 | + "enum": [ |
| 69992 | + "merge", |
| 69993 | + "fast-forward", |
| 69994 | + "none" |
| 69995 | + ] |
| 69996 | + }, |
| 69997 | + "base_branch": { |
| 69998 | + "type": "string" |
| 69999 | + } |
| 70000 | + } |
| 70001 | + }, |
69906 | 70002 | "pages-source-hash": { |
69907 | 70003 | "title": "Pages Source Hash", |
69908 | 70004 | "type": "object", |
|
89199 | 89295 | } |
89200 | 89296 | } |
89201 | 89297 | }, |
| 89298 | + "merged-upstream": { |
| 89299 | + "value": { |
| 89300 | + "message": "Successfully fetched and fast-forwarded from upstream defunkt:main", |
| 89301 | + "merge_type": "fast-forward", |
| 89302 | + "base_branch": "defunkt:main" |
| 89303 | + } |
| 89304 | + }, |
89202 | 89305 | "milestone-items": { |
89203 | 89306 | "value": [ |
89204 | 89307 | { |
|
0 commit comments