Add Allow Maintainer Edits #509

Merged
6543 merged 12 commits from 6543/tea:add_allow-maintainer-edits into main 2022-09-27 15:36:36 +00:00
Owner

close #508

![](https://gitea.com/attachments/4b557a92-365b-48a2-b264-0ffdec592033) close #508
6543 added this to the v0.10.0 milestone 2022-09-15 02:08:07 +00:00
6543 added the
kind
enhancement
label 2022-09-15 02:08:07 +00:00
6543 added 4 commits 2022-09-15 02:08:08 +00:00
Add TODOs
All checks were successful
continuous-integration/drone/pr Build is passing
d84d5fcbbc
6543 changed title from Add Allow Maintainer Edits to WIP: Add Allow Maintainer Edits 2022-09-15 02:13:05 +00:00
6543 reviewed 2022-09-15 02:13:29 +00:00
@ -34,6 +35,7 @@ func PullDetails(pr *gitea.PullRequest, reviews []*gitea.PullReview, ciStatus *g
FormatTime(*pr.Created, false),
base,
head,
// TODO: pr.AllowMaintainerEdit,
Author
Owner

just another sdk update ...

just another sdk update ...
6543 marked this conversation as resolved
noerw reviewed 2022-09-15 14:23:07 +00:00
@ -49,6 +52,11 @@ func CreatePull(ctx *context.TeaContext) (err error) {
return err
}
promptC := &survey.Confirm{Message: "Allow Maintainers to push to pull base-branch", Default: false}
Member
-	promptC := &survey.Confirm{Message: "Allow Maintainers to push to pull base-branch", Default: false} 
+	promptC := &survey.Confirm{Message: "Allow Maintainers to push to the base branch", Default: false} 

Also maybe default to true?

```diff - promptC := &survey.Confirm{Message: "Allow Maintainers to push to pull base-branch", Default: false} + promptC := &survey.Confirm{Message: "Allow Maintainers to push to the base branch", Default: false} ``` Also maybe default to true?
6543 marked this conversation as resolved
6543 reviewed 2022-09-19 13:42:06 +00:00
@ -69,2 +71,4 @@
}
if allowMaintainerEdits {
pr, _, err = client.EditPullRequest(ctx.Owner, ctx.Repo, pr.ID, gitea.EditPullRequestOption{
Author
Owner

pr.Index

pr.Index
6543 marked this conversation as resolved
6543 added 2 commits 2022-09-26 22:10:10 +00:00
fix and more TODO
Some checks failed
continuous-integration/drone/pr Build is failing
f64cdbef60
6543 added 1 commit 2022-09-26 22:12:14 +00:00
fix
All checks were successful
continuous-integration/drone/pr Build is passing
f2d3d5649f
6543 added a new dependency 2022-09-26 23:46:36 +00:00
6543 changed title from WIP: Add Allow Maintainer Edits to Add Allow Maintainer Edits 2022-09-27 10:53:27 +00:00
6543 added 3 commits 2022-09-27 10:55:30 +00:00
6543 added 1 commit 2022-09-27 11:02:15 +00:00
fancy print
All checks were successful
continuous-integration/drone/pr Build is passing
7a339d227f
6543 requested review from Maintainers 2022-09-27 11:03:45 +00:00
noerw reviewed 2022-09-27 11:19:33 +00:00
@ -65,2 +65,4 @@
}
if pr.AllowMaintainerEdit {
out += "- Maintainers are allowed to edit"
Member

isn't this missing a newline?

isn't this missing a newline?
6543 marked this conversation as resolved
noerw approved these changes 2022-09-27 11:20:28 +00:00
noerw left a comment
Member

One nit, otherwise LGTM

One nit, otherwise LGTM
6543 added 1 commit 2022-09-27 11:49:13 +00:00
newline
All checks were successful
continuous-integration/drone/pr Build is passing
de56e7dd05
strk approved these changes 2022-09-27 15:26:32 +00:00
strk left a comment
Member

I'm approving, but is there no idea about automated testcases for the tea command ?

I'm approving, but is there no idea about automated testcases for the tea command ?
Author
Owner

@strk sadly no :/

-> #504

@strk sadly no :/ -> #504
6543 merged commit 15457f1770 into main 2022-09-27 15:36:36 +00:00
6543 deleted branch add_allow-maintainer-edits 2022-09-27 15:36:37 +00:00
Sign in to join this conversation.
No description provided.