From 5ecbcde5180e4a3b12bdc35416c2f050cd0808f1 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Mon, 21 Sep 2020 19:21:07 +0000 Subject: [PATCH] Change to vanity URL (#37) Fix YAML New changes, generate docs, and add Drone for main Signed-off-by: jolheiser Merge branch 'master' of gitea.com:jolheiser/sip into vanity Change to vanity URL Signed-off-by: jolheiser Co-authored-by: jolheiser Reviewed-on: https://gitea.com/jolheiser/sip/pulls/37 --- .drone.yml | 10 ++++++++++ cmd/cmd.go | 4 ++-- cmd/config.go | 2 +- cmd/issues.go | 8 ++++---- cmd/issues_create.go | 4 ++-- cmd/open.go | 2 +- cmd/pulls_checkout.go | 4 ++-- cmd/pulls_create.go | 6 +++--- cmd/pulls_status.go | 6 +++--- cmd/release.go | 6 +++--- cmd/release_attach.go | 4 ++-- cmd/release_attach_remove.go | 4 ++-- cmd/release_create.go | 4 ++-- cmd/repo.go | 4 ++-- cmd/token.go | 2 +- cmd/token_add.go | 4 ++-- cmd/token_remove.go | 2 +- docs.go | 2 +- docs.md | 4 ++++ flag/flag.go | 4 ++-- go.mod | 2 +- main.go | 4 ++-- sdk/issues.go | 2 +- 23 files changed, 54 insertions(+), 40 deletions(-) diff --git a/.drone.yml b/.drone.yml index fe8929f..1d1a24c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -58,6 +58,16 @@ steps: - export PATH=$PATH:$GOPATH/bin - make release + - name: gitea + pull: always + image: jolheiser/drone-gitea-main:1 + settings: + token: + from_secret: gitea_token + base: https://gitea.com + files: + - "dist/release/*" + --- kind: pipeline name: release diff --git a/cmd/cmd.go b/cmd/cmd.go index 536df1c..5613d0f 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "gitea.com/jolheiser/sip/config" - "gitea.com/jolheiser/sip/flag" + "go.jolheiser.com/sip/config" + "go.jolheiser.com/sip/flag" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/config.go b/cmd/config.go index e019e0f..3e579b3 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -1,7 +1,7 @@ package cmd import ( - "gitea.com/jolheiser/sip/config" + "go.jolheiser.com/sip/config" "github.com/AlecAivazis/survey/v2" "github.com/urfave/cli/v2" diff --git a/cmd/issues.go b/cmd/issues.go index cbcafd0..b74307c 100644 --- a/cmd/issues.go +++ b/cmd/issues.go @@ -7,10 +7,10 @@ import ( "strconv" "strings" - "gitea.com/jolheiser/sip/csv" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/markdown" - "gitea.com/jolheiser/sip/sdk" + "go.jolheiser.com/sip/csv" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/markdown" + "go.jolheiser.com/sip/sdk" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/issues_create.go b/cmd/issues_create.go index 194599d..0da95a5 100644 --- a/cmd/issues_create.go +++ b/cmd/issues_create.go @@ -3,8 +3,8 @@ package cmd import ( "fmt" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/markdown" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/markdown" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/open.go b/cmd/open.go index 94cc7a6..d57bf05 100644 --- a/cmd/open.go +++ b/cmd/open.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "gitea.com/jolheiser/sip/flag" + "go.jolheiser.com/sip/flag" "github.com/skratchdot/open-golang/open" "github.com/urfave/cli/v2" diff --git a/cmd/pulls_checkout.go b/cmd/pulls_checkout.go index e6a5e92..4c07697 100644 --- a/cmd/pulls_checkout.go +++ b/cmd/pulls_checkout.go @@ -7,8 +7,8 @@ import ( "os/exec" "strconv" - "gitea.com/jolheiser/sip/config" - "gitea.com/jolheiser/sip/flag" + "go.jolheiser.com/sip/config" + "go.jolheiser.com/sip/flag" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/pulls_create.go b/cmd/pulls_create.go index cda9f9c..23137cf 100644 --- a/cmd/pulls_create.go +++ b/cmd/pulls_create.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/git" - "gitea.com/jolheiser/sip/markdown" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/git" + "go.jolheiser.com/sip/markdown" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/pulls_status.go b/cmd/pulls_status.go index d83156e..876a04e 100644 --- a/cmd/pulls_status.go +++ b/cmd/pulls_status.go @@ -4,9 +4,9 @@ import ( "fmt" "strconv" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/git" - "gitea.com/jolheiser/sip/sdk" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/git" + "go.jolheiser.com/sip/sdk" "code.gitea.io/sdk/gitea" "github.com/urfave/cli/v2" diff --git a/cmd/release.go b/cmd/release.go index 0464812..91b1c76 100644 --- a/cmd/release.go +++ b/cmd/release.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "gitea.com/jolheiser/sip/csv" - "gitea.com/jolheiser/sip/markdown" - "gitea.com/jolheiser/sip/sdk" + "go.jolheiser.com/sip/csv" + "go.jolheiser.com/sip/markdown" + "go.jolheiser.com/sip/sdk" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/release_attach.go b/cmd/release_attach.go index 427efc0..80fe2f9 100644 --- a/cmd/release_attach.go +++ b/cmd/release_attach.go @@ -7,8 +7,8 @@ import ( "strconv" "strings" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/sdk" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/sdk" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/release_attach_remove.go b/cmd/release_attach_remove.go index 52645b6..1ad15da 100644 --- a/cmd/release_attach_remove.go +++ b/cmd/release_attach_remove.go @@ -4,8 +4,8 @@ import ( "fmt" "strconv" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/sdk" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/sdk" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/release_create.go b/cmd/release_create.go index 94d4907..41dcec7 100644 --- a/cmd/release_create.go +++ b/cmd/release_create.go @@ -3,8 +3,8 @@ package cmd import ( "fmt" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/git" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/git" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/repo.go b/cmd/repo.go index 63ed80b..dfe5773 100644 --- a/cmd/repo.go +++ b/cmd/repo.go @@ -3,8 +3,8 @@ package cmd import ( "strconv" - "gitea.com/jolheiser/sip/flag" - "gitea.com/jolheiser/sip/sdk" + "go.jolheiser.com/sip/flag" + "go.jolheiser.com/sip/sdk" "code.gitea.io/sdk/gitea" "github.com/urfave/cli/v2" diff --git a/cmd/token.go b/cmd/token.go index 4cfdcb5..2d4f43c 100644 --- a/cmd/token.go +++ b/cmd/token.go @@ -1,7 +1,7 @@ package cmd import ( - "gitea.com/jolheiser/sip/config" + "go.jolheiser.com/sip/config" "github.com/urfave/cli/v2" "go.jolheiser.com/beaver" diff --git a/cmd/token_add.go b/cmd/token_add.go index 587e608..24f8420 100644 --- a/cmd/token_add.go +++ b/cmd/token_add.go @@ -3,8 +3,8 @@ package cmd import ( "errors" - "gitea.com/jolheiser/sip/config" - "gitea.com/jolheiser/sip/flag" + "go.jolheiser.com/sip/config" + "go.jolheiser.com/sip/flag" "code.gitea.io/sdk/gitea" "github.com/AlecAivazis/survey/v2" diff --git a/cmd/token_remove.go b/cmd/token_remove.go index b425e5a..8edf6c0 100644 --- a/cmd/token_remove.go +++ b/cmd/token_remove.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "gitea.com/jolheiser/sip/config" + "go.jolheiser.com/sip/config" "github.com/AlecAivazis/survey/v2" "github.com/urfave/cli/v2" diff --git a/docs.go b/docs.go index 06b6f46..aac6fd4 100644 --- a/docs.go +++ b/docs.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "gitea.com/jolheiser/sip/cmd" + "go.jolheiser.com/sip/cmd" ) func main() { diff --git a/docs.md b/docs.md index 77b4735..993fbad 100644 --- a/docs.md +++ b/docs.md @@ -112,6 +112,10 @@ Create a new release Attach files to a release +#### remove, delete, rm + +Remove attachments from a release + ## open, o Open a repository or issue/pull request diff --git a/flag/flag.go b/flag/flag.go index 5ca9a93..4890efe 100644 --- a/flag/flag.go +++ b/flag/flag.go @@ -4,8 +4,8 @@ import ( "fmt" "sync" - "gitea.com/jolheiser/sip/config" - "gitea.com/jolheiser/sip/git" + "go.jolheiser.com/sip/config" + "go.jolheiser.com/sip/git" "github.com/urfave/cli/v2" ) diff --git a/go.mod b/go.mod index a9b6ca9..dd3228f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.com/jolheiser/sip +module go.jolheiser.com/sip go 1.13 diff --git a/main.go b/main.go index 05fde3c..1d82df8 100644 --- a/main.go +++ b/main.go @@ -3,8 +3,8 @@ package main import ( "os" - "gitea.com/jolheiser/sip/cmd" - "gitea.com/jolheiser/sip/config" + "go.jolheiser.com/sip/cmd" + "go.jolheiser.com/sip/config" "go.jolheiser.com/beaver" ) diff --git a/sdk/issues.go b/sdk/issues.go index 6c90edc..90b8318 100644 --- a/sdk/issues.go +++ b/sdk/issues.go @@ -3,7 +3,7 @@ package sdk import ( "strings" - "gitea.com/jolheiser/sip/qualify" + "go.jolheiser.com/sip/qualify" "code.gitea.io/sdk/gitea" )