From 56eb235396abecf859c407fe1247817227ba1e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mor=C3=A1vek?= Date: Sat, 20 Feb 2021 16:58:15 +0100 Subject: [PATCH] Enable dependabot --- .github/dependabot.yml | 19 +++++++++++++++++++ .github/workflows/dependabot.yaml | 21 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/dependabot.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..eac70b1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "composer" + directory: "/" + schedule: + interval: "daily" + versioning-strategy: "increase" + open-pull-requests-limit: 10 + allow: + - dependency-type: "development" + ignore: + - dependency-name: "nette/bootstrap" + - dependency-name: "nette/di" + - dependency-name: "nette/schema" + - dependency-name: "nette/component-model" diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml new file mode 100644 index 0000000..1fb5379 --- /dev/null +++ b/.github/workflows/dependabot.yaml @@ -0,0 +1,21 @@ +name: "Dependabot" + +on: + pull_request_target: + +jobs: + auto_merge: + if: ${{ github.actor == 'dependabot[bot]' }} + runs-on: ubuntu-latest + name: "Auto merge" + steps: + - uses: actions/github-script@v3 + with: + github-token: ${{secrets.PERSONAL_REPO_TOKEN}} + script: | + github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: '@dependabot squash and merge' + })