Skip to content

Commit 2cc7b7a

Browse files
authored
Bugfix/#139 (#140)
1 parent 54a4b74 commit 2cc7b7a

10 files changed

Lines changed: 82 additions & 90 deletions

File tree

.chglog/CHANGELOG.tpl.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,51 @@
11
{{ if .Versions -}}
22
<a name="unreleased"></a>
3-
## [Unreleased]
3+
4+
### [Unreleased]
45

56
{{ if .Unreleased.CommitGroups -}}
67
{{ range .Unreleased.CommitGroups -}}
7-
### {{ .Title }}
8+
9+
#### {{ .Title }}
10+
811
{{ range .Commits -}}
12+
913
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
10-
{{ end }}
11-
{{ end -}}
12-
{{ end -}}
13-
{{ end -}}
14+
{{ end }}
15+
{{ end -}}
16+
{{ end -}}
17+
{{ end -}}
1418

1519
{{ range .Versions }}
1620
<a name="{{ .Tag.Name }}"></a>
17-
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
21+
22+
### {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
23+
1824
{{ range .CommitGroups -}}
19-
### {{ .Title }}
25+
26+
#### {{ .Title }}
27+
2028
{{ range .Commits -}}
29+
2130
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
22-
{{ end }}
23-
{{ end -}}
31+
{{ end }}
32+
{{ end -}}
2433

2534
{{- if .MergeCommits -}}
26-
### Pull Requests
35+
36+
#### Pull Requests
37+
2738
{{ range .MergeCommits -}}
39+
2840
- {{ .Header }}
29-
{{ end }}
30-
{{ end -}}
41+
{{ end }}
42+
{{ end -}}
3143

3244
{{- if .NoteGroups -}}
3345
{{ range .NoteGroups -}}
34-
### {{ .Title }}
46+
47+
#### {{ .Title }}
48+
3549
{{ range .Notes }}
3650
{{ .Body }}
3751
{{ end }}
@@ -46,4 +60,4 @@
4660
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
4761
{{ end -}}
4862
{{ end -}}
49-
{{ end -}}
63+
{{ end -}}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: 'Bug: '
5-
labels: 'bug'
6-
assignees: ''
7-
4+
title: "Bug: "
5+
labels: "bug"
6+
assignees: ""
87
---
98

109
**Describe the bug**
@@ -13,20 +12,20 @@ A clear and concise description of what the bug is.
1312
**Your environment/setup**
1413
In what tool is your pipeline running?
1514

16-
- Jenkins Pipeline
17-
- GitHub Actions
18-
- GitLab CI
15+
- [ ] GitHub Actions
16+
- [ ] GitLab CI
17+
- [ ] Jenkins Pipeline
1918

2019
How is this tool installed
2120

22-
- Container
23-
- Bare Metal
24-
- Virtual machine
21+
- [ ] Container
22+
- [ ] Bare Metal
23+
- [ ] Virtual machine
2524

2625
Are all environment variables set? See README.md
2726

28-
- yes
29-
- no
27+
- [ ] yes
28+
- [ ] no
3029

3130
**To Reproduce**
3231
Paste your executed command here:

.github/workflows/Release.yaml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Go
2828
uses: actions/setup-go@v3
2929
with:
30-
go-version: 1.19
30+
go-version: 1.20
3131

3232
- name: Build
3333
run: make VERSION="${{ needs.create_release.outputs.version }}"
@@ -52,6 +52,8 @@ jobs:
5252
steps:
5353
- name: Checkout code
5454
uses: actions/checkout@v3
55+
with:
56+
fetch-depth: 0
5557
- name: Setup awesome-ci
5658
uses: fullstack-devops/awesome-ci-action@main
5759

@@ -63,42 +65,27 @@ jobs:
6365
path: build/package/
6466
key: awesome-ci-${{ github.sha }}
6567

66-
- name: get generated artifacts
68+
- name: list generated artifacts
6769
working-directory: build/package
6870
run: ls -la
6971

72+
- name: update changelog
73+
run: docker --rm run -v "$PWD":/workdir quay.io/git-chglog/git-chglog -o CHANGELOG.md 1.0.0..
74+
- name: update changelog in template
75+
run: docker --rm run -v "$PWD":/workdir quay.io/git-chglog/git-chglog ${{ needs.create_release.outputs.latest-version }}.. >> scripts/release-template.md
76+
7077
- name: Publish Release
7178
run: >-
7279
awesome-ci release publish --release-id ${{ needs.create_release.outputs.releaseid }}
7380
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_linux-amd64"
7481
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_linux-arm64"
7582
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_windows-amd64.exe"
7683
-a "file=build/package/awesome-ci_${{ needs.create_release.outputs.version }}_windows-arm64.exe"
77-
-body "scripts/release-template.md"
84+
-a "file=CHANGELOG.md"
85+
--body "scripts/release-template.md"
7886
env:
7987
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8088

81-
update_changelog:
82-
runs-on: ubuntu-latest
83-
needs: [create_release, publish_release]
84-
steps:
85-
- name: Checkout code
86-
uses: actions/checkout@v3
87-
with:
88-
fetch-depth: 0
89-
90-
- name: update changelog
91-
run: docker run -v "$PWD":/workdir quay.io/git-chglog/git-chglog -o CHANGELOG.md 1.0.0..
92-
93-
- name: git update main
94-
continue-on-error: true
95-
run: |
96-
git config user.name "$GITHUB_ACTOR"
97-
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
98-
git status
99-
git commit CHANGELOG.md -m "update CHANGELOG.md"
100-
git push
101-
10289
update_action:
10390
runs-on: ubuntu-latest
10491
needs: [create_release, publish_release]

CHANGELOG.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
**Description**: This project is the smart connection between your pipeline for continuous integration and your version management like GitLab or GitHub. The focus is on the release process, followed by the version management of [SemVer](https://semver.org/). The required version number is created with the correct naming of the branch prefix.
88

99
- **Technology stack**: This tool is written in golang
10-
- **Status**: Stable, at release the [CHANGELOG](CHANGELOG.md) would be updated.
10+
- **Status**: Stable.
1111
- **Requests and Issues**: Please feel free to open an question or feature request in the Issue Board.
1212
- **Supported environments**:
1313
- GitHub & GitHub Enterprise

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ go 1.20
55
require (
66
github.com/coreos/go-semver v0.3.1
77
github.com/ghodss/yaml v1.0.0
8-
github.com/go-git/go-git/v5 v5.5.2
8+
github.com/go-git/go-git/v5 v5.6.0
99
github.com/google/go-github/v49 v49.1.0
10-
github.com/itchyny/gojq v0.12.11
10+
github.com/itchyny/gojq v0.12.12
1111
github.com/spf13/cobra v1.6.1
1212
github.com/xanzy/go-gitlab v0.80.2
1313
golang.org/x/oauth2 v0.5.0
@@ -27,7 +27,7 @@ require (
2727
require (
2828
github.com/Microsoft/go-winio v0.6.0 // indirect
2929
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
30-
github.com/acomagu/bufpipe v1.0.3 // indirect
30+
github.com/acomagu/bufpipe v1.0.4 // indirect
3131
github.com/cloudflare/circl v1.3.2 // indirect
3232
github.com/emirpasic/gods v1.18.1 // indirect
3333
github.com/go-git/gcfg v1.5.0 // indirect
@@ -42,7 +42,7 @@ require (
4242
github.com/kevinburke/ssh_config v1.2.0 // indirect
4343
github.com/mattn/go-colorable v0.1.13 // indirect
4444
github.com/mattn/go-isatty v0.0.17 // indirect
45-
github.com/pjbgf/sha1cd v0.2.3 // indirect
45+
github.com/pjbgf/sha1cd v0.3.0 // indirect
4646
github.com/sergi/go-diff v1.3.1 // indirect
4747
github.com/sirupsen/logrus v1.9.0
4848
github.com/skeema/knownhosts v1.1.0 // indirect

go.sum

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 h1:wPbRQzjjwF
66
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g=
77
github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk=
88
github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
9+
github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ=
10+
github.com/acomagu/bufpipe v1.0.4/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
911
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
1012
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
1113
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
@@ -40,6 +42,8 @@ github.com/go-git/go-git-fixtures/v4 v4.3.1 h1:y5z6dd3qi8Hl+stezc8p3JxDkoTRqMAlK
4042
github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo=
4143
github.com/go-git/go-git/v5 v5.5.2 h1:v8lgZa5k9ylUw+OR/roJHTxR4QItsNFI5nKtAXFuynw=
4244
github.com/go-git/go-git/v5 v5.5.2/go.mod h1:BE5hUJ5yaV2YMxhmaP4l6RBQ08kMxKSPD4BlxtH7OjI=
45+
github.com/go-git/go-git/v5 v5.6.0 h1:JvBdYfcttd+0kdpuWO7KTu0FYgCf5W0t5VwkWGobaa4=
46+
github.com/go-git/go-git/v5 v5.6.0/go.mod h1:6nmJ0tJ3N4noMV1Omv7rC5FG3/o8Cm51TB4CJp7mRmE=
4347
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
4448
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
4549
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
@@ -66,6 +70,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
6670
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
6771
github.com/itchyny/gojq v0.12.11 h1:YhLueoHhHiN4mkfM+3AyJV6EPcCxKZsOnYf+aVSwaQw=
6872
github.com/itchyny/gojq v0.12.11/go.mod h1:o3FT8Gkbg/geT4pLI0tF3hvip5F3Y/uskjRz9OYa38g=
73+
github.com/itchyny/gojq v0.12.12 h1:x+xGI9BXqKoJQZkr95ibpe3cdrTbY8D9lonrK433rcA=
74+
github.com/itchyny/gojq v0.12.12/go.mod h1:j+3sVkjxwd7A7Z5jrbKibgOLn0ZfLWkV+Awxr/pyzJE=
6975
github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE=
7076
github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8=
7177
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
@@ -92,9 +98,12 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k
9298
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
9399
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
94100
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
101+
github.com/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM=
95102
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
96103
github.com/pjbgf/sha1cd v0.2.3 h1:uKQP/7QOzNtKYH7UTohZLcjF5/55EnTw0jO/Ru4jZwI=
97104
github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M=
105+
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
106+
github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI=
98107
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
99108
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
100109
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
@@ -127,15 +136,18 @@ github.com/xanzy/go-gitlab v0.80.2/go.mod h1:DlByVTSXhPsJMYL6+cm8e8fTJjeBmhrXdC/
127136
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
128137
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
129138
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
139+
golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
130140
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
131141
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
132142
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
133143
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
134144
golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
145+
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
135146
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
136147
golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc=
137148
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
138149
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
150+
golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
139151
golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
140152
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
141153
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
@@ -144,6 +156,7 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
144156
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
145157
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
146158
golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
159+
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
147160
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
148161
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
149162
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
@@ -172,13 +185,15 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc
172185
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
173186
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
174187
golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
188+
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
175189
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
176190
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
177191
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
178192
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
179193
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
180194
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
181195
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
196+
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
182197
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
183198
golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
184199
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -193,6 +208,7 @@ golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
193208
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
194209
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
195210
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
211+
golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
196212
golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
197213
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
198214
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -218,3 +234,4 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
218234
gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
219235
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
220236
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
237+
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=

internal/app/awesome-ci/scm-portal/github/release.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (ghrc *GitHubRichClient) PublishRelease(
6969
// upload any given artifacts
7070
var releaseBodyAssets string = ""
7171
if len(uploadArtifacts) > 0 {
72-
releaseBodyAssets = "### Asstes\n"
72+
releaseBodyAssets = "### Assets\n"
7373

7474
for _, fileAndInfo := range uploadArtifacts {
7575
log.Infof("uploading %s as asset to release\n", fileAndInfo.Name)
@@ -129,7 +129,11 @@ func (ghrc *GitHubRichClient) GetLatestReleaseVersion() (latestRelease *github.R
129129

130130
log.Tracef("found %d releases at page %d begin with mapping...", len(releases), page)
131131
for _, release := range releases {
132-
releaseMap[*release.TagName] = release
132+
if !*release.Draft {
133+
releaseMap[*release.TagName] = release
134+
} else {
135+
log.Infof("ignoring draft release %s", *release.Name)
136+
}
133137
}
134138

135139
log.Traceln("####### next page:", response.NextPage)

internal/app/awesome-ci/service/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func ReleasePublish(args *ReleaseArgs, releaseId int64, assets []string) {
8484
for _, asset := range assets {
8585
assetInfo, err := tools.GetAsset(asset)
8686
if err != nil {
87-
log.Fatalln("not all specified asstes available, please check")
87+
log.Fatalln("not all specified assets available, please check")
8888
}
8989
assetsEncoded = append(assetsEncoded, *assetInfo)
9090
}

scripts/release-template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
This project is still in the **beta** phase.
44

55
But don't be shy and use this tool in advance. If you find bugs or have improvements, please feel free to open an [issue](https://github.com/fullstack-devops/awesome-ci/issues/new/choose) :rocket:
6+
7+
## Changelog

0 commit comments

Comments
 (0)