tangled
alpha
login
or
join now
rockorager.dev
/
knit
16
fork
atom
A CLI for tangled.sh
16
fork
atom
overview
issues
2
pulls
pipelines
pr(create): add confirmation
rockorager.dev
10 months ago
ea4e2a53
dea05b77
verified
This commit was signed with the committer's
known signature
.
rockorager.dev
SSH Key Fingerprint:
SHA256:qn/Fjy7CpbcogGEPB14Y53hLnQleZNFY9lkQnuudFLs=
+12
1 changed file
expand all
collapse all
unified
split
pr
create.go
+12
pr/create.go
···
102
102
return err
103
103
}
104
104
105
105
+
var submit bool
106
106
+
if err := huh.NewConfirm().
107
107
+
Title(fmt.Sprintf("Submit PR to %s/%s?", remote.Host, remote.Path)).
108
108
+
Value(&submit).
109
109
+
Run(); err != nil {
110
110
+
return err
111
111
+
}
112
112
+
113
113
+
if !submit {
114
114
+
return fmt.Errorf("PR submission canceled")
115
115
+
}
116
116
+
105
117
form := url.Values{}
106
118
form.Add("title", title)
107
119
form.Add("body", description)