Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

feat: update gitignore to exclude .freebuff and enable branch selection via comment in workflow

Rishabh Bajpaibf7b20e2e7dc
diff --git a/.github/workflows/chanakya.yml b/.github/workflows/chanakya.yml
index ff2b431..08c76bf 100644
--- a/.github/workflows/chanakya.yml
+++ b/.github/workflows/chanakya.yml
@@ -141,10 +141,22 @@ jobs:
contents: read
issues: write
steps:
+ - name: Extract branch name from comment
+ id: extract-branch
+ run: |
+ COMMENT_BODY="${{ github.event.comment.body }}"
+ # Extract branch name after "wrt" keyword (supports alphanumeric, underscores, hyphens, slashes)
+ if [[ "$COMMENT_BODY" =~ wrt[[:space:]]+([a-zA-Z0-9_/-]+) ]]; then
+ echo "branch=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT
+ else
+ echo "branch=" >> $GITHUB_OUTPUT
+ fi
+ shell: bash
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
+ ref: ${{ steps.extract-branch.outputs.branch || github.event.repository.default_branch }}
- name: Chanakya issue analysis
run: |
export HOME="${CHANAKYA_HOME:-$HOME}"
diff --git a/.gitignore b/.gitignore
index 226886b..f720aff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -114,3 +114,4 @@ MARKETING_PLAYBOOK.md
.vscode/
docs/benchmark
docs/WAKE_WORD_PLAN.md
+.freebuff
\ No newline at end of file