From a109fea5ca6c8ff2ebe2cc032a0410d2cd4145d0 Mon Sep 17 00:00:00 2001 From: Cramelolo Date: Wed, 2 Dec 2026 02:38:29 +0700 Subject: [PATCH 1/3] Ignore local data/ and OpenWA reference clone (#1) Two .gitignore exceptions for local artifacts that must stay out of the repo: - /data/ holds hand-written contact lists with real phone numbers (PII), root-anchored so a nested project's own data/ directory stays tracked. - /OpenWA/ is a third-party reference clone kept only for reading source. Squash merge of #1 (the GitHub API merge was refused by the org's OAuth App access restrictions). Generated with Codebuff Co-Authored-By: Codebuff --- .gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 1fb605d51b..d297b798d9 100644 --- a/.gitignore +++ b/.gitignore @@ -126,3 +126,11 @@ scripts/identity/out/ # Ad creative projects (Remotion, npm-only, not Bun workspaces): renders and deps stay local ad-creatives/*/out/ ad-creatives/*/node_modules/ + +# Local contact data holds real phone numbers (PII). Root-anchored so it never +# matches a nested project's own data/ directory. +/data/ + +# Reference clone of a third-party repo kept locally for reading; never part of +# this project's source. +/OpenWA/ From ef4d1167177ca48f0db5eed5333e81af945782d7 Mon Sep 17 00:00:00 2001 From: Cramelolo Date: Wed, 2 Dec 2026 03:16:54 +0700 Subject: [PATCH 2/3] Add one-shot workflow to mirror all upstream branches and tags [mirror] --- .github/workflows/mirror-upstream.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/mirror-upstream.yml diff --git a/.github/workflows/mirror-upstream.yml b/.github/workflows/mirror-upstream.yml new file mode 100644 index 0000000000..f038012ccc --- /dev/null +++ b/.github/workflows/mirror-upstream.yml @@ -0,0 +1,31 @@ +name: Mirror upstream freebuff + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: mirror-upstream + cancel-in-progress: false + +jobs: + mirror: + if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[mirror]') + runs-on: ubuntu-latest + steps: + - name: Copy every branch and tag from CodebuffAI/freebuff + env: + MIRROR_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -u + TARGET="https://x-access-token:${MIRROR_TOKEN}@github.com/cramelolo291-bot/freebuff.git" + git clone --bare --quiet https://github.com/CodebuffAI/freebuff.git upstream.git + cd upstream.git + git push --quiet "$TARGET" 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*' \ + || echo "note: some refs were rejected (identical or not fast-forward)" + echo "Total refs now in cramelolo291-bot/freebuff:" + git ls-remote --heads --tags "$TARGET" | wc -l From aa54b619c2195c3d58f7574a8688ef9c89c7c282 Mon Sep 17 00:00:00 2001 From: Cramelolo Date: Wed, 2 Dec 2026 03:23:50 +0700 Subject: [PATCH 3/3] Remove mirror helper workflow (Actions token is read-only; refs mirrored via deploy key instead) --- .github/workflows/mirror-upstream.yml | 31 --------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/mirror-upstream.yml diff --git a/.github/workflows/mirror-upstream.yml b/.github/workflows/mirror-upstream.yml deleted file mode 100644 index f038012ccc..0000000000 --- a/.github/workflows/mirror-upstream.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Mirror upstream freebuff - -on: - push: - branches: [main] - workflow_dispatch: - -permissions: - contents: write - -concurrency: - group: mirror-upstream - cancel-in-progress: false - -jobs: - mirror: - if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[mirror]') - runs-on: ubuntu-latest - steps: - - name: Copy every branch and tag from CodebuffAI/freebuff - env: - MIRROR_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -u - TARGET="https://x-access-token:${MIRROR_TOKEN}@github.com/cramelolo291-bot/freebuff.git" - git clone --bare --quiet https://github.com/CodebuffAI/freebuff.git upstream.git - cd upstream.git - git push --quiet "$TARGET" 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*' \ - || echo "note: some refs were rejected (identical or not fast-forward)" - echo "Total refs now in cramelolo291-bot/freebuff:" - git ls-remote --heads --tags "$TARGET" | wc -l