Implement more issue filters #400

Merged
6543 merged 15 commits from noerw/tea:more-issue-filters into master 2021-12-02 19:26:48 +00:00

15 Commits

Author SHA1 Message Date
Norwin
b0e12fc28b Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-10-19 00:02:29 +08:00
Norwin
5f95747fd0 Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-10-14 22:40:36 +08:00
Norwin
549e60b7e3 Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-10-11 20:03:40 +08:00
5cda3d734f Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-10-09 19:05:52 +02:00
6d95dc111e Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-09-29 12:54:33 +02:00
bdbf678dab add --kind, to make keyword search on PRs available for PRs too
All checks were successful
continuous-integration/drone/pr Build is passing
as a workaround for the missing filters on the PR listing API, tea issues can also show PRs now
2021-09-28 11:46:20 +02:00
635de20ce2 separate IssuePRListing flags again
as the APIs are incompatible
2021-09-28 11:37:02 +02:00
31ee79ae4c Revert "refactor pr list to use same filter flags as issues"
This reverts commit e1094c47a0.
2021-09-28 10:31:32 +02:00
Norwin
b4dd97bc58 Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-09-23 19:26:01 +08:00
Norwin
e3a6d958f8 Merge branch 'master' into more-issue-filters
All checks were successful
continuous-integration/drone/pr Build is passing
2021-09-22 17:15:41 +08:00
9baad74766 lint
All checks were successful
continuous-integration/drone/pr Build is passing
2021-09-14 12:06:25 +02:00
e1094c47a0 refactor pr list to use same filter flags as issues
Some checks failed
continuous-integration/drone/pr Build is failing
previously we used the /pulls endpoint, but that didn't support many
filters (https://gitea.com/api/swagger#/repository/repoListPullRequests).
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
limitation to take, as changes to the API etc will take quite some time to propagate
through the ecosystem

This commit also adds the --fields flag to `tea pulls list`, with the
same fields available as issues (see above)
2021-09-14 11:52:07 +02:00
bbcb4f63d7 make NewCsvFlag() smarter 2021-09-14 11:41:03 +02:00
2cd2363000 add new issue filter flags
they are now exposed on `tea pr ls` too, but have no effect yet
2021-09-14 11:12:08 +02:00
77fe634c8a split up cmd/flags/flags.go 2021-09-14 11:07:31 +02:00