Skip to content

Commit

Permalink
Release notes format improvement (#411)
Browse files Browse the repository at this point in the history
* first version for release notes

* new automation

* Update release.yml

Co-authored-by: Pedro Lopes <[email protected]>
  • Loading branch information
tiagobcx and pedrompflopes authored Jun 20, 2022
1 parent 052b0f7 commit bc23d31
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
feature: ['feature/*', 'feat/*']
fix: ['fix/*', 'bug/*']
dependencies: dependabot/*
24 changes: 24 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# .github/release.yml

changelog:
exclude:
labels:
- ignore
categories:
- title: Bug fixes 🐛
labels:
- bug
- bugs
- fix
- fixes
- title: New Features 🚀
labels:
- feature
- features
- title: Dependencies updates 🛠
labels:
- dependencies
- dependency
- title: Other Changes
labels:
- "*"
12 changes: 12 additions & 0 deletions .github/workflows/pr-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PR Labeler
on:
pull_request:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO_BOT_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Get latest relase notes
run: |
body_release="$(gh api -H "Accept: application/vnd.github.v3+json" /repos/ast-cli/releases/releases/latest | jq -r '.body' )"
echo 'BODY_RELEASE='$body_release >> $GITHUB_ENV
- name: Teams notification
uses: toko-bifrost/ms-teams-deploy-card@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
webhook-uri: ${{ secrets.TEAMS_WEBHOOK_URI }}
custom-facts: |
- name: Release :
value: "${{ env.BODY_RELEASE }}"
custom-actions: |
- name: Details
value: https://github.com/Checkmarx/ast-cli/releases/tag/${{ env.RELEASE_VERSION }}

0 comments on commit bc23d31

Please sign in to comment.