Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/enforce-pr-target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Enforce PR Target Branch

on:
pull_request:
types: [opened, reopened, synchronize, edited]

jobs:
validate-target-branch:
runs-on: ubuntu-latest
steps:
- name: Validate PR base branch policy
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
ACTOR: ${{ github.actor }}
run: |
echo "Validating PR policy..."
echo "base=${BASE_REF} head=${HEAD_REF} actor=${ACTOR}"

# Standard development flow: PRs target dev.
if [ "${BASE_REF}" = "dev" ]; then
echo "OK: PR targets dev."
exit 0
fi

# Release flow: only GitHub Actions can open release/* PRs to main.
if [ "${BASE_REF}" = "main" ]; then
if [ "${ACTOR}" != "github-actions[bot]" ]; then
echo "ERROR: PRs to main are restricted to github-actions[bot]."
echo "Please open your PR against dev."
exit 1
fi

case "${HEAD_REF}" in
release/*)
echo "OK: Automated release PR to main."
exit 0
;;
*)
echo "ERROR: Automated PRs to main must come from release/* branches."
exit 1
;;
esac
fi

echo "ERROR: Invalid PR base branch '${BASE_REF}'."
echo "PRs must target dev. Only automated release PRs may target main."
exit 1
4 changes: 2 additions & 2 deletions deploy/helm/rag/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: rag
description: A Helm chart for Kubernetes
type: application
version: 0.2.35
appVersion: "0.2.35"
version: 0.2.36
appVersion: "0.2.36"

dependencies:
- name: pgvector
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/rag/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ replicaCount: 1
image:
repository: quay.io/rh-ai-quickstart/llamastack-dist-ui
pullPolicy: Always
tag: 0.2.35
tag: 0.2.36

service:
type: ClusterIP
Expand Down
Loading