From bbe551d4a775b02a90ec77499261c0cd55b13f7c Mon Sep 17 00:00:00 2001
From: Kayla McKay <39921134+kaymckay@users.noreply.github.com>
Date: Thu, 10 Mar 2022 10:21:49 -0600
Subject: [PATCH 1/3] fix: remove old changelog (#7)
* fix: remove old changelog
* remove release.yml
---
.chglog/CHANGELOG.tpl.md | 36 ------------------------
.chglog/config.yml | 28 ------------------
.github/workflows/release.yml | 53 -----------------------------------
3 files changed, 117 deletions(-)
delete mode 100644 .chglog/CHANGELOG.tpl.md
delete mode 100644 .chglog/config.yml
delete mode 100644 .github/workflows/release.yml
diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md
deleted file mode 100644
index afc339c..0000000
--- a/.chglog/CHANGELOG.tpl.md
+++ /dev/null
@@ -1,36 +0,0 @@
-{{ range .Versions }}
-
-
-## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
-
-{{ range .CommitGroups -}}
-
-### {{ .Title }}
-
-{{ range .Commits -}}
-
-- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
- {{ end }}
- {{ end -}}
-
-{{- if .RevertCommits -}}
-
-### Reverts
-
-{{ range .RevertCommits -}}
-
-- {{ .Revert.Header }}
- {{ end }}
- {{ end -}}
-
-{{- if .NoteGroups -}}
-{{ range .NoteGroups -}}
-
-### {{ .Title }}
-
-{{ range .Notes }}
-{{ .Body }}
-{{ end }}
-{{ end -}}
-{{ end -}}
-{{ end -}}
diff --git a/.chglog/config.yml b/.chglog/config.yml
deleted file mode 100644
index 528b940..0000000
--- a/.chglog/config.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-style: github
-template: CHANGELOG.tpl.md
-info:
- title: CHANGELOG
- repository_url: https://github.com/go-vela/vela-email
-options:
- commits:
- # filters:
- # Type:
- # - feat
- # - fix
- # - perf
- # - refactor
- commit_groups:
- # title_maps:
- # feat: Features
- # fix: Bug Fixes
- # perf: Performance Improvements
- # refactor: Code Refactoring
- header:
- pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
- pattern_maps:
- - Type
- - Scope
- - Subject
- notes:
- keywords:
- - BREAKING CHANGE
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index bfc2b4b..0000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-# name of the action
-name: release
-
-# trigger on push events with `v*` in tag
-# ignore push events with `v*-rc*` in tag
-on:
- push:
- tags:
- - "v*"
- - "!v*-rc*"
-
-# pipeline to execute
-jobs:
- release:
- runs-on: ubuntu-latest
- container:
- image: golang:1.17
- steps:
- - name: clone
- uses: actions/checkout@v2
-
- - name: tags
- run: |
- git fetch --tags
-
- - name: version
- id: version
- run: |
- echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
-
- - name: install
- run: |
- go get github.com/git-chglog/git-chglog/cmd/git-chglog
- go get github.com/github-release/github-release
-
- - name: changelog
- run: |
- # https://github.com/git-chglog/git-chglog#git-chglog
- $(go env GOPATH)/bin/git-chglog \
- -o $GITHUB_WORKSPACE/CHANGELOG.md \
- ${{ steps.version.outputs.VERSION }}
-
- - name: release
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- # https://github.com/github-release/github-release#how-to-use
- $(go env GOPATH)/bin/github-release edit \
- --user go-vela \
- --repo vela-email \
- --tag ${{ steps.version.outputs.VERSION }} \
- --name ${{ steps.version.outputs.VERSION }} \
- --description "$(cat $GITHUB_WORKSPACE/CHANGELOG.md)"
From 6cbc6766460fc1a79df15c735f9526a2b0e4dab9 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 14 Mar 2022 10:08:50 -0500
Subject: [PATCH 2/3] Update actions/checkout action to v3 (#5)
Co-authored-by: Renovate Bot
---
.github/workflows/build.yml | 2 +-
.github/workflows/codeql-analysis.yml | 2 +-
.github/workflows/prerelease.yml | 2 +-
.github/workflows/publish.yml | 2 +-
.github/workflows/reviewdog.yml | 4 ++--
.github/workflows/test.yml | 2 +-
.github/workflows/validate.yml | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bfceca3..1840ce8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,7 +14,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: build
run: |
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index e7f488d..4051cf7 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -35,7 +35,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index e068955..d26d00e 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -15,7 +15,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
# ensures we fetch tag history for the repository
fetch-depth: 0
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index bd8171e..598eb06 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -14,7 +14,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
# ensures we fetch tag history for the repository
fetch-depth: 0
diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml
index 94d21fc..1e0515d 100644
--- a/.github/workflows/reviewdog.yml
+++ b/.github/workflows/reviewdog.yml
@@ -13,7 +13,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
@@ -30,7 +30,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b2f98b5..f6f20f5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -14,7 +14,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: test
run: |
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 7ace2e2..6af0449 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -14,7 +14,7 @@ jobs:
image: golang:1.17
steps:
- name: clone
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: validate
run: |
From aaeaa9c1b49494dfbffc9f8ae7a194d16ff76f10 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 15 Mar 2022 08:46:52 -0500
Subject: [PATCH 3/3] fix(deps): update module github.com/urfave/cli/v2 to
v2.4.0 (#9)
Co-authored-by: Renovate Bot
---
go.mod | 2 +-
go.sum | 16 +++++++---------
2 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/go.mod b/go.mod
index cbb4b13..a9abcff 100644
--- a/go.mod
+++ b/go.mod
@@ -9,7 +9,7 @@ require (
github.com/go-vela/types v0.12.0
github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible
github.com/sirupsen/logrus v1.8.1
- github.com/urfave/cli/v2 v2.3.0
+ github.com/urfave/cli/v2 v2.4.0
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
golang.org/x/sys v0.0.0-20211013075003-97ac67df715c // indirect
)
diff --git a/go.sum b/go.sum
index b9729de..408b3fd 100644
--- a/go.sum
+++ b/go.sum
@@ -8,8 +8,8 @@ github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEq
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
github.com/buildkite/yaml v0.0.0-20181016232759-0caa5f0796e3/go.mod h1:5hCug3EZaHXU3FdCA3gJm0YTNi+V+ooA2qNTiVpky4A=
-github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
-github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
+github.com/cpuguy83/go-md2man/v2 v2.0.1 h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKYj/3DxU=
+github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/drone/envsubst v1.0.3/go.mod h1:N2jZmlMufstn1KEqvbHjw40h1KyTmnVzHcSc9bFiJ2g=
@@ -28,16 +28,14 @@ github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/microcosm-cc/bluemonday v1.0.17/go.mod h1:Z0r70sCuXHig8YpBzCc5eGHAap2K7e/u082ZUpDRRqM=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
-github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
-github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
-github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
+github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
+github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M=
-github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
+github.com/urfave/cli/v2 v2.4.0 h1:m2pxjjDFgDxSPtO8WSdbndj17Wu2y8vOT86wE/tjr+I=
+github.com/urfave/cli/v2 v2.4.0/go.mod h1:NX9W0zmTvedE5oDoOMs2RTC8RvdK98NTYZE5LbaEYPg=
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE=
@@ -52,5 +50,5 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=