Skip to content

Commit 9ebb0f4

Browse files
chore: Remove AI reviewer (#175)
1 parent 844bd95 commit 9ebb0f4

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

bitrise.yml

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -739,78 +739,6 @@ workflows:
739739
'\[Bitrise Build Cache\].*Request metadata invocationId' \
740740
'\[Bitrise Analytics\].*🤖 Bitrise analytics enabled for tasks.*Invocation ID: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
741741
- deploy-to-bitrise-io@2: {}
742-
743-
ai_pr_summary:
744-
triggers:
745-
# run for pull requests; changed_files filter exposes the list of changed files
746-
pull_request:
747-
- target_branch: '*'
748-
source_branch: '*'
749-
changed_files: '*'
750-
# Set status_report_name to report the status of this workflow separately.
751-
status_report_name: 'AI Review'
752-
# Simple Medium Linux machine is enough
753-
meta:
754-
bitrise.io:
755-
machine_type_id: g2.linux.medium
756-
stack: linux-docker-android-22.04
757-
envs:
758-
- GITHUB_TOKEN: $AI_GITHUB_TOKEN
759-
- LITELLM_API_KEY: $LITELLM_API_KEY
760-
- PUBSUB_TOPIC_ID: bitcode-analytics
761-
- PUBSUB_PROJECT_ID: ip-ai-dev
762-
- PUBSUB_CREDENTIALS_JSON_B64: $AI_PUBSUB_CREDENTIALS_JSON_B64
763-
steps:
764-
- activate-ssh-key@4:
765-
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
766-
767-
768-
title: Generate AI Review for PR
769-
inputs:
770-
- content: |-
771-
#!/bin/bash
772-
set -e
773-
774-
sudo apt update
775-
sudo apt install ripgrep -y
776-
777-
# Parse repository name from repo URL (works for SSH & HTTPS)
778-
REPO_URL="${GIT_REPOSITORY_URL}"
779-
REPO=$(echo "$REPO_URL" | sed -E 's#(git@|https://)([^/:]+)[/:]([^/]+)/([^.]+)(\.git)?#\3/\4#')
780-
781-
# 1. Unshallow the repo if it's a shallow clone (safe to run even if already full)
782-
git fetch --unshallow || true
783-
784-
# 2. Fetch all branch refs (this ensures both the PR and the target/destination branch are present)
785-
git fetch origin
786-
787-
# 3. Fetch both relevant branches explicitly for safety (redundant but safe)
788-
git fetch origin "$BITRISEIO_GIT_BRANCH_DEST"
789-
git fetch origin "$BITRISE_GIT_BRANCH"
790-
791-
# 4. Create/reset local branches to match the remote
792-
git checkout -B "$BITRISEIO_GIT_BRANCH_DEST" "origin/$BITRISEIO_GIT_BRANCH_DEST"
793-
git checkout -B "$BITRISE_GIT_BRANCH" "origin/$BITRISE_GIT_BRANCH"
794-
795-
# (Optionally: check out the PR branch if that is the branch you want to analyze)
796-
git checkout "$BITRISE_GIT_BRANCH"
797-
798-
# Download and install bitcode
799-
curl -L https://storage.googleapis.com/bitrise-bitcode/bitcode-linux-amd64.tar.gz -o /tmp/bitcode-linux-amd64.tar.gz
800-
sudo tar -xzf /tmp/bitcode-linux-amd64.tar.gz -C /usr/local/bin/
801-
sudo chmod +x /usr/local/bin/bitcode
802-
803-
# 6. Run your AI reviewer (customize flags as needed)
804-
bitcode review \
805-
--git-provider github \
806-
--pr-id="${BITRISE_PULL_REQUEST}" \
807-
--repo="${REPO}" \
808-
--max-token-usage 5000000 \
809-
--session-id "${BITRISE_BUILD_SLUG}" \
810-
--log-level info
811-
812-
echo "Done! PR reviewed."
813-
814742
e2e-xcode-comp-cache:
815743
meta:
816744
bitrise.io:

0 commit comments

Comments
 (0)