Merge branch 'chore/repo-hygiene' into 'main'

chore: dependabot grouping + honest opt-in GitLab CI

See merge request pezkuwichain/pezkuwi-sdk!2
This commit is contained in:
pezkuwichain committed 2026-07-25 00:42:06 +00:00
commit baea6b819c
2 files changed
+35 -13

No files matched your search

+25 -13
View File
@@ -1,31 +1,43 @@
version: 2 version: 2
updates: updates:
# Update github actions: # GitHub Actions — one grouped PR/week for all workflow action bumps.
- package-ecosystem: github-actions - package-ecosystem: github-actions
directory: '/' directory: '/'
labels: ["A1-insubstantial", "R0-no-crate-publish-required"] labels: ["A1-insubstantial", "R0-no-crate-publish-required"]
schedule: schedule:
interval: weekly interval: weekly
open-pull-requests-limit: 3
groups: groups:
ci_dependencies: ci_dependencies:
patterns: patterns:
- "*" - "*"
# Update Rust dependencies:
# Rust workspace (root). Collapse the routine churn into TWO grouped PRs a week
# (minor/patch together, major together) instead of one PR per crate — otherwise
# every unrelated bump opens its own branch and floods the repo (the reason we had
# to batch-close a pile of them). Majors stay in their own group so they still get
# a deliberate review before merge.
- package-ecosystem: "cargo" - package-ecosystem: "cargo"
directory: "/" directory: "/"
labels: ["A1-insubstantial", "R0-no-crate-publish-required"] labels: ["A1-insubstantial", "R0-no-crate-publish-required"]
schedule: schedule:
interval: "weekly" interval: "weekly"
open-pull-requests-limit: 5
groups: groups:
# We assume these crates to be semver abiding and can therefore group them together. cargo-minor-patch:
known_good_semver: update-types: ["minor", "patch"]
cargo-major:
update-types: ["major"]
# usdt-bridge is a separate crate/workspace with its own Cargo.lock; group its bumps
# so the bridge never spawns per-crate PRs of its own (e.g. the stray rand/rustls ones).
- package-ecosystem: "cargo"
directory: "/tools/usdt-bridge"
labels: ["A1-insubstantial"]
schedule:
interval: "weekly"
open-pull-requests-limit: 3
groups:
bridge-deps:
patterns: patterns:
- "syn" - "*"
- "quote"
- "log"
- "paste"
- "*serde*"
- "clap"
update-types:
- "minor"
- "patch"
+10
View File
@@ -33,6 +33,16 @@ variables:
# ── Workflow: avoid duplicate pipelines ─────────────────────────────────────── # ── Workflow: avoid duplicate pipelines ───────────────────────────────────────
workflow: workflow:
rules: rules:
# OPT-IN. This repo is a mirror of github.com/pezkuwichain/pezkuwi-DKS, where the
# authoritative full CI already runs on the identical code (github public runners +
# self-hosted substrate-build / dks-runner-1). Reproducing that heavy pipeline here
# needs self-hosted GitLab runners tagged `pezkuwi-runner` (none are registered on
# this namespace) plus CI minutes for the light jobs (the shared-runner quota is
# exhausted). Rather than auto-run a pipeline that can never pass, it is gated:
# set the CI/CD variable RUN_GITLAB_CI=true (Settings > CI/CD > Variables) once a
# `pezkuwi-runner` is registered and minutes are available, then it runs as below.
- if: '$RUN_GITLAB_CI != "true"'
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_IID - if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/ - if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/