From c1be455ffa7e53ee1a472c4810ba1a0ed5d12c3a Mon Sep 17 00:00:00 2001 From: liblaf Date: Sun, 25 Feb 2024 06:47:56 +0000 Subject: [PATCH] ci(repo): sync with repo template --- .github/dependabot.yaml | 58 ------------------------------------ .github/renovate.json | 5 ++++ .github/workflows/stale.yaml | 17 +++++++++++ .pre-commit-config.yaml | 5 +++- 4 files changed, 26 insertions(+), 59 deletions(-) delete mode 100644 .github/dependabot.yaml create mode 100644 .github/renovate.json create mode 100644 .github/workflows/stale.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 9d60ef44..00000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,58 +0,0 @@ -# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - -version: 2 - -updates: - - package-ecosystem: cargo - directory: / - schedule: - interval: daily - groups: - cargo: - patterns: - - "*" - - - package-ecosystem: gitsubmodule - directory: / - schedule: - interval: daily - groups: - gitsubmodule: - patterns: - - "*" - - - package-ecosystem: github-actions - directory: / - schedule: - interval: daily - groups: - github-actions: - patterns: - - "*" - - - package-ecosystem: gomod - directory: / - schedule: - interval: daily - groups: - gomod: - patterns: - - "*" - - - package-ecosystem: npm - directory: / - schedule: - interval: daily - groups: - npm: - patterns: - - "*" - - - package-ecosystem: pip - directory: / - schedule: - interval: daily - groups: - pip: - patterns: - - "*" diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..ce607d04 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended", "default:automergeAll"], + "gitIgnoredAuthors": ["66853113+pre-commit-ci[bot]@users.noreply.github.com"] +} diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 00000000..c0b49d20 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,17 @@ +name: Stale + +on: + schedule: + - cron: 0 0 * * * + +jobs: + stale: + name: Stale + permissions: + contents: write + issues: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Stale + uses: actions/stale@v9 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index beea7411..a35ef7c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,10 @@ repos: args: - --fix - id: ruff-format + - repo: https://github.com/commitizen-tools/commitizen + rev: v3.15.0 + hooks: + - id: commitizen - repo: https://github.com/koalaman/shellcheck-precommit rev: v0.9.0 hooks: @@ -53,7 +57,6 @@ repos: - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.28.0 hooks: - - id: check-dependabot - id: check-github-workflows - repo: https://github.com/python-poetry/poetry rev: 1.7.1