Implement more issue filters #400
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#400
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:more-issue-filters"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds new filters to
tea issues ls
andtea pr ls
, made available in SDK 0.15:Note: I felt free to change parameter names as exposed by SDK & API, as the names exposed by them are partially bollocks (eg
mentioned_by
) and or inconsistent with usage in other commands (egtea times --until
)These filters are made available to the PR listing too, though this has some caveats:For the PR listing we previously used the
/pulls
endpoint, but that didn't support many filters (see docs).Instead, we now do an issue listing, which also supports listing PRs.
The drawback here is that it only returns issue fields, but none of a PR's special fields like head repo, base branch, mergeable flag, ...
This is a limitation of the upstream API, and we should carefully decide which of the limitations to take (adding more filters, or exposing more attributes), because enhancements to the gitea API etc will take quite some time to propagate through the ecosystem..
This PR also adds the --fields flag to
tea pr ls
due to the merging of the listing functionsfixes #376, related #323
pr list
to use same filter flags as issuespr list
to use same filter flags as issues" 31ee79ae4c