mirror of
https://github.com/nearai/ironclaw.git
synced 2026-09-03 08:06:01 +08:00
Re-applies two changes that were reverted on main (92388b7a) to unblock the staging-promote merge. Neither existed on staging: - Fix Telegram message splitting to count UTF-16 code units instead of Unicode scalar values (emoji like 😀 are 2 UTF-16 units, not 1) - Add "DB MIGRATION" auto-label for PRs touching migration files Original commits:6f7575de(#1961),7be3b910(#1967) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
755 B
YAML
26 lines
755 B
YAML
name: "PR: Scope Labels"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
scope:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- 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
|