diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index ec55039da..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: 2 -updates: - - package-ecosystem: npm - directory: '/' - schedule: - interval: daily - time: '01:00' - timezone: 'Europe/Berlin' - cooldown: - default-days: 4 - groups: - docusaurus: - patterns: ['@docusaurus/*'] - - package-ecosystem: github-actions - directory: '/' - schedule: - interval: daily - time: '01:00' - timezone: 'Europe/Berlin' - cooldown: - default-days: 4 - groups: - codeql: - patterns: - - 'github/codeql-action/*' - diff --git a/.github/renovate.jsonc b/.github/renovate.jsonc new file mode 100644 index 000000000..bdcd703cb --- /dev/null +++ b/.github/renovate.jsonc @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "github>sap/ai-sdk-js:.github/renovate.jsonc", + "group:docusaurusMonorepo" + ] +} diff --git a/.github/workflows/auto-lint-fix.yml b/.github/workflows/auto-lint-fix.yml index 274cc6b13..e78de6d23 100644 --- a/.github/workflows/auto-lint-fix.yml +++ b/.github/workflows/auto-lint-fix.yml @@ -9,7 +9,7 @@ permissions: {} jobs: fix-lint: - if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork + if: github.event.pull_request.user.type != 'Bot' && !github.event.pull_request.head.repo.fork runs-on: ubuntu-latest permissions: contents: read # all write operations use app token diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1096720b..f4e0980e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,27 +77,3 @@ jobs: run: npm ci - name: Build docs run: npm run build - - dependabot: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} - needs: [build] - permissions: - pull-requests: write - contents: write - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 - with: - github-token: '${{ secrets.GITHUB_TOKEN }}' - - name: Approve a PR - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: gh pr review --approve "$PR_URL" - - name: Enable auto-merge for Dependabot PRs - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: gh pr merge --auto --squash "$PR_URL"