diff --git a/.github/renovate.json5 b/.github/renovate.json5 deleted file mode 100644 index 287ece69ddec..000000000000 --- a/.github/renovate.json5 +++ /dev/null @@ -1,53 +0,0 @@ -{ - extends: ['config:base'], - timezone: 'Europe/Zurich', - schedule: 'after 5pm on the first day of the month', - labels: ['dependencies'], - separateMajorMinor: true, - separateMinorPatch: true, - prHourlyLimit: 0, - prConcurrentLimit: 0, - lockFileMaintenance: {enabled: true, automerge: true, schedule: 'after 5pm on the first day of the month'}, - baseBranches: ['master', '2.7', '2.6', '2.4'], - 'pre-commit': {enabled: true}, - regexManagers: [ - { - fileMatch: ['^.pre-commit-config.yaml$'], - matchStrings: [" +- '?(?[^' @=]+)(@|==)(?[^' @=]+)'? # (?.+)"], - }, - { - fileMatch: ['^ci/applications-versions.yaml$'], - matchStrings: ['(?[^\\s]+): (?[^\\s]+) # (?[^\\s]+)'], - }, - { - fileMatch: ['^.github/workflows/main.yaml$'], - matchStrings: ["node-version: '(?[^\\s]+).x'"], - depNameTemplate: 'node', - datasourceTemplate: 'node', - }, - ], - packageRules: [ - /** Automerge the patch, the minor and the dev dependency */ - { - matchDepTypes: ['devDependencies'], - automerge: true, - }, - /** Group the patch and the minor */ - { - matchUpdateTypes: ['patch'], - groupName: 'all patch versions', - automerge: true, - }, - { - matchUpdateTypes: ['minor'], - groupName: 'all minor versions', - automerge: true, - }, - /** Accept only the patch on the stabilization branches */ - { - matchBaseBranches: ['/2\\..*/'], - matchUpdateTypes: ['major', 'minor', 'pin', 'digest', 'lockFileMaintenance', 'rollback', 'bump'], - enabled: false, - }, - ], -} diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml deleted file mode 100644 index 27c25667962b..000000000000 --- a/.github/workflows/audit.yaml +++ /dev/null @@ -1,61 +0,0 @@ -name: Audit - -on: - schedule: - - cron: '30 2 * * *' - -jobs: - audit: - runs-on: ubuntu-22.04 - name: Audit - timeout-minutes: 15 - - strategy: - fail-fast: false - matrix: - branch: - - '2.4' - - '2.6' - - '2.7' - - steps: - # Remove Python packages with wriong version - - run: sudo apt-get remove python3-debian python3-distro-info - - run: sudo npm install -g npm@6 - - - run: | - sudo rm /etc/apt/sources.list.d/*.list - sudo apt update - sudo apt install g++-10 libgbm1 graphicsmagick fonts-liberation2 - - - uses: actions/checkout@v3 - with: - ref: ${{ matrix.branch }} - token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }} - - - uses: camptocamp/initialise-gopass-summon-action@v2 - with: - ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}} - github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}} - - - run: python3 -m venv ~/.venv - - run: ~/.venv/bin/pip install --pre c2cciutils[audit] - - run: python3 -m pip install --pre c2cciutils[audit] - - - name: Check .tool-versions file existence - id: tool-versions - uses: andstor/file-existence-action@v2 - with: - files: .tool-versions - - uses: asdf-vm/actions/install@v1 - if: steps.tool-versions.outputs.files_exists == 'true' - - uses: asdf-vm/actions/setup@v1 - if: steps.tool-versions.outputs.files_exists != 'true' - - run: cat /tmp/python-build.*.log - if: failure() - - run: python --version - - - name: Audit - run: ~/.venv/bin/c2cciutils-audit --branch=${{ matrix.branch }} - env: - GITHUB_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }} diff --git a/.github/workflows/auto-review.yaml b/.github/workflows/auto-review.yaml deleted file mode 100644 index 342c350ff077..000000000000 --- a/.github/workflows/auto-review.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Auto reviews updates - -on: - pull_request: - types: - - opened - - reopened - - synchronize - -jobs: - auto-merge: - name: Auto reviews updates - runs-on: ubuntu-22.04 - timeout-minutes: 5 - - steps: - - name: Auto reviews updates - uses: golfzaptw/action-auto-reviews-from-branches@master - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - AUTHOR: renovate[bot] diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 2d6c29aa4e4a..ea959e8eef35 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -1,4 +1,3 @@ ---- name: Backport on: diff --git a/.github/workflows/dependency-auto-review.yaml b/.github/workflows/dependency-auto-review.yaml new file mode 100644 index 000000000000..d09719021d91 --- /dev/null +++ b/.github/workflows/dependency-auto-review.yaml @@ -0,0 +1,25 @@ +name: Auto reviews updates + +on: + pull_request: + types: + - opened + - reopened + +jobs: + auto-merge: + name: Auto reviews updates + runs-on: ubuntu-22.04 + timeout-minutes: 5 + + steps: + - uses: actions/github-script@v6 + with: + script: |- + github.rest.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + event: 'APPROVE', + }) + if: github.event.pull_request.user.login == 'renovate[bot]' diff --git a/ci/config.yaml b/ci/config.yaml index 160c46ffe56a..3462542426b6 100644 --- a/ci/config.yaml +++ b/ci/config.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/c2cciutils/master/c2cciutils/schema.json +# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/c2cciutils/1.4.13/c2cciutils/schema.json checks: codespell: false