Skip to content

Commit 1589e4d

Browse files
authored
Merge pull request #227 from hjgraca/chore_fix_changelog_build
2 parents 56d5583 + 183afdf commit 1589e4d

File tree

5 files changed

+106
-1
lines changed

5 files changed

+106
-1
lines changed

Diff for: .chglog/CHANGELOG.tpl.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!-- changelog is partially generated, so it doesn't follow headings and required structure, so we disable it. -->
2+
<!-- markdownlint-disable -->
3+
4+
# Changelog
5+
6+
All notable changes to this project will be documented in this file.
7+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
8+
9+
{{ range .Versions }}
10+
<a name="{{ .Tag.Name }}"></a>
11+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
12+
{{ range .CommitGroups -}}
13+
14+
## {{ .Title }}
15+
16+
{{ range .Commits -}}
17+
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
18+
{{ end }}
19+
{{ end -}}
20+
21+
{{- if .RevertCommits -}}
22+
## Reverts
23+
{{ range .RevertCommits -}}
24+
* {{ .Revert.Header }}
25+
{{ end }}
26+
{{ end -}}
27+
28+
{{- if .MergeCommits -}}
29+
## Pull Requests
30+
31+
{{ range .MergeCommits -}}
32+
* {{ .Header }}
33+
{{ end }}
34+
{{ end -}}
35+
36+
{{- if .NoteGroups -}}
37+
{{ range .NoteGroups -}}
38+
## {{ .Title }}
39+
{{ range .Notes }}
40+
{{ .Body }}
41+
{{ end }}
42+
{{ end -}}
43+
{{ end -}}
44+
{{ end -}}
45+
46+
{{- if .Versions }}
47+
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
48+
{{ range .Versions -}}
49+
{{ if .Tag.Previous -}}
50+
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
51+
{{ end -}}
52+
{{ end -}}
53+
{{ end -}}

Diff for: .chglog/config.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/awslabs/aws-lambda-powertools-dotnet
6+
options:
7+
commits:
8+
filters:
9+
Type:
10+
- feat
11+
- fix
12+
- perf
13+
- refactor
14+
- docs
15+
- chore
16+
- revert
17+
commit_groups:
18+
title_maps:
19+
feat: Features
20+
fix: Bug Fixes
21+
perf: Performance Improvements
22+
refactor: Code Refactoring
23+
docs: Documentation
24+
chore: Maintenance
25+
revert: Regression
26+
header:
27+
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
28+
pattern_maps:
29+
- Type
30+
- Scope
31+
- Subject
32+
notes:
33+
keywords:
34+
- BREAKING CHANGE
35+
# issues:
36+
# prefix:
37+
# - #

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ AWS.Lambda.Powertools.sln.DotSettings.user
1818
[Oo]bj/**
1919
[Bb]in/**
2020
.DS_Store
21+
22+
dist/
23+
site/

Diff for: Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ docs-local:
1414

1515
docs-local-docker:
1616
docker build -t squidfunk/mkdocs-material ./docs/
17-
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
17+
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
18+
19+
changelog:
20+
git fetch --tags origin
21+
CURRENT_VERSION=$(shell git describe --abbrev=0 --tag) ;\
22+
echo "[+] Pre-generating CHANGELOG for tag: $$CURRENT_VERSION" ;\
23+
docker run -v "${PWD}":/workdir quay.io/git-chglog/git-chglog:0.15.4 > CHANGELOG.md

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ Not using .NET? No problem, we have you covered. Here are the other members of t
5757
* Structured logging initial implementation from [aws-lambda-logging](https://gitlab.com/hadrien/aws_lambda_logging)
5858
* Powertools idea [DAZN Powertools](https://github.com/getndazn/dazn-lambda-powertools/)
5959

60+
## 👋 Contributing
61+
62+
We welcome contributions from developers of all levels to our open-source project on GitHub. If you'd like to contribute, please check our contributing guidelines and help make this project more accessible.
63+
64+
[![Star History Chart](https://api.star-history.com/svg?repos=awslabs/aws-lambda-powertools-dotnet&type=Date)](https://star-history.com/#awslabs/aws-lambda-powertools-dotnet&Date)
65+
6066
## Connect
6167

6268
* **AWS Lambda Powertools on Discord**: `#dotnet` - **[Invite link](https://discord.gg/B8zZKbbyET)**

0 commit comments

Comments
 (0)