swarm-ui, swarm-controller: the review try-out's repo and PR fields offer the repos and PRs to pick
Two read-only routes feed them: GET /api/pulls/repos lists the repos with an open pull request, and GET /api/pulls?repo=owner/name lists a repo's open pull requests, highest number first. The page offers the lists through the browser's own suggestion list and keeps both fields free text, since a run also works on a merged or closed PR.
This commit is contained in:
parent
60ea7fdc04
commit
9a4059e130
10 changed files with 399 additions and 7 deletions
|
|
@ -55,6 +55,12 @@ Give it a repo as `owner/name` and a PR number, then write a classification: a
|
|||
name, a description, a polarity (positive or negative) and a threshold from 0
|
||||
to 100. **add a classification** adds more, and **run** starts the run.
|
||||
|
||||
The repo field offers the repos that have an open PR, and once you've picked
|
||||
or typed a repo, the PR field offers its open PRs by number and title. Both
|
||||
fields stay free text: type a repo or a PR the lists lack, such as a merged
|
||||
one. If a list can't load, the page shows the reason and the field still takes
|
||||
what you type.
|
||||
|
||||
**load the repo's rules** fills the classifications from the rules file on the
|
||||
repo's default branch, so you can run the repo's own rules or start from them
|
||||
and edit. It reads the file each time, so a rule merged a minute ago shows up.
|
||||
|
|
|
|||
Loading…
Reference in a new issue