Update notes
This commit is contained in:
parent
08a78d0bf2
commit
32583205b6
1 changed files with 1 additions and 2 deletions
|
@ -94,12 +94,11 @@ def move_issue(source_owner, source_repo, issue_number, destination_owner, desti
|
|||
# If we are confident the API is remaining stabel we can just use the same path
|
||||
# with patch, post, and get when the path is the same which is the case here.
|
||||
# Note though we often change the owner and repo and index when making the URL!
|
||||
# This runs and the state string is correct and it *should* work but it does not.
|
||||
# See https://codeberg.org/forgejo/forgejo/issues/1280#issuecomment-1262414
|
||||
body = {
|
||||
"state": "closed"
|
||||
}
|
||||
patch_issue_url = API_PATCH_ISSUE.format(instance=FORGEJO_INSTANCE, owner=source_owner, repo=source_repo, index=issue_number)
|
||||
# Note that sending body as JSON here is needed for 'state' to be changed.
|
||||
closed_response = requests.patch(patch_issue_url, headers=headers, json=body, params={"access_token": FORGEJO_API_TOKEN})
|
||||
# print(closed_response.json())
|
||||
|
||||
|
|
Loading…
Reference in a new issue