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
112 changes: 53 additions & 59 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,85 @@
---
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
categories:
- title: 'Features'
- title: "Features"
labels:
- 'feat'
- title: 'Bug Fixes'
- "feat"
- title: "Bug Fixes"
labels:
- 'fix'
- 'revert'
- title: 'Maintenance'
- "fix"
- "revert"
- title: "Maintenance"
labels:
- 'build'
- 'chore'
- 'ci'
- 'docs'
- 'style'
- 'refactor'
- 'perf'
- 'test'
- title: 'Wario Client'
labels:
- api-client
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
- "build"
- "chore"
- "ci"
- "docs"
- "style"
- "refactor"
- "perf"
- "test"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
- "major"
minor:
labels:
- 'feat'
- "feat"
patch:
labels:
- 'fix'
- 'build'
- 'chore'
- 'ci'
- 'docs'
- 'style'
- 'refactor'
- 'perf'
- 'test'
- 'revert'
- "fix"
- "build"
- "chore"
- "ci"
- "docs"
- "style"
- "refactor"
- "perf"
- "test"
- "revert"
default: patch
template: |
## Changes

$CHANGES

autolabeler:
- label: 'major'
- label: "major"
body:
- '/BREAKING CHANGE.*/'
- label: 'feat'
- "/BREAKING CHANGE.*/"
- label: "feat"
title:
- '/^feat.*: .*/'
- label: 'fix'
- "/^feat.*: .*/"
- label: "fix"
title:
- '/^fix.*: .*/'
- label: 'chore'
- "/^fix.*: .*/"
- label: "chore"
title:
- '/^chore.*:.*/'
- label: 'ci'
- "/^chore.*:.*/"
- label: "ci"
title:
- '/^ci.*:.*/'
- label: 'build'
- "/^ci.*:.*/"
- label: "build"
title:
- '/^build.*:.*/'
- label: 'style'
- "/^build.*:.*/"
- label: "style"
title:
- '/^style.*:.*/'
- label: 'refactor'
- "/^style.*:.*/"
- label: "refactor"
title:
- '/^refactor.*:.*/'
- label: 'perf'
- "/^refactor.*:.*/"
- label: "perf"
title:
- '/^perf.*:.*/'
- label: 'test'
- "/^perf.*:.*/"
- label: "test"
title:
- '/^test.*:.*/'
- label: 'docs'
- "/^test.*:.*/"
- label: "docs"
title:
- '/^docs.*:.*/'
- label: 'revert'
- "/^docs.*:.*/"
- label: "revert"
title:
- '/^revert.*:.*/'
- label: 'api-client'
files:
- 'wario_client/*'
- "/^revert.*:.*/"
17 changes: 9 additions & 8 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI/CD
name: CI

on: # yamllint disable-line rule:truthy
pull_request:
Expand All @@ -12,10 +12,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

Expand All @@ -38,10 +38,10 @@ jobs:
python-version: ["3.12", "3.13"]
dj-version: [django52, django60]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

Expand Down Expand Up @@ -69,10 +69,10 @@ jobs:
- lint
- test
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

Expand All @@ -83,9 +83,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm install
run: npm ci

- name: Build Tailwind CSS
run: npm run build
Expand Down
39 changes: 14 additions & 25 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,41 @@ name: Release Drafter
on:
push:
branches:
- master
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
- edited
- main
pull_request_target:
types: [opened, reopened, synchronize, edited]

permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
permissions: read-all

jobs:
update_pr_labels:
autolabeler:
name: Update PR Labels
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:

- uses: release-drafter/release-drafter@v5
with:
disable-autolabeler: false
disable-releaser: true
- uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_release_draft:
release_draft:
name: Update Release Draft
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
env:
PUBLISH_DRAFT: false
steps:

- name: Check if a version is cut
if: "contains(github.event.head_commit.message, 'chore(prerelease): Cut Version')"
run: |
echo "PUBLISH_DRAFT=true" >> $GITHUB_ENV

# Drafts your next Release notes
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
with:
disable-autolabeler: true
disable-releaser: false
publish: ${{ env.PUBLISH_DRAFT }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading