Show PR CI status #306
No reviewers
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#306
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:issue-117-pr-status"
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?
fixes #117
@ -14,2 +23,3 @@
// PullDetails print an pull rendered to stdout
func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview) {
func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus *gitea.CombinedStatus) {
// func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus []*gitea.Status) {
Pull wip?
@ -43,4 +60,3 @@
case gitea.ReviewStateApproved,
gitea.ReviewStateRequestChanges,
gitea.ReviewStateRequestReview:
revMap[review.Reviewer.UserName] = review.State
this remove dedublicate review states!!
before:
now:
I like the new look, but you still have to only get latest state for each user
example was:
tea pr 309
Oh right. And I thought I was fixing a bug: Thought you were aiming to deduplicate Approved/Rejected states. IMO we should deduplicate both.
I just tried to filter by
review.Stale
, but that's never true. wtf is this for?Stale is a idication if the review took place on a different state as the pull is now (pull diff has changed since reviewed)
fixed, output is now
as per comment
nice ♥
Just for reference, I think I didn't mention it here:
tea pr <idx>
soft-fails on fetching CI results for PRs that have no CI, see gitea/go-sdk#468