From 167b69c4ecee6e0dfad4d7138e3ec3fd4c22170b Mon Sep 17 00:00:00 2001 From: Henk-Jan Lebbink Date: Thu, 23 Jan 2025 16:54:27 +0100 Subject: [PATCH] added release notes automation --- .github/comprehensive-release.yml | 16 ++++++++++++++++ .github/release.yml | 13 +++++++++++++ .github/workflows/label-checker.yaml | 19 +++++++++++++++++++ .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 .github/comprehensive-release.yml create mode 100644 .github/release.yml create mode 100644 .github/workflows/label-checker.yaml create mode 100644 .github/workflows/lint.yml diff --git a/.github/comprehensive-release.yml b/.github/comprehensive-release.yml new file mode 100644 index 00000000..c3799bb9 --- /dev/null +++ b/.github/comprehensive-release.yml @@ -0,0 +1,16 @@ +# Generate release notes using a standard format + +changelog: + categories: + - title: Highlighted Changes + labels: + - highlight + - title: Breaking Changes + labels: + - breaking-change + - title: Security Fixes + labels: + - security-fix + - title: Misc. Fixes and Improvements + labels: + - "*" \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..b62e659b --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,13 @@ +# Generate release notes using a standard format + +changelog: + categories: + - title: Highlighted Changes + labels: + - highlight + - title: Breaking Changes + labels: + - breaking-change + - title: Security Fixes + labels: + - security-fix \ No newline at end of file diff --git a/.github/workflows/label-checker.yaml b/.github/workflows/label-checker.yaml new file mode 100644 index 00000000..129b8c3f --- /dev/null +++ b/.github/workflows/label-checker.yaml @@ -0,0 +1,19 @@ +name: Label Checker +on: + pull_request: + types: + - opened + - synchronize + - labeled + - unlabeled + +jobs: + + check_labels: + name: Check for labels + runs-on: ubuntu-latest + steps: + - uses: docker://agilepathway/pull-request-label-checker:latest + with: + one_of: highlight,breaking-change,security-fix,enhancement,bug + repo_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..59b51b4f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Rust Linters + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +# This ensures that previous jobs for the PR are canceled when the PR is +# updated. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + fmt: + name: rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - run: cargo fmt --all --check