tea pr create: make local repo optional #393
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#393
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:fix-378"
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 is a partial fix to #378, making the command available outside of a local repo.
new behaviour:
--head
is specified@ -41,2 +38,3 @@
promptOpts := survey.WithValidator(survey.Required)
headOwner, headBranch, err := task.GetDefaultPRHead(localRepo)
// TODO: can't we use TeaContext.LocalRepo for this?
I think passing
context.TeaContext
instead ofconfig.Login
in this method would be convenient, as TeaContext already contains the local repo when available.@6543 In the past you opposed importing
modules/context
inmodules/interact
, wdytn?see no obstacles to use
context.TeaContext
, but will wait @6543added refactor
@noerw can you test - this should now close #378
your changes lgtm. wrt to the refactor, lets do the rest later → #402