Closed
Description
- Gitea version (or commit ref): 1.12.3
- Git version: 2.28.0 (on my computer)
- Operating system: MacOS / Linux
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No (It works with try.gitea.io
- Not relevant
- Log gist:
Description
I'm not able to merge a PR via the API
あ→ curl -X POST "https://my.server.com/api/v1/repos/organization/myrepo/pulls/80/merge?access_token=mytoken" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"Do\": \"merge\", \"MergeMessageField\": \"string\", \"MergeTitleField\": \"string\", \"force_merge\": true}"
# On my server
[Macaron] 2020-08-16 08:35:22: Completed POST /api/v1/repos/organization/myrepo/pulls/80/merge?access_token=40571200ebb3e7a1144ae50898d5790b8bdd1b3a 405 Method Not Allowed in 118.893987ms
However, i made the test on try.gitea.io and it works perfectly..
curl -X POST "https://try.gitea.io/api/v1/repos/toto/test/pulls/1/merge?access_token=myToken" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"Do\": \"merge\", \"MergeMessageField\": \"string\", \"MergeTitleField\": \"string\", \"force_merge\": true}"
Is the version 1.13 fixing the issue ?
Metadata
Metadata
Assignees
Labels
No labels