mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-22 14:38:30 -04:00
Show whether a PR is WIP inside popups (#28975)
Fixes https://codeberg.org/forgejo/forgejo/issues/2257 Draft status of a PR is currently not exposed by the API. This PR adds a 'draft' field to pull requests in the API, which is used to correctly set the PR color/icon in a ContextPopup. --- Before:  After: 
This commit is contained in:
parent
688d4a1f71
commit
50f55f11c4
5 changed files with 24 additions and 8 deletions
4
templates/swagger/v1_json.tmpl
generated
4
templates/swagger/v1_json.tmpl
generated
|
@ -21610,6 +21610,10 @@
|
|||
"description": "PullRequestMeta PR info if an issue is a PR",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"draft": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "IsWorkInProgress"
|
||||
},
|
||||
"merged": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasMerged"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue