Skip to content

Commit

Permalink
Merge branch 'release-0.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
William Lam committed Jun 10, 2021
2 parents 2df2739 + 992f8fb commit 3480b4f
Show file tree
Hide file tree
Showing 141 changed files with 4,043 additions and 709 deletions.
46 changes: 46 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[Release {{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }}

> Release Date: {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}

{{ range .Commits -}}
- [{{ .Hash.Short }}]{{"\t"}}{{ .Subject }}{{ range .Refs }} (#{{ .Ref }}) {{ end }}
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
### ⏮ Reverts

{{ range .RevertCommits -}}
- [{{ .Hash.Short }}]{{"\t"}}{{ .Revert.Header }}{{ range .Refs }} (#{{ .Ref }}) {{ end }}
{{ end }}
{{ end -}}

### ⚠️ BREAKING

{{ range .Commits -}}
{{ if .Notes -}}
{{ if not .Merge -}}
{{ if not (contains .Header "Update CHANGELOG for" ) -}}
{{ range .Notes }}{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}

### 📖 Commits

{{ range .Commits -}}
{{ if not .Merge -}}
{{ if not (or (contains .Header "Update CHANGELOG for") (contains .Header "Merge branch" )) -}}
- [{{ .Hash.Short }}]{{"\t"}}{{ .Header }}{{ range .Refs }} (#{{ .Ref }}){{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ end -}}
31 changes: 31 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/vmware-samples/vcenter-event-broker-appliance
options:
commits:
filters:
Type:
- fix
- feat
- chore
- docs
commit_groups:
title_maps:
fix: 🐞 Fix
feat: 💫 Feature
chore: 🧹 Chore
docs: 📃 Documentation
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
refs:
actions:
- Closes
- Fixes
notes:
keywords:
- "BREAKING"
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Please describe your changes and what you plan to introduce as part of this pull
- [ ] Please ensure that you are making a pull request against the **Development** branch
- [ ] Please use the `WIP` keyword in the title of your PR if you are not ready for review
- [ ] Please ensure that you have opened a Github Issue if you are resolving/fixing a problem
- [ ] Please ensure that you have [signed](https://help.github.com/en/github/authenticating-to-github/signing-commits) all commits and that you have [squashed](https://medium.com/@slamflipstrom/a-beginners-guide-to-squashing-commits-with-git-rebase-8185cf6e62ec) all relevant commmits related to your change
- [ ] Please ensure that you have [signed](https://help.github.com/en/github/authenticating-to-github/signing-commits) all commits and that you have [squashed](https://medium.com/@slamflipstrom/a-beginners-guide-to-squashing-commits-with-git-rebase-8185cf6e62ec) all relevant commits related to your change
- [ ] Please make sure that you have tested your change locally by successfully [building and deploying the VMware Event Broker Appliance](https://vmweventbroker.io/kb/contribute-appliance) and/or [building and deploying VMware Event Router](https://vmweventbroker.io/kb/contribute-eventrouter)
- [ ] Please include any relevant screenshots and/or output as part of your testing
- [ ] Please include any documentation updates that is applicable for your changes
Expand All @@ -33,7 +33,7 @@ Please check the type of change your PR introduces:

List of Issues closed or resolved by this PR. Add multiple `Closes` keyword followed by the issue number (e.g. Closes #ISSUE-NUMBER)

* Closes #ISSUE-NUMBER
Closes #ISSUE-NUMBER

## Testing Verification

Expand Down
1 change: 1 addition & 0 deletions .github/comment-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Howdy 🖐 &nbsp; {{ .author }} ! Thank you for your interest in this project. We value your feedback and will respond soon.
7 changes: 3 additions & 4 deletions .github/workflows/check-wip-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ on:
types: [opened, synchronize, reopened, edited]

jobs:
WIP:
wip:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.title, 'WIP')
steps:
- name: Must Exit
run: exit 1
- name: Check WIP in PR Title
uses: embano1/wip@v1
33 changes: 33 additions & 0 deletions .github/workflows/issue-greeting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Greeting

on:
issues:
types: ["opened"]

jobs:
greeting:
name: Send Greeting
runs-on: ubuntu-latest
# only send message to users not (yet) associated with repo
# https://docs.github.com/en/graphql/reference/enums#commentauthorassociation
if: github.event.issue.author_association == 'NONE'

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Render template
id: template
uses: chuhlomin/render-template@v1.2
with:
template: .github/comment-template.md
vars: |
author: ${{ github.actor }}
- name: Create comment
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: ${{ steps.template.outputs.result }}
48 changes: 48 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Notes

on:
push:
tags:
- "v*"

jobs:
changelog:
name: Create CHANGELOG PR
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
# for changelog
fetch-depth: 0
ref: master

- name: Create CHANGELOG commit
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
IMAGE: quay.io/git-chglog/git-chglog
# https://quay.io/repository/git-chglog/git-chglog from tag v0.14.2
IMAGE_SHA: 998e89dab8dd8284cfff5f8cfb9e9af41fe3fcd4671f2e86a180e453c20959e3
run: |
# update CHANGELOG
docker run --rm -v $PWD:/workdir ${IMAGE}@sha256:${IMAGE_SHA} -o CHANGELOG.md
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "${{ github.actor }}"
git add CHANGELOG.md
git commit -s -m "Update CHANGELOG for $(basename ${{ github.ref }})"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
delete-branch: true
title: "Update CHANGELOG"
reviewers: embano1
body: |
Update CHANGELOG.md for new release
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
3 changes: 3 additions & 0 deletions .github/workflows/router-verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'vmware-event-router/**'
schedule:
# runs daily
- cron: '0 0 * * *'

# run all jobs with these defaults, unless specified otherwise
defaults:
Expand Down
Loading

0 comments on commit 3480b4f

Please sign in to comment.