From 5ec8e911aac27744e5dfd6775fdca9cbcfb2f764 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Sat, 4 Jan 2025 18:16:59 +0300 Subject: [PATCH] ci: A bunch of minor CI changes (#378) --- .github/labeler.yml | 8 ++++---- .github/pr-title-checker-config.json | 12 ++++-------- .github/pull_request_template.md | 17 ++++++++++++----- .github/release.yml | 14 +++++++++----- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 6d5464d8c..a333a2675 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,14 +1,14 @@ "PR: Docs": - changed-files: - - any-glob-to-all-files: ['docs/*', 'guides/*', '**/*.md'] + - any-glob-to-any-file: ['docs/*', 'guides/*', '**/*.md'] -"PR: Chore": +"PR: CI": - changed-files: - - any-glob-to-all-files: ['.github/*', '**/*.yml', '.gitattributes', '.gitignore'] + - any-glob-to-any-file: ['.github/*', '**/*.yml', '.gitattributes', '.gitignore'] "PR: JSON": - changed-files: - - all-globs-to-all-files: ['**/*.json'] + - all-globs-to-any-file: ['**/*.json'] "PR: Audio": - changed-files: diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json index e0fc739c7..be898e952 100644 --- a/.github/pr-title-checker-config.json +++ b/.github/pr-title-checker-config.json @@ -1,12 +1,8 @@ { - "LABEL": { - "name": "", - "color": "EEEEEE" - }, "CHECKS": { - "regexp": "(feat|fix|ci|chore|docs|test|refactor|revert)(\\([^\\)]+\\))?\\!?: .{1,}$|(?:Bump .+)$|^Release [0-9]+\\.[0-9]+\\.[0-9]+$|^Merge master into develop" + "regexp": "((feat|fix|ci|chore|docs|test|refactor|revert|style|perf|build)(\\(.*\\))?: )|Merge branch" }, - "MESSAGES": { - "failure": "Invalid PR Title. Please use the following formats: 'commit type(area of change(optional)): Title'. Refer to the list of [conventional commit types](https://github.com/pvdlg/conventional-commit-types?tab=readme-ov-file#commit-types)." - } + "MESSAGES": { + "failure": "Invalid PR Title. Please use the following formats: `(): `. Refer to the list of [conventional commit types](https://github.com/pvdlg/conventional-commit-types?tab=readme-ov-file#commit-types)." + } } diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index c78f7d5a6..5ce87964a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,11 +1,18 @@ - - - - - ## Description of changes - ## Reasons for changes - ## Related links - +## How have you tested your changes? +- [ ] Compile +- [ ] New game +- [ ] Next turn +- [ ] Space Travel +- [ ] Ground Battle + + + + + + diff --git a/.github/release.yml b/.github/release.yml index 8879a9ce6..4b0f01388 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -1,32 +1,36 @@ -# .github/release.yml - changelog: exclude: labels: - - "PR: Docs" - - "PR: Code Style" - "PR: Chore" - - "PR: CI" + categories: - title: Possibly Breaking Changes labels: - "PR: Breaking!" + - title: New/Changed labels: - "PR: Feature" - "PR: Enhancement" - "PR: Balance" - "PR: Misc Change" + - title: Fixes labels: - "PR: Fix" + - title: Under The Hood - Important! labels: - "PR: Major Code Changes" + - title: Under The Hood labels: - "PR: Refactor" - "PR: Performance" + - "PR: Code Style" + - "PR: Docs" + - "PR: CI" + - title: Other Changes labels: - "*"