mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
ci: require Resolves LIT-XXXX in PRs targeting litellm_internal_staging
This commit is contained in:
parent
76bf280d0a
commit
8b45e54709
1 changed files with 26 additions and 0 deletions
26
.github/workflows/require-linear-ticket.yml
vendored
Normal file
26
.github/workflows/require-linear-ticket.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Require Linear ticket
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, reopened, synchronize]
|
||||
branches:
|
||||
- litellm_internal_staging
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
require-linear-ticket:
|
||||
name: Verify Resolves LIT-XXXX in PR description
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 2
|
||||
steps:
|
||||
- name: Check PR description for Linear ticket reference
|
||||
env:
|
||||
PR_BODY: ${{ github.event.pull_request.body }}
|
||||
run: |
|
||||
if echo "$PR_BODY" | grep -qiE 'Resolves LIT-[0-9]+'; then
|
||||
echo "Found Linear ticket reference."
|
||||
exit 0
|
||||
fi
|
||||
echo "::error::PRs targeting 'litellm_internal_staging' must reference a Linear ticket in the description using the format 'Resolves LIT-XXXX' (e.g. 'Resolves LIT-1234')."
|
||||
exit 1
|
||||
Loading…
Add table
Reference in a new issue