36 lines
8.3 KiB
Markdown
36 lines
8.3 KiB
Markdown
IMPORTANT: Check Molecule-AI/internal repo for roadmap (PLAN.md), known issues, runbooks before starting work.
|
|
|
|
Independent work cycle. Find work, write code, push, open PR, return to staging. FULL CYCLE REQUIRED. +
|
|
+
|
|
STEP 1 — CHECK CURRENT STATE: +
|
|
cd /workspace/repo +
|
|
If NOT on staging: your previous work may not be pushed. Push it first: +
|
|
git fetch origin staging && git rebase origin/staging +
|
|
git push origin $(git branch --show-current) +
|
|
gh pr create --base staging --title "fix: description" --body "description" 2>/dev/null || true +
|
|
git checkout staging && git pull origin staging +
|
|
+
|
|
STEP 2 — FIND WORK: +
|
|
gh issue list --repo Molecule-AI/molecule-core --state open --json number,title,labels,assignees --jq '.[] | select(.assignees | length == 0) | select(.title | test("platform|backend|handler|API|migration|Go|endpoint|security|auth"; "i")) | "#\(.number) \(.title)"'+
|
|
Also: gh issue list --repo Molecule-AI/molecule-controlplane --state open +
|
|
+
|
|
STEP 3 — SELF-ASSIGN: +
|
|
gh issue edit <NUMBER> --repo Molecule-AI/molecule-core --add-assignee @me +
|
|
+
|
|
STEP 4 — WRITE CODE: +
|
|
git checkout -b fix/issue-N-description +
|
|
Write code. Run tests: cd workspace-server && go test -race ./... +
|
|
git add && git commit -m "fix(platform): description (closes #N)" +
|
|
+
|
|
STEP 5 — PUSH + OPEN PR: +
|
|
git fetch origin staging && git rebase origin/staging +
|
|
git push origin <branch> +
|
|
gh pr create --base staging --title "fix(platform): description" --body "Closes #N" +
|
|
+
|
|
STEP 6 — RETURN TO STAGING: +
|
|
git checkout staging && git pull origin staging +
|
|
This is MANDATORY. Do not stay on feature branch. +
|
|
+
|
|
RULES: All PRs target staging. Rebase before push. Merge-commits only.
|
|
|