Skip to content
Closed
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
38 changes: 38 additions & 0 deletions .github/workflows/blackroad-upstream-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: BlackRoad Upstream Sync
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
Comment on lines +1 to +12

Copilot AI Jan 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repo’s existing .github/workflows/lockdown.yml indicates GitHub is intended to be a read-only mirror. This workflow requests write permissions (contents/pull-requests) and pushes/creates PRs on a schedule, which conflicts with that policy and could cause unexpected changes on the mirror. Please remove this workflow or disable write operations for this repository.

Copilot uses AI. Check for mistakes.
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git config user.name "BlackRoad Sync Bot"
git config user.email "sync@blackroad.io"
- name: Sync from upstream
run: |
UPSTREAM=$(gh api repos/${{ github.repository }} --jq '.parent.full_name // empty')
[ -z "$UPSTREAM" ] && exit 0
git remote add upstream https://github.com/$UPSTREAM.git || true
git fetch upstream
BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
CHANGES=$(git rev-list --count HEAD..upstream/$BRANCH 2>/dev/null || echo "0")
[ "$CHANGES" = "0" ] && echo "✅ Up to date" && exit 0
if git merge upstream/$BRANCH -m "🔄 Auto-sync from upstream ($CHANGES commits)"; then
git push origin $BRANCH
echo "✅ Synced $CHANGES commits"
else
git merge --abort
B="sync-$(date +%Y%m%d-%H%M)"
git checkout -b $B && git reset --hard upstream/$BRANCH && git push -u origin $B
gh pr create --title "🔄 Upstream sync needs merge" --body "Automated sync has conflicts. Please merge manually." --head $B --base $BRANCH
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52 changes: 52 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy to Cloudflare Pages

on:
push:
branches: [main, master]
pull_request:

Comment on lines +1 to +7

Copilot AI Jan 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this repository’s existing "Repo Lockdown" workflow states GitHub is a read-only mirror, adding a deployment workflow that runs on pushes/PRs appears inconsistent with the repo’s intended use and can add CI noise/failures. If this is meant for a separate fork/site repo, it should not be introduced here (or should be gated/disabled accordingly).

Copilot uses AI. Check for mistakes.
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Copilot AI Jan 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow uses actions/checkout@v3, while other workflows in this repo already use actions/checkout@v4. Please bump to v4 to stay current and consistent (and to pick up security/bug fixes).

Suggested change
- uses: actions/checkout@v3
- uses: actions/checkout@v4

Copilot uses AI. Check for mistakes.

- name: Brand Compliance Check
run: |
echo "🎨 Checking BlackRoad brand compliance..."
if grep -r "#FF9D00\|#FF6B00\|#FF0066\|#FF006B\|#D600AA\|#7700FF\|#0066FF" . \
--include="*.html" --include="*.css" --include="*.js" --include="*.jsx" --include="*.tsx" 2>/dev/null; then
echo "❌ FORBIDDEN COLORS FOUND! Must use official BlackRoad colors:"
echo " ✅ Hot Pink: #FF1D6C"
echo " ✅ Amber: #F5A623"
echo " ✅ Electric Blue: #2979FF"
echo " ✅ Violet: #9C27B0"
exit 1
fi
Comment on lines +14 to +25

Copilot AI Jan 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Brand Compliance Check" will fail on the current repo: the forbidden color list includes "#0066FF", which already exists in the tree (e.g., extras/source/misc_config/wizard/form/styles/bgr.css and ice.css). As written, this will break CI for every run. Either remove this check or scope it to the relevant website/app directories where the BlackRoad palette applies, and/or adjust the forbidden list.

Copilot uses AI. Check for mistakes.
echo "✅ Brand compliance check passed"

- name: Setup Node.js
uses: actions/setup-node@v3

Copilot AI Jan 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/setup-node@v3 is deprecated/outdated compared to the current major (v4). Please update to actions/setup-node@v4 for the maintained release line and consistency with other updated actions.

Suggested change
uses: actions/setup-node@v3
uses: actions/setup-node@v4

Copilot uses AI. Check for mistakes.
with:
node-version: '18'

- name: Install dependencies
run: |
if [ -f "package.json" ]; then
npm install
fi

- name: Build
run: |
if [ -f "package.json" ] && grep -q '"build"' package.json; then
npm run build
fi

- name: Deploy to Cloudflare Pages
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
echo "🚀 Would deploy to Cloudflare Pages here"
echo " (Requires org secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)"
Loading
Loading