diff --git a/.github/.changelog-config.json b/.github/.changelog-config.json new file mode 100644 index 0000000..e68757b --- /dev/null +++ b/.github/.changelog-config.json @@ -0,0 +1,45 @@ +{ + "categories": [ + { + "title": "## New Features and enhancements", + "labels": [ + "Type: enhancement" + ], + "exhaustive": true + }, + { + "title": "## Bug Fixes", + "labels": [ + "Type: bug" + ], + "exhaustive": true + }, + { + "title": "## Documentation", + "labels": [ + "Type: documentation" + ], + "exhaustive": true + }, + { + "title": "## ⚠️ Breaking Changes", + "labels": [ + "Breaking-Change" + ], + "exhaustive": true + }, + { + "title": "## Updated dependencies", + "labels": [ + "Type: dependencies" + ], + "exhaustive": true + } + ], + "sort": "ASC", + "template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n\nThe following NuGet package is available from this release:\n\n:package: [nanoFramework.Hosting](https://www.nuget.org/packages/nanoFramework.Hosting/)", + "pr_template": "* ${{TITLE}} by @${{AUTHOR}} in #${{NUMBER}}", + "empty_template": "- no changes", + "max_tags_to_fetch": 200, + "max_pull_requests": 200 +} diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml new file mode 100644 index 0000000..e52c4d0 --- /dev/null +++ b/.github/workflows/generate-changelog.yml @@ -0,0 +1,16 @@ +# Copyright (c) .NET Foundation and Contributors +# See LICENSE file in the project root for full license information. + +name: Generate Changelog +run-name: Generate changelog + +on: + push: + tags: + - '*' + +jobs: + compose_changelog: + name: nanoFramework + uses: nanoframework/nf-tools/.github/workflows/generate-changelog.yml@main + secrets: inherit diff --git a/NuGet.Config b/NuGet.Config index ef0bacf..b02a981 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -2,6 +2,5 @@ - diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 66cbfe7..27d97e7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,15 +9,12 @@ trigger: - release-* paths: exclude: - - .github_changelog_generator - .gitignore - CHANGELOG.md - - CODE_OF_CONDUCT.md - LICENSE.md - README.md - NuGet.Config - assets/* - - config/* - .github/* # PR always trigger build