Skip to content

Commit

Permalink
ci: setup release drafter (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz authored Jun 22, 2024
1 parent aa3dc91 commit 8070779
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
61 changes: 61 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'enhancement'
- title: '🏎️ Performance'
labels:
- 'performance'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bug'
- title: '🔨 Refactor'
labels:
- 'refactor'
- title: '📚 Documentation'
labels:
- 'documentation'
- title: '🧰 Maintenance'
labels:
- 'dependencies'
- 'maintenance'
- 'ci'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
autolabeler:
- label: 'fix'
branch:
- '/fix\/.+/'
- label: 'enhancement'
branch:
- '/feat\/.+/'
- label: 'performance'
branch:
- '/perf\/.+/'
- label: 'refactor'
branch:
- '/refactor\/.+/'
- label: 'documentation'
branch:
- '/docs\/.+/'
- label: 'maintenance'
branch:
- '/chore\/.+/'
- '/ci\/.+/'
- '/deps\/.+/'

template: |
## Changelog 📝
$CHANGES
27 changes: 27 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async fn main() -> std::io::Result<()> {

#[cfg(test)]
mod tests {
use crate::{sudoku::generate, sudoku::resolv_backtrack};
use crate::sudoku::{generate, resolv_backtrack};

#[test]
fn board_valid() {
Expand Down

0 comments on commit 8070779

Please sign in to comment.