From c4ddeec7320aa0b8765a78c1df72a6c264b0e43a Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 10:20:35 +0900 Subject: [PATCH] chore: update rust dependency (#1938) * chore: update rust dependency * chore: add label sync * chore: add Type * feat: add labels --- .github/dependabot.yml | 56 ++++++++++++++++------------- .github/mergeable.yml | 2 +- .github/release.yml | 23 ++++++++---- .github/workflows/actionlint.yml | 4 +-- .github/workflows/bump-schedule.yml | 2 +- .github/workflows/bump.yml | 10 +++--- .github/workflows/cspell.yml | 2 +- .github/workflows/sync-labels.yml | 16 +++++++++ .github/workflows/tauri.yaml | 4 +-- 9 files changed, 75 insertions(+), 44 deletions(-) create mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1fa9d524..702ddf41 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,32 +1,38 @@ version: 2 updates: -- package-ecosystem: github-actions - directory: '/' - schedule: - interval: daily - time: '03:00' - timezone: 'Asia/Tokyo' -- package-ecosystem: npm - directory: '/' - schedule: - interval: daily - time: '03:00' - timezone: 'Asia/Tokyo' - groups: - tauri-apps: + - package-ecosystem: cargo + directory: / + labels: + - "Type: Maintenance" + schedule: + interval: daily + - package-ecosystem: github-actions + directory: "/" + labels: + - "Type: Maintenance" + schedule: + interval: daily + - package-ecosystem: npm + directory: "/" + labels: + - "Type: Maintenance" + schedule: + interval: daily + groups: + tauri-apps: patterns: - - "@tauri-apps*" - preact: + - "@tauri-apps*" + preact: patterns: - - "@preact*" - - "preact" - 9renpoto: + - "@preact*" + - "preact" + 9renpoto: patterns: - - "@9renpoto*" - storybook: + - "@9renpoto*" + storybook: patterns: - - "@storybook*" - - "storybook" + - "@storybook*" + - "storybook" update-types: - - "minor" - - "patch" + - "minor" + - "patch" diff --git a/.github/mergeable.yml b/.github/mergeable.yml index 02738e4e..cf6f81f7 100644 --- a/.github/mergeable.yml +++ b/.github/mergeable.yml @@ -4,5 +4,5 @@ mergeable: validate: - do: label must_include: - regex: bug|documentation|enhancement + regex: ^Type|bug|documentation|enhancement message: must include types diff --git a/.github/release.yml b/.github/release.yml index 53400a48..71e7fa4b 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -7,15 +7,24 @@ changelog: authors: - octocat categories: - - title: ':bug: Type: Bug' + - title: ":boom: Type: Breaking Change" labels: - - 'bug' - - title: ':memo: Documentation' + - "Type: Breaking Change" + - title: ":bug: Type: Bug" labels: - - 'documentation' - - title: ':rocket: Type: Feature' + - "Type: Bug" + - "bug" + - title: ":house: Refactoring" labels: - - 'enhancement' + - "Type: Refactoring" + - title: ":memo: Documentation" + labels: + - "Type: Documentation" + - "documentation" + - title: ":rocket: Type: Feature" + labels: + - "Type: Feature" + - "enhancement" - title: Other Changes labels: - - '*' + - "*" diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index a343b3ba..2d9fa637 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -3,8 +3,8 @@ name: actionlint on: pull_request: paths: - - '.github/actions/**' - - '.github/workflows/**' + - ".github/actions/**" + - ".github/workflows/**" jobs: actionlint: diff --git a/.github/workflows/bump-schedule.yml b/.github/workflows/bump-schedule.yml index 22a94406..a4bfe1df 100644 --- a/.github/workflows/bump-schedule.yml +++ b/.github/workflows/bump-schedule.yml @@ -2,7 +2,7 @@ name: Bump version (cron) on: schedule: - - cron: '15 3 * * TUE' + - cron: "15 3 * * TUE" jobs: scheduled_bump: diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 211d1d94..2f7c0c4e 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -4,9 +4,9 @@ on: workflow_dispatch: inputs: semver: - description: 'Which SemVer' + description: "Which SemVer" required: true - default: 'patch' + default: "patch" type: choice options: - major @@ -80,10 +80,10 @@ jobs: with: base: main branch: main-${{ steps.get_version.outputs.NEW_VERSION }} - commit-message: 'bump: v${{ steps.get_version.outputs.NEW_VERSION }}' + commit-message: "bump: v${{ steps.get_version.outputs.NEW_VERSION }}" body: ${{ steps.get_release_note.outputs.result }} - title: 'chore: bump v${{ steps.get_version.outputs.NEW_VERSION }}' + title: "chore: bump v${{ steps.get_version.outputs.NEW_VERSION }}" labels: | documentation draft: true - milestone: 'v${{ steps.get_version.outputs.NEW_VERSION }}' + milestone: "v${{ steps.get_version.outputs.NEW_VERSION }}" diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index 0d3d2dc8..71feda22 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -1,4 +1,4 @@ -name: 'Check spelling' +name: "Check spelling" on: pull_request: diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 00000000..7b297f29 --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -0,0 +1,16 @@ +name: Sync labels +on: + workflow_dispatch: + +permissions: + issues: write + +jobs: + labels: + runs-on: ubuntu-latest + + steps: + - uses: EndBug/label-sync@v2 + with: + config-file: https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json + delete-other-labels: true diff --git a/.github/workflows/tauri.yaml b/.github/workflows/tauri.yaml index c13d93f0..996704e3 100644 --- a/.github/workflows/tauri.yaml +++ b/.github/workflows/tauri.yaml @@ -2,8 +2,8 @@ name: Node and Rust on: pull_request: paths: - - 'apps/desktop/**' - - 'Cargo.toml' + - "apps/desktop/**" + - "Cargo.toml" push: branches: - main