pulls panic if there is no open pull requests #17
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Author: @quantonganh
The reason is: https://github.com/go-gitea/go-sdk/issues/161
Author: @lunny
Cannot reproduce here.
Author: @quantonganh
Look at the error, it happened at this line:
fb52920af9/cmd/pulls.go (L52)
The main problem is
ListPullRequestsOptions
does not work. Instead of just list open pull requests, it list all.In your repo, just
tea pulls
to see it show all closed/merged PRs.
Author: @root360-AndreasUlm
I can reproduce this behaviour.
Printing the resulting addresses of ListRepoPullRequests when the error happens you get:
The access to the 3rd element then raises the panic.
After adding a 'nil'-check the panic is not raised:
Author: @lunny
@root360-AndreasUlm could you send a PR to fix that?
Author: @root360-AndreasUlm
@lunny I'll send a PR today
Author: @root360-AndreasUlm
@lunny created PR https://github.com/go-gitea/tea/pull/18