Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mogensen/helm-changelog
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: traefik/helm-changelog
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 15 commits
  • 15 files changed
  • 3 contributors

Commits on Nov 18, 2022

  1. 🎨 Improve helm-changelog output

    * Remove trailing whitespace on commit message & release version
    * Remove _Default Values changes_ block when there is no change
    * Put badges into Chart Version h2 for less lines and more readability
    mloiseleur committed Nov 18, 2022
    Copy the full SHA
    68a3133 View commit details

Commits on Jan 9, 2023

  1. Update go.mod

    macmiranda authored Jan 9, 2023
    Copy the full SHA
    bddb81c View commit details

Commits on Oct 23, 2023

  1. Merge pull request #2 from macmiranda/patch-1

    Make it installable as a module
    mloiseleur authored Oct 23, 2023
    Copy the full SHA
    ec68e6a View commit details
  2. chore: update go mods

    mloiseleur committed Oct 23, 2023
    Copy the full SHA
    edad7f9 View commit details
  3. Copy the full SHA
    1a7c9e2 View commit details
  4. Merge pull request #3 from mloiseleur/chore/update_mods

    chore: update go mods
    mloiseleur authored Oct 23, 2023
    Copy the full SHA
    da6502f View commit details
  5. Merge pull request #4 from mloiseleur/feat/reverse-order

    feat: alphabetical order when displaying commits
    mloiseleur authored Oct 23, 2023
    Copy the full SHA
    4f47e97 View commit details
  6. chore(release) v0.0.3

    mloiseleur committed Oct 23, 2023
    Copy the full SHA
    9e0d8ca View commit details
  7. Merge pull request #5 from mloiseleur/chore/release

    chore(release) v0.0.3
    mloiseleur authored Oct 23, 2023
    Copy the full SHA
    a05cc30 View commit details
  8. Copy the full SHA
    f9ceef7 View commit details
  9. Merge pull request #6 from mloiseleur/fix/release

    fix: typo when rebase and Makefile for release
    mloiseleur authored Oct 23, 2023
    Copy the full SHA
    7a3b8df View commit details

Commits on Apr 19, 2024

  1. Copy the full SHA
    164f235 View commit details
  2. Copy the full SHA
    13013e4 View commit details
  3. Copy the full SHA
    f5ae60a View commit details

Commits on Apr 30, 2024

  1. Update go.mod (#10)

    macmiranda authored Apr 30, 2024
    Copy the full SHA
    5e7a921 View commit details
Showing with 225 additions and 524 deletions.
  1. +15 −19 .github/workflows/ci.yaml
  2. +0 −32 .github/workflows/release-executable.yaml
  3. +48 −0 .github/workflows/release.yaml
  4. +97 −0 .goreleaser.yml
  5. +1 −1 Dockerfile
  6. +2 −2 Makefile
  7. +12 −0 buildx.Dockerfile
  8. +3 −4 cmd/root.go
  9. +11 −7 go.mod
  10. +16 −438 go.sum
  11. +1 −1 main.go
  12. +1 −1 pkg/helm/models.go
  13. +1 −3 pkg/helm/releases.go
  14. +15 −14 pkg/output/markdown.go
  15. +2 −2 pkg/output/utils.go
34 changes: 15 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,35 @@
name: Build and Test

on:
push:
branches:
- 'main'
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches:
- '*'
- 'main'

permissions:
contents: write

jobs:
build:
if: "!github.event.pull_request.draft"
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Build & Test
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup go
uses: actions/setup-go@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '^1.16.0'
-
name: Download dependencies

- name: Download dependencies
run: go mod download
-
name: Build & Test

- name: Build & Test
run: |
go build -o ./helm-changelog -v ./cmd/
go test ./...
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
args: release --snapshot --skip-publish --rm-dist
32 changes: 0 additions & 32 deletions .github/workflows/release-executable.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release with goreleaser

on:
push:
tags:
- v*.*.*

permissions:
contents: write
packages: write

jobs:
build:
runs-on: ubuntu-latest
name: goreleaser
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '^1.16.0'

- name: Download dependencies
run: go mod download

- name: Release via goreleaser
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97 changes: 97 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
project_name: helm-changelog

builds:
- binary: helm-changelog
main: ./

env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}}

goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^doc:'
- '^chore:'
- '^test:'
- '^tests:'

archives:
- id: helm-changelog
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE

docker_manifests:
- name_template: 'ghcr.io/traefik/helm-changelog:{{ .Tag }}'
image_templates:
- 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-amd64'
- 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-arm64'
- name_template: 'ghcr.io/traefik/helm-changelog:latest'
image_templates:
- 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-amd64'
- 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-arm64'
- name_template: 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}'
image_templates:
- 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-amd64'
- 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-arm64'

dockers:
- use: buildx
goos: linux
goarch: amd64
dockerfile: buildx.Dockerfile
image_templates:
- 'ghcr.io/traefik/helm-changelog:latest-amd64'
- 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-amd64'
- 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-amd64'
build_flag_templates:
- '--pull'
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
- '--label=org.opencontainers.image.title={{.ProjectName}}'
- '--label=org.opencontainers.image.description=Myrmica Bibikoffi - Closes stale issues'
- '--label=org.opencontainers.image.source={{.GitURL}}'
- '--label=org.opencontainers.image.url={{.GitURL}}'
- '--label=org.opencontainers.image.documentation={{.GitURL}}'
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
- '--label=org.opencontainers.image.version={{.Version}}'
- '--platform=linux/amd64'

- use: buildx
goos: linux
goarch: arm64
dockerfile: buildx.Dockerfile
image_templates:
- 'ghcr.io/traefik/helm-changelog:latest-arm64'
- 'ghcr.io/traefik/helm-changelog:{{ .Tag }}-arm64'
- 'ghcr.io/traefik/helm-changelog:v{{ .Major }}.{{ .Minor }}-arm64'
build_flag_templates:
- '--pull'
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
- '--label=org.opencontainers.image.title={{.ProjectName}}'
- '--label=org.opencontainers.image.description=Create changelogs for Helm Charts, based on git history.'
- '--label=org.opencontainers.image.source={{.GitURL}}'
- '--label=org.opencontainers.image.url={{.GitURL}}'
- '--label=org.opencontainers.image.documentation={{.GitURL}}'
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
- '--label=org.opencontainers.image.version={{.Version}}'
- '--platform=linux/arm64'
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16-alpine AS build-env
FROM golang:1.21-alpine AS build-env

# Dependencies
WORKDIR /build
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION="v0.0.1"
VERSION="v0.0.3"

PROJECT_NAME="helm-changelog"
BINDIR ?= $(CURDIR)/bin
@@ -23,7 +23,7 @@ build: ## Build binary
verify: test build ## tests and builds

image: ## build docker image
docker build -t mogensen/${PROJECT_NAME}:${VERSION} .
docker build -t ghcr.io/mloiseleur/${PROJECT_NAME}:${VERSION} .

clean: ## clean up created files
rm -rf \
12 changes: 12 additions & 0 deletions buildx.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1.4
FROM alpine:3

WORKDIR /data

RUN apk add git

COPY --chown=1000:1000 helm-changelog /app/helm-changelog

USER 1000:1000

CMD ["/app/helm-changelog"]
7 changes: 3 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@ import (
"path/filepath"
"strings"

"github.com/mogensen/helm-changelog/pkg/git"
"github.com/mogensen/helm-changelog/pkg/helm"
"github.com/mogensen/helm-changelog/pkg/output"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/traefik/helm-changelog/pkg/git"
"github.com/traefik/helm-changelog/pkg/helm"
"github.com/traefik/helm-changelog/pkg/output"
)

var changelogFilename string
@@ -20,7 +20,6 @@ var rootCmd = &cobra.Command{
Use: "helm-changelog",
Short: "Create changelogs for Helm Charts, based on git history",
Run: func(cmd *cobra.Command, args []string) {

log := logrus.StandardLogger()

currentDir, err := os.Getwd()
18 changes: 11 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
module github.com/mogensen/helm-changelog
module github.com/traefik/helm-changelog

go 1.16
go 1.21

require (
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.7.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.1.3
github.com/stretchr/testify v1.4.0 // indirect
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/sys v0.13.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)
Loading