Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 30 additions & 50 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,30 @@
name-template: "v$RESOLVED_VERSION 🌈"
tag-template: "v$RESOLVED_VERSION"
template: |
# 🧭 What's Changed
$CHANGES
# ⚙️ Who Contributes
$CONTRIBUTORS
categories:
- title: "🏆 Milestone"
label: "milestone"
- title: "🚀 New"
label: "enhancement"
- title: "💻 New"
label: "codespaces"
- title: "🐛 Bug Fixes"
label: "bug"
- title: "🧰 Maintenance"
label: "maintenance"
- title: ":octocat: Github Actions"
label: "github-actions"
- title: "🗂 Documentation"
label: "documentation"
- title: "🔗 Dependency Updates"
label: "dependencies"
- title: "🔬 Testing & Coverage"
label: "testing"
- title: "👋 Welcome"
label: "good first issue"

version-resolver:
major:
labels:
- "milestone"
minor:
labels:
- "enhancement"
patch:
labels:
- "codespaces"
- "bug"
- "maintenance"
- "github-actions"
- "documentation"
- "dependencies"
- "security"
- "testing"
- "good first issue"

exclude-labels:
- "skip-changelog"
changelog:
categories:
- title: "🏆 Milestone"
labels: "milestone"
- title: "🚀 New"
labels: "enhancement"
- title: "💻 New"
labels: "codespaces"
- title: "🐛 Bug Fixes"
labels: "bug"
- title: "🧰 Maintenance"
labels: "maintenance"
- title: ":octocat: Github Actions"
labels: "github-actions"
- title: "🗂 Documentation"
labels: "documentation"
- title: "🔗 Dependency Updates"
labels: "dependencies"
- title: "🔬 Testing & Coverage"
labels: "testing"
- title: "👋 Welcome"
labels: "good first issue"
- title: "🔒 Security"
labels:
- "security"
- "dependabot"
- title: "🚨 Breaking Changes"
labels: "breaking"
- title: "📝 Changelog"
labels: "changelog"
17 changes: 0 additions & 17 deletions .github/workflows/release-drafter.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# .github/workflows/update-changelog.yaml
name: "Update Changelog"

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main

jobs:
update:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# updated CHANGELOG back to the repository.
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.tag_name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.event.release.target_commitish }}
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
Loading