diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 15d997a..7dd3eeb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,3 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - version: 2 updates: - package-ecosystem: "uv" @@ -12,18 +7,11 @@ updates: groups: minor-and-patch: update-types: - - "patch" - "minor" + - "patch" major: update-types: - "major" - assignees: - - "zoola969" - reviewers: - - "zoola969" - commit-message: - prefix: "deps" - include: "scope" - package-ecosystem: "github-actions" directory: "/" @@ -32,8 +20,8 @@ updates: groups: minor-and-patch: update-types: - - "patch" - "minor" + - "patch" major: update-types: - "major" diff --git a/.github/workflows/bot-automation.yml b/.github/workflows/bot-automation.yml new file mode 100644 index 0000000..48def6b --- /dev/null +++ b/.github/workflows/bot-automation.yml @@ -0,0 +1,22 @@ +name: Bot Automation + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + automation: + runs-on: ubuntu-latest + if: (github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]') + permissions: + pull-requests: write + contents: write + steps: + - uses: hmarr/auto-approve-action@v4 + with: + github-token: ${{ secrets.APPROVE_PAT }} + - name: Enable auto-merge + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}