Add GitHub Copilot setup workflow and bootstrap script#7
Draft
aztr0nutzs with Copilot wants to merge 2 commits into
Draft
Add GitHub Copilot setup workflow and bootstrap script#7aztr0nutzs with Copilot wants to merge 2 commits into
aztr0nutzs with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: aztr0nutzs <239917237+aztr0nutzs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Copilot setup steps workflow file
Add GitHub Copilot setup workflow and bootstrap script
Jan 20, 2026
aztr0nutzs
approved these changes
Jan 20, 2026
Owner
|
Precisely modify Gradle with the following and rerun: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds infrastructure for GitHub Copilot to automatically bootstrap development environments for this hybrid web/Android repository.
Changes
.github/workflows/copilot-setup-steps.yml: GitHub Actions workflow that.nvmrc/.node-versionfiles (defaults to 20)scripts/copilot/setup.sh: Bash bootstrap script thatweb/,frontend/,client/, or repo root forpackage.json)assembleDebug(skips lint/test for speed)gradlew→ skips Android setup)The workflow job is named
copilot-setup-stepsas required by Copilot's detection mechanism.Original prompt
create the following files with the exact specific context below and place in the correct directory: -copilot-setup-steps.yml:
name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
- scripts/copilot/setup.sh
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
- scripts/copilot/setup.sh
jobs:
The job MUST be called
copilot-setup-stepsor it will not be picked up by Copilot.copilot-setup-steps:
runs-on: ubuntu-latest
timeout-minutes: 55
-setup.sh:
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(pwd)"
log() { echo "==> $*"; }
-------------------------
Web setup (Node)
-------------------------
setup_web() {
Detect a likely web root.
Preference order: ./web, ./frontend, ./client, else repo root if package.json exists.
local candidates=("web" "frontend" "client" ".")
local webdir=""
for c in "${candidates[@]}"; do
if [[ -f "$ROOT/$c/package.json" ]]; then
webdir="$ROOT/$c"
break
fi
done
if [[ -z "$webdir" ]]; then
log "Web: no package.json found in common locations; skipping."
return 0
fi
log "Web: detected package.json at $(realpath --relative-to="$ROOT" "$webdir")"
pushd "$webdir" >/dev/null
Enable corepack (pnpm/yarn) if present
if command -v corepack >/dev/null 2>&1; then
corepack enable || true
fi
Auth for private registries if provided (safe: does not print tokens)
if [[ -n "${NPM_TOKEN:-}" ]]; then
log "Web: configuring NPM_TOKEN for private registry access"
# Minimal npm auth line for GitHub Packages / private registries. Adjust registry if needed.
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN" >/dev/null 2>&1 || true
...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.