diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 64533c1..e454062 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,17 +4,35 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: daily + interval: "weekly" + day: "tuesday" time: "03:00" + groups: + patches-and-minor-upgrades: + update-types: + - "minor" + - "patch" - package-ecosystem: pip directory: "/.github/workflows" schedule: - interval: daily + interval: "weekly" + day: "tuesday" time: "03:30" + groups: + patches-and-minor-upgrades: + update-types: + - "minor" + - "patch" - package-ecosystem: "pip" directory: "/" schedule: - interval: daily + interval: "weekly" + day: "tuesday" time: "04:00" + groups: + patches-and-minor-upgrades: + update-types: + - "minor" + - "patch" diff --git a/.github/labels.yml b/.github/labels.yml index 10b15f4..544a10a 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -54,6 +54,3 @@ - name: "skip-changelog" color: fef2c0 description: "This issue or PR is exempted from the release notes." -- name: "automerge" - color: fef2c0 - description: "Merge this PR automatically when there are no conflicts and all required checks are passed." diff --git a/.github/workflows/auto-merge.yaml b/.github/workflows/auto-merge.yaml deleted file mode 100644 index 1f011dc..0000000 --- a/.github/workflows/auto-merge.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Auto Merge - -on: - pull_request: - types: [opened, edited, labeled, unlabeled, synchronize, ready_for_review, reopened, unlocked] - pull_request_review: - types: [submitted] - check_suite: - types: [completed] - status: - -jobs: - auto-merge: - name: Merge "automerge" labeled PRs - runs-on: ubuntu-latest - - steps: - - name: Check and merge - uses: pascalgn/automerge-action@4346d0b231a3ff92a91b825b9e4a22370f0263af #0.16.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml deleted file mode 100644 index c7e8e9d..0000000 --- a/.github/workflows/dependabot.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: Dependabot - -on: - pull_request: - branches: - - master - -permissions: - pull-requests: write - contents: write - -jobs: - - auto-merge-patches: - name: Auto merge patches - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - name: Fetch dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 #1.6.0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Approve a PR - if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }} - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{ github.event.pull_request.html_url }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Auto-merge if patch - if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }} - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}