Skip to content

Directory restructure + RAG token budget + persona recovery #555

Directory restructure + RAG token budget + persona recovery

Directory restructure + RAG token budget + persona recovery #555

Workflow file for this run

name: PR Labeler
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
label-pr:
runs-on: ubuntu-latest
# Only run labeler on the main repository, not on forks
if: github.repository_owner == 'CambrianTech'
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Label PRs based on files changed
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
sync-labels: true
continue-on-error: true # Don't fail the workflow if labeling fails
- name: Add size label
uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size: XS'
xs_max_size: 10
s_label: 'size: S'
s_max_size: 50
m_label: 'size: M'
m_max_size: 250
l_label: 'size: L'
l_max_size: 500
xl_label: 'size: XL'
fail_if_xl: false
continue-on-error: true # Don't fail the workflow if labeling fails