From 1be8483c0d52826334977879b345f5187c62203e Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Wed, 1 Jul 2020 20:36:59 -0700 Subject: [PATCH 1/6] Create release-drafter.yml --- .github/release-drafter.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..44d7f26f --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,39 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +template: | + # Changelog + $CHANGES + + See details of [all code changes](https://github.com/github/super-linter/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since last release + +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + labels: + - 'infrastructure' + - 'automation' + - 'documentation' + - title: '🏎 Performance' + label: 'performance' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +version-resolver: + major: + labels: + - 'type: breaking' + minor: + labels: + - 'type: enhancement' + patch: + labels: + - 'type: bug' + - 'type: maintenance' + - 'type: documentation' + default: patch From dc13d9bf3149f06e06cf43bb1a8bbd1269741a9b Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Wed, 1 Jul 2020 20:44:16 -0700 Subject: [PATCH 2/6] Create draft-release.yml --- .github/workflows/draft-release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/draft-release.yml diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml new file mode 100644 index 00000000..2c30bcdb --- /dev/null +++ b/.github/workflows/draft-release.yml @@ -0,0 +1,16 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a1523519edc7508415ebc5aad60e7f79b4b6c095 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Wed, 1 Jul 2020 20:57:01 -0700 Subject: [PATCH 3/6] Request labeling on all PRs --- .github/pull_request-template.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/pull_request-template.md diff --git a/.github/pull_request-template.md b/.github/pull_request-template.md new file mode 100644 index 00000000..217c1547 --- /dev/null +++ b/.github/pull_request-template.md @@ -0,0 +1,13 @@ + +Fixes # + + +## Proposed Changes + + - + - + - + +## Readiness Checklist + - [ ] Label as `breaking` if this is a large fundamental change + - [ ] Label as either `automation`, `bug`, `documentation`, `enhancement`, `infrastructure`, or `performance` From c82d932e32191f358cd1359126bd149139615629 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Wed, 1 Jul 2020 21:03:31 -0700 Subject: [PATCH 4/6] Auto release drafting note --- .github/CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 75434287..64a37fb3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -32,7 +32,7 @@ Draft pull requests are also welcome to get feedback early on, or if there is so ## Releasing If you are the current maintainer of this action: 1. If a major version number change: Update `README.md` and the wiki to reflect new version number in the example workflow file sections -2. Draft [Release](https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository) with a summarized changelog +2. Draft [Releases](https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository) are created automatically. They just need to be checked over for accuracy before making it official. 3. Ensure you check the box for [publishing to the marketplace](https://help.github.com/en/actions/creating-actions/publishing-actions-in-github-marketplace#publishing-an-action) 4. A GitHub Action will Publish the Docker image to GitHub Package Registry once a Release is created 5. A GitHub Action will Publish the Docker image to Docker Hub once a Release is created From 2a4bbd046348b77a8fe1c8ad27a548c1be7705f1 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Thu, 2 Jul 2020 08:46:42 -0700 Subject: [PATCH 5/6] formatting updates --- .github/pull_request-template.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/pull_request-template.md b/.github/pull_request-template.md index 217c1547..9c60e848 100644 --- a/.github/pull_request-template.md +++ b/.github/pull_request-template.md @@ -1,13 +1,16 @@ + + Fixes # + ## Proposed Changes - - - - - - +- +- +- ## Readiness Checklist - - [ ] Label as `breaking` if this is a large fundamental change - - [ ] Label as either `automation`, `bug`, `documentation`, `enhancement`, `infrastructure`, or `performance` +- [ ] Label as `breaking` if this is a large fundamental change +- [ ] Label as either `automation`, `bug`, `documentation`, `enhancement`, `infrastructure`, or `performance` From b3e7efc7df1b7fda8df8e8034cbc31c960757b08 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Thu, 2 Jul 2020 22:35:27 -0700 Subject: [PATCH 6/6] Typo Co-authored-by: Yogi --- .github/pull_request-template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request-template.md b/.github/pull_request-template.md index 9c60e848..b6470eb3 100644 --- a/.github/pull_request-template.md +++ b/.github/pull_request-template.md @@ -1,4 +1,4 @@ - + Fixes #