Skip to content

Commit 398f7d9

Browse files
committed
default branch
1 parent 0ae1090 commit 398f7d9

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

workflows/agentic-wiki-writer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You are a wiki generator for this repository. Your job is to produce high-qualit
9494
- **Allowed bash commands:** Only `find`, `tree`, `wc`, and read-only commands (`cat`, `ls`, `head`) work. All other bash commands (`git`, `echo >`, `touch`, `cp`, `tee`, `node`, `python`, `install`, `mkdir`) will be denied.
9595
- **Creating files:** Use the `write` tool. The `.github/agentic-wiki/` directory is pre-created before your session starts. Do NOT try to mkdir any path.
9696
- **Wiki page output:** Do NOT write wiki pages to disk. Do NOT create output directories. Construct all page content as strings and pass them to the `push-wiki` safe-output as JSON. See Step 3f.
97-
- **Repo info for source links:** Do NOT use `git` commands. Read `.git/config` with `cat` to find the remote URL. The default branch is `main`.
97+
- **Repo info for source links:** Do NOT use `git` commands. Read `.git/config` with `cat` to find the remote URL and default branch.
9898
- **Repo memory path:** Do NOT hardcode the repo-memory path. Discover it by running `ls /tmp/gh-aw/repo-memory/` to find the directory name, then use that path. It is typically `/tmp/gh-aw/repo-memory/default/`. All memory files must be flat (no subdirectories) — you cannot mkdir inside repo-memory.
9999
- Always use **relative paths** for repo files (e.g., `.github/agentic-wiki/PAGES.md`), never absolute paths.
100100

@@ -545,7 +545,7 @@ You may link to directories: `[components/](https://github.com/OWNER/REPO/tree/B
545545

546546
NEVER use bare relative paths like `src/lib/foo.ts` as links — those will 404 on the wiki.
547547

548-
Determine the correct `OWNER/REPO` by reading `.git/config` with `cat` (do NOT use `git` commands — they are blocked). The default branch is `main`.
548+
Determine the correct `OWNER/REPO` and default branch by reading `.git/config` with `cat` (do NOT use `git` commands — they are blocked).
549549

550550
**Wiki cross-references** — Use wiki link syntax: `[[Page Name]]` or `[[Display Text|Page-Slug#section-slug]]`.
551551

workflows/daily-perf-improver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Always do Task 7 (Update Monthly Activity Summary Issue) every run. In all comme
152152
3. Check for existing performance PRs (especially yours with "[Perf Improver]" prefix). Avoid duplicate work.
153153
4. For the selected goal:
154154

155-
a. Create a fresh branch off `main`: `perf-assist/<desc>`.
155+
a. Create a fresh branch off the default branch: `perf-assist/<desc>`.
156156

157157
b. **Before implementing**: Establish baseline measurements using appropriate methods:
158158
- Synthetic benchmarks for algorithm changes

workflows/daily-repo-chronicle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Collect data for the past 30 days (or available data) using GitHub API:
7373
- Count of PRs closed per day
7474

7575
3. **Commit Activity Data**:
76-
- Count of commits per day on main branches
76+
- Count of commits per day on the default branch
7777
- Number of contributors per day
7878

7979
**Phase 2: Data Preparation**
@@ -211,7 +211,7 @@ Transform the last 24 hours of repository activity into a compelling narrative t
211211
1. Query GitHub for activity in the last 24 hours:
212212
- Pull requests (opened, merged, closed, updated)
213213
- Issues (opened, closed, comments)
214-
- Commits to main branches
214+
- Commits to the default branch
215215

216216
2. **For bot activity, identify human actors:**
217217
- Check PR/issue assignees to find who initiated the work

workflows/daily-test-improver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Always do Task 7 (Update Monthly Activity Summary Issue) every run. In all comme
155155
4. **Check for existing coverage pipeline**: Before generating coverage reports yourself, check if the repository has an existing coverage pipeline (CI jobs, coverage services like Codecov/Coveralls, or documented coverage commands). Use the existing pipeline when available - maintainers may rely on it for consistency.
156156
5. For the selected goal:
157157

158-
a. Create a fresh branch off `main`: `test-assist/<desc>`.
158+
a. Create a fresh branch off the default branch: `test-assist/<desc>`.
159159

160160
b. **Analyze complexity before testing**: Before writing any tests, thoroughly read and understand the implementation. Evaluate function complexity - is this trivial code or complex logic? See "What NOT to Test" in Guidelines. Exception: only test trivial code if the repo has an explicit policy requiring very high coverage.
161161

workflows/repo-assist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ steps:
112112
}
113113
114114
weights = {
115-
1: 1 + unlabelled,
115+
1: 1 + 3 * unlabelled,
116116
2: 3 + 1 * open_issues,
117-
3: 3 + 0.6 * open_issues,
117+
3: 3 + 0.7 * open_issues,
118118
4: 5 + 0.2 * open_issues,
119119
5: 5 + 0.1 * open_issues,
120120
6: float(repo_assist_prs),

workflows/update-docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Documentation‑as‑Code, transparency, single source of truth, continuous impr
5353

5454
1. **Analyze Repository Changes**
5555

56-
- On every push to main branch, examine the diff to identify changed/added/removed entities
56+
- On every push to the default branch, examine the diff to identify changed/added/removed entities
5757
- Look for new APIs, functions, classes, configuration files, or significant code changes
5858
- Check existing documentation for accuracy and completeness
5959
- Identify documentation gaps like failing tests: a "red build" until fixed
@@ -118,7 +118,7 @@ Documentation‑as‑Code, transparency, single source of truth, continuous impr
118118
- Exit if no code changes require documentation updates
119119
- Exit if all documentation is already up-to-date and comprehensive
120120

121-
> NOTE: Never make direct pushes to the main branch. Always create a pull request for documentation changes.
121+
> NOTE: Never make direct pushes to the default branch. Always create a pull request for documentation changes.
122122
123123
> NOTE: Treat documentation gaps like failing tests.
124124

0 commit comments

Comments
 (0)