[codex] Label migration PRs with DB MIGRATION (#1967)

* Add DB MIGRATION PR label

* Broaden DB MIGRATION label coverage

* chore(ci): address DB MIGRATION label review feedback
This commit is contained in:
firat.sertgoz
2026-04-06 19:45:26 +03:00
committed by GitHub
parent 732c23e06b
commit 7be3b910f4
3 changed files with 19 additions and 3 deletions

10
.github/labeler.yml vendored
View File

@@ -1,5 +1,5 @@
# Scope labels for actions/labeler@v6
# Maps file path globs to scope labels. Multiple labels can apply per PR.
# Labels for actions/labeler@v6
# Maps file path globs to labels. Multiple labels can apply per PR.
"scope: agent":
- changed-files:
@@ -164,3 +164,9 @@
- any-glob-to-any-file:
- Cargo.toml
- Cargo.lock
"DB MIGRATION":
- changed-files:
- any-glob-to-any-file:
- migrations/**
- src/db/libsql_migrations.rs

View File

@@ -62,6 +62,9 @@ create "scope: ci" "546E7A" "CI/CD workflows"
create "scope: docs" "78909C" "Documentation"
create "scope: dependencies" "90A4AE" "Dependency updates"
echo "==> Creating coordination labels..."
create "DB MIGRATION" "C62828" "PR adds or modifies PostgreSQL or libSQL migration definitions"
echo "==> Creating workflow labels..."
create "skip-regression-check" "9E9E9E" "Acknowledged: fix without regression test"

View File

@@ -6,13 +6,20 @@ on:
permissions:
contents: read
issues: write
pull-requests: write
jobs:
scope:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
- name: Ensure DB MIGRATION label exists
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: gh label create "DB MIGRATION" --repo "$REPO" --color C62828 --description "PR adds or modifies PostgreSQL or libSQL migration definitions" --force
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
with:
configuration-path: .github/labeler.yml
sync-labels: false # additive only — never remove scope labels