From 02ab0e6e178d34056598f6fc85eea31dff30380d Mon Sep 17 00:00:00 2001 From: rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:39:58 +0800 Subject: [PATCH] feat: support to set the comment identity --- Makefile | 4 ++- README.md | 37 +++++++++++++++++++-- cmd/argoworkflow/go.mod | 15 ++++++++- cmd/argoworkflow/go.sum | 71 ++++++++++++++++++++++++++++++++++++++++ cmd/argoworkflow/main.go | 4 ++- cmd/comment.go | 6 ++-- pkg/git.go | 11 ++++--- 7 files changed, 136 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 6e29900..288ae20 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ build: CGO_ENABLE=0 go build -ldflags "-w -s" -o bin/gogit +plugin-build: + CGO_ENABLE=0 go build -ldflags "-w -s" -o bin/gogit-executor-plugin cmd/argoworkflow/main.go copy: build cp bin/gogit /usr/local/bin test: go test ./... -coverprofile coverage.out -pre-commit: test +pre-commit: test build plugin-build goreleaser: goreleaser build --snapshot --rm-dist image: diff --git a/README.md b/README.md index ea099cb..dd749a8 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,8 @@ Or in the following use cases: Install as an Argo workflow executor plugin: -```yaml +```shell +cat <