gitea/modules/structs
Bram Hagens 50f55f11c4
Show whether a PR is WIP inside popups ()
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)
..
activity.go Add activity feeds API ()
activitypub.go Implement FSFE REUSE for golang files ()
admin_user.go chore(api): support ignore password if login source type is LDAP for creating user API ()
attachment.go Implement FSFE REUSE for golang files ()
commit_status.go Restore warning commit status ()
commit_status_test.go refactor improve NoBetterThan ()
cron.go Implement FSFE REUSE for golang files ()
doc.go Implement FSFE REUSE for golang files ()
fork.go Implement FSFE REUSE for golang files ()
git_blob.go Implement FSFE REUSE for golang files ()
git_hook.go Implement FSFE REUSE for golang files ()
hook.go Add `branch_filter` to hooks API endpoints ()
issue.go Show whether a PR is WIP inside popups ()
issue_comment.go Add API management for issue/pull and comment attachments ()
issue_label.go Allow to archive labels ()
issue_milestone.go Implement FSFE REUSE for golang files ()
issue_reaction.go Implement FSFE REUSE for golang files ()
issue_stopwatch.go Implement FSFE REUSE for golang files ()
issue_test.go Implement FSFE REUSE for golang files ()
issue_tracked_time.go Implement FSFE REUSE for golang files ()
lfs_lock.go Implement FSFE REUSE for golang files ()
mirror.go Fix push mirror, wrong timestamp format ()
miscellaneous.go Add API for gitignore templates ()
nodeinfo.go Implement FSFE REUSE for golang files ()
notifications.go Implement FSFE REUSE for golang files ()
org.go Allow Organisations to have a E-Mail ()
org_member.go Implement FSFE REUSE for golang files ()
org_team.go Doc update swagger doc for POST /orgs/{org}/teams ()
package.go Fix package webhook ()
pull.go Add the ability to pin Issues ()
pull_review.go Implement FSFE REUSE for golang files ()
release.go add Upload URL to release API ()
repo.go Add support for sha256 repositories ()
repo_branch.go Add branch protection setting for ignoring stale approvals ()
repo_collaborator.go Implement FSFE REUSE for golang files ()
repo_commit.go Add file status for API "Get a single commit from a repository" () ()
repo_file.go Refactor "Content" for file uploading ()
repo_key.go Implement FSFE REUSE for golang files ()
repo_note.go Implement FSFE REUSE for golang files ()
repo_refs.go Implement FSFE REUSE for golang files ()
repo_tag.go Implement FSFE REUSE for golang files ()
repo_topic.go Implement FSFE REUSE for golang files ()
repo_tree.go Implement FSFE REUSE for golang files ()
repo_watch.go Replace `interface{}` with `any` ()
repo_wiki.go Implement FSFE REUSE for golang files ()
secret.go refactor(API): refactor secret creation and update functionality ()
settings.go Implement FSFE REUSE for golang files ()
status.go Implement FSFE REUSE for golang files ()
task.go Make repo migration cancelable and fix various bugs ()
user.go Add API for changing Avatars ()
user_app.go Add scopes to API to create token and display them ()
user_email.go add admin API email endpoints ()
user_gpgkey.go Implement FSFE REUSE for golang files ()
user_key.go Implement FSFE REUSE for golang files ()
visible_type.go change org_type.go to visible_type.go and fix the notes ()