Add interactive mode for tea milestone create (#310)

Implement interactive milestone creation

Return fmt.Errorf when title is empty

Incorporate deadline functionality

Use dateparse and cleanup CreateMilestone task

Signed-off-by: Martin Reboredo <yakoyoku@gmail.com>
Co-authored-by: Martin Reboredo <yakoyoku@gmail.com>
Reviewed-on: https://gitea.com/gitea/tea/pulls/310
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: Martin Reboredo <yakoyakoyokuyoku@noreply.gitea.io>
Co-Committed-By: Martin Reboredo <yakoyakoyokuyoku@noreply.gitea.io>
This commit is contained in:
Martin Reboredo
2020-12-18 02:50:07 +08:00
committed by 6543
parent 8b588f5313
commit 43e9943757
6 changed files with 146 additions and 18 deletions

View File

@ -12,7 +12,7 @@ import (
"code.gitea.io/tea/modules/print"
)
// CreateIssue creates a PR in the given repo and prints the result
// CreateIssue creates an issue in the given repo and prints the result
func CreateIssue(login *config.Login, repoOwner, repoName, title, description string) error {
// title is required