You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/convert
Bram Hagens 50f55f11c4
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:

![image](https://github.com/go-gitea/gitea/assets/5541521/72cbd30e-1175-4338-aa97-ac99c46c5118)

After:

![image](https://github.com/go-gitea/gitea/assets/5541521/111c9eba-460e-4d57-bcca-23a151c3a4f1)
1 year ago
..
activity.go For API attachments, use API URL (#25639) 2 years ago
attachment.go Fix attachment download bug (#27486) 1 year ago
convert.go Add branch protection setting for ignoring stale approvals (#28498) 1 year ago
git_commit.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
git_commit_test.go Adjust object format interface (#28469) 1 year ago
issue.go Show whether a PR is WIP inside popups (#28975) 1 year ago
issue_comment.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
issue_test.go Move `convert` package to services (#22264) 2 years ago
main_test.go make writing main test easier (#27270) 1 year ago
mirror.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
notification.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
package.go Fix package webhook (#27839) 1 year ago
pull.go Simplify how git repositories are opened (#28937) 1 year ago
pull_review.go Fix `convert.ToTeams` on empty input (#28426) 1 year ago
pull_test.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
release.go add Upload URL to release API (#26663) 1 year ago
release_test.go add Upload URL to release API (#26663) 1 year ago
repository.go Move more functions to db.Find (#28419) 1 year ago
secret.go feat: implement organization secret creation API (#26566) 1 year ago
status.go refactor improve NoBetterThan (#26126) 2 years ago
user.go Fix API leaking Usermail if not logged in (#25097) 2 years ago
user_test.go Add context cache as a request level cache (#22294) 2 years ago
utils.go Move `convert` package to services (#22264) 2 years ago
utils_test.go Rewrite queue (#24505) 2 years ago
wiki.go Fix an actions schedule bug (#28942) 1 year ago