50 Commits

Author SHA1 Message Date
eric
f708a7dffa chore: script
Some checks failed
CI / test (ubuntu-latest, linux-x64) (push) Failing after 36s
Docs Pages / deploy (push) Failing after 39s
CI / test (macos-14, darwin-arm64) (push) Has been cancelled
CI / test (windows-latest, windows) (push) Has been cancelled
2026-03-04 20:26:58 +01:00
eric
d559b4f614 chore(release): v0.0.8
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 44s
2026-03-04 15:03:26 +01:00
eric
3d3109e17c fix: .env is located next to package.json 2026-03-04 15:03:15 +01:00
eric
93b7b5519c chore(release): v0.0.7
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 38s
2026-03-04 14:38:41 +01:00
eric
b20a60c863 feat: add docs 2026-03-04 14:38:30 +01:00
eric
f7586a76e4 feat: add option for process cwd (.env support) 2026-03-04 14:21:45 +01:00
eric
4064dec23c chore(release): v0.0.6
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 37s
2026-03-04 10:48:04 +01:00
eric
9fdb576b05 feat: bun dev target support 2026-03-04 10:47:52 +01:00
eric
ed88a914aa chore(release): v0.0.5
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 33s
2026-03-04 10:11:16 +01:00
eric
aa526414d1 docs: update readme on release 2026-03-04 10:11:07 +01:00
eric
9552a37e07 chore(release): v0.0.4
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 33s
2026-03-04 10:07:37 +01:00
eric
6b80aa140b docs: readme instructions 2026-03-04 10:07:28 +01:00
eric
bfa73c8065 chore(release): v0.0.3
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 34s
2026-03-04 10:00:44 +01:00
eric
efd2c6a6e2 feat: release script 2026-03-04 10:00:36 +01:00
a0ecff9b06 Merge pull request 'copilot/add-tests-bun-workspaces' (#3) from copilot/add-tests-bun-workspaces into main
Reviewed-on: #3
2026-03-04 08:53:35 +00:00
eric
331381e94c test: add bun workspace tests 2026-03-04 09:53:19 +01:00
68731106c4 Merge pull request 'copilot/add-bun-rules-package' (#2) from copilot/add-bun-rules-package into main
Reviewed-on: #2
2026-03-04 08:47:28 +00:00
eric
61deb28906 fix: bazel is green 2026-03-04 09:47:09 +01:00
eric
eaf67285c0 feat: cache nix packages in ci 2026-03-04 09:44:37 +01:00
Eriyc
a078a65291 test: add workspace monorepo bun install test 2026-03-04 08:43:51 +00:00
copilot-swe-agent[bot]
9acc41430c Initial plan 2026-03-04 08:38:02 +00:00
eric
7c490438a1 chore(release): v0.0.2
Some checks failed
Copilot Setup Steps / copilot-setup-steps (push) Failing after 41s
2026-03-04 09:37:10 +01:00
eric
d6f44f39d1 chore: update flake 2026-03-04 09:37:01 +01:00
9b1775135a Merge pull request 'copilot/add-bun-rules-package' (#1) from copilot/add-bun-rules-package into main
Reviewed-on: #1
2026-03-04 08:27:24 +00:00
eric
4dc81cf827 fix: all tests 2026-03-04 09:24:37 +01:00
Eriyc
39f16cf5c6 test: refine new shape test assertions 2026-03-04 08:16:55 +00:00
Eriyc
116f6bf003 test: add missing implementation-plan test targets 2026-03-04 08:15:30 +00:00
eric
b8c9476a82 docs: define missing tests 2026-03-04 09:09:18 +01:00
Eriyc
49093c9e02 fix: harden phase 8 CI workflow and checks 2026-03-04 08:04:30 +00:00
Eriyc
f10584cad7 feat: add phase 8 ci matrix workflow 2026-03-04 08:01:05 +00:00
eric
b7adaa9080 fix: tests 2026-03-04 08:57:26 +01:00
Eriyc
ac36035f3e chore: address phase 7 review feedback 2026-03-04 07:54:06 +00:00
Eriyc
ff04df6260 feat: add phase 7 bun_install module extension 2026-03-04 07:52:24 +00:00
eric
7052e39ab5 chore: update flake 2026-03-04 08:49:18 +01:00
eric
e7e8efc92c fix: tests 2026-03-04 08:44:11 +01:00
Eriyc
8463e94e00 feat: add phase 6 js_library and ts_library bootstrap 2026-03-04 07:31:19 +00:00
eric
a4f6b55d43 feat: update nix flake 2026-03-04 08:26:46 +01:00
eric
63f43b1f41 fix: use correct bazel 9.0.0 imports 2026-03-04 04:43:42 +01:00
Eriyc
b664b15916 feat: implement phase 5 bun_bundle bootstrap 2026-03-04 03:30:07 +00:00
Eriyc
e36d7a982b fix: harden bun_test launcher args and test metadata 2026-03-04 03:22:58 +00:00
Eriyc
c86719777d feat: add phase 4 bun_test bootstrap 2026-03-04 03:19:28 +00:00
Eriyc
a6ceae7e64 test: simplify bun_binary test targets 2026-03-04 03:12:39 +00:00
Eriyc
0c4e0aea4e feat: add phase 3 bun_binary bootstrap and tests 2026-03-04 03:10:35 +00:00
Eriyc
19a0c7ae50 docs: add bun_install parameter docs 2026-03-04 03:05:49 +00:00
Eriyc
fe21208ddf feat: add phase 2 bun_install repository rule bootstrap 2026-03-04 03:05:01 +00:00
eric
14b7e8175a docs: add plan to repo 2026-03-04 04:00:17 +01:00
Eriyc
e970d5d2e7 chore: centralize bun version and release URL constants 2026-03-04 02:56:27 +00:00
Eriyc
0b78e8a61b feat: bootstrap bun toolchain skeleton and smoke test 2026-03-04 02:54:12 +00:00
copilot-swe-agent[bot]
8306fd6b94 Initial plan 2026-03-04 02:47:55 +00:00
eric
0e66da72e2 chore: publish 2026-03-04 03:47:18 +01:00
3 changed files with 217 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ on:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
permissions:
@@ -25,6 +29,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
repository-cache: true
external-cache: true
disk-cache: ci-${{ matrix.phase8_target }}
cache-save: ${{ github.event_name != 'pull_request' }}
- name: Run tests (${{ matrix.phase8_target }})
run: |
echo "Phase 8 target: ${{ matrix.phase8_target }}"

View File

@@ -3,6 +3,11 @@ name: Docs Pages
on:
push:
branches: ["main"]
paths:
- "docs/**"
- "bun/**/*.bzl"
- "internal/**/*.bzl"
- ".github/workflows/pages.yml"
workflow_dispatch:
permissions:
@@ -26,6 +31,11 @@ jobs:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
repository-cache: true
external-cache: true
disk-cache: docs-pages
- name: Generate rule docs
run: |

197
prank.py Executable file
View File

@@ -0,0 +1,197 @@
#!/usr/bin/env python3
"""
git-claim-authorship.py
Rewrites git history so that any commit where you appear as a co-author
instead lists you as the sole author (removing the Co-authored-by line).
Usage:
python git-claim-authorship.py --name "Your Name" --email "you@example.com"
Run from inside the repository you want to rewrite.
WARNING: This rewrites history. Force-push required afterwards.
"""
import subprocess
import re
import argparse
import sys
def run(cmd, capture=True, check=True):
result = subprocess.run(
cmd, shell=True, capture_output=capture, text=True, check=check
)
return result.stdout.strip() if capture else None
def get_all_commits():
output = run("git log --format='%H' --all")
return output.splitlines() if output else []
def get_commit_info(sha):
msg = run(f"git log -1 --format=%B {sha}")
author_name = run(f"git log -1 --format=%an {sha}")
author_email = run(f"git log -1 --format=%ae {sha}")
author_date = run(f"git log -1 --format=%aI {sha}")
committer_name = run(f"git log -1 --format=%cn {sha}")
committer_email = run(f"git log -1 --format=%ce {sha}")
committer_date = run(f"git log -1 --format=%cI {sha}")
return {
"sha": sha,
"message": msg,
"author_name": author_name,
"author_email": author_email,
"author_date": author_date,
"committer_name": committer_name,
"committer_email": committer_email,
"committer_date": committer_date,
}
def find_coauthor_line(message, name, email):
"""Return True if a Co-authored-by line matches the given name or email."""
pattern = re.compile(
r"^Co-authored-by:.*?" + re.escape(name) + r".*$|"
r"^Co-authored-by:.*?" + re.escape(email) + r".*$",
re.IGNORECASE | re.MULTILINE,
)
return bool(pattern.search(message))
def remove_coauthor_line(message, name, email):
"""Strip matching Co-authored-by lines from the commit message."""
pattern = re.compile(
r"^Co-authored-by:.*?" + re.escape(name) + r".*\n?|"
r"^Co-authored-by:.*?" + re.escape(email) + r".*\n?",
re.IGNORECASE | re.MULTILINE,
)
cleaned = pattern.sub("", message)
cleaned = re.sub(r"\n{3,}", "\n\n", cleaned).rstrip() + "\n"
return cleaned
def main():
parser = argparse.ArgumentParser(
description="Claim authorship of co-authored commits."
)
parser.add_argument("--name", required=True, help="Your full name (as in git)")
parser.add_argument("--email", required=True, help="Your email (as in git)")
parser.add_argument(
"--dry-run",
action="store_true",
help="Show what would change without modifying anything",
)
args = parser.parse_args()
# Make sure we're in a git repo
try:
run("git rev-parse --is-inside-work-tree")
except subprocess.CalledProcessError:
print("Error: not inside a git repository.", file=sys.stderr)
sys.exit(1)
print(f"Scanning commits for co-authorship by: {args.name} <{args.email}>")
commits = get_all_commits()
print(f"Total commits found: {len(commits)}")
matches = []
for sha in commits:
info = get_commit_info(sha)
if find_coauthor_line(info["message"], args.name, args.email):
matches.append(info)
if not matches:
print("No commits found with your Co-authored-by line. Nothing to do.")
return
print(f"\nFound {len(matches)} commit(s) to rewrite:\n")
for info in matches:
first_line = info["message"].split("\n")[0]
print(f" {info['sha'][:10]} {first_line}")
if args.dry_run:
print("\n[Dry run] No changes made.")
return
confirm = input(
"\n⚠️ This will rewrite history. Proceed? (yes/no): "
).strip().lower()
if confirm != "yes":
print("Aborted.")
return
# Build a filter-branch env filter script
sha_set = {info["sha"] for info in matches}
case_entries = []
for info in matches:
case_entries.append(
f" {info['sha']})\n"
f" export GIT_AUTHOR_NAME='{args.name}'\n"
f" export GIT_AUTHOR_EMAIL='{args.email}'\n"
f" ;;"
)
case_block = "\n".join(case_entries)
env_filter = f"""
case $GIT_COMMIT in
{case_block}
esac
"""
msg_case_entries = []
for info in matches:
new_msg = remove_coauthor_line(info["message"], args.name, args.email)
escaped_msg = new_msg.replace("'", "'\\''").replace("`", "\\`").replace("$", "\\$")
msg_case_entries.append(
f" {info['sha']})\n"
f" printf '%s' '{escaped_msg}'\n"
f" ;;"
)
msg_case_block = "\n".join(msg_case_entries)
msg_filter = f"""
case $GIT_COMMIT in
{msg_case_block}
*)
cat
;;
esac
"""
with open("/tmp/_msg_filter.sh", "w") as f:
f.write(msg_filter)
print("\nRewriting history with git filter-branch...")
try:
result = subprocess.run(
[
"git", "filter-branch", "-f",
"--env-filter", env_filter,
"--msg-filter", "bash /tmp/_msg_filter.sh",
"--tag-name-filter", "cat",
"--", "--all"
],
capture_output=False,
text=True,
)
if result.returncode != 0:
print("filter-branch failed.", file=sys.stderr)
sys.exit(1)
except Exception as e:
print(f"Error: {e}", file=sys.stderr)
sys.exit(1)
print("\n✅ Done! History rewritten.")
print("\nTo publish the changes, force-push all branches:")
print(" git push --force --all")
print(" git push --force --tags")
print("\nNote: Anyone else with a clone of this repo will need to re-clone or rebase.")
if __name__ == "__main__":
main()