@codedrifters/configulator 0.0.193 → 0.0.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +14 -23
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -23
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -872,28 +872,7 @@ var githubWorkflowBundle = {
|
|
|
872
872
|
"",
|
|
873
873
|
'## "Work on issue X" Automation',
|
|
874
874
|
"",
|
|
875
|
-
"When the user says **work on issue X** (or similar),
|
|
876
|
-
"",
|
|
877
|
-
"1. **Ensure you have the latest code** \u2014 switch to the default branch and pull:",
|
|
878
|
-
" - `git checkout {{repository.defaultBranch}} && git pull origin {{repository.defaultBranch}}`",
|
|
879
|
-
"2. **Fetch issue details** \u2014 use `gh issue view <number>` to get the title, body, and labels",
|
|
880
|
-
"3. **Determine branch type** from the issue title prefix:",
|
|
881
|
-
" - `feat:` / `feature:` \u2192 `feat/`",
|
|
882
|
-
" - `fix:` / `bug:` \u2192 `fix/`",
|
|
883
|
-
" - `docs:` \u2192 `docs/`",
|
|
884
|
-
" - `chore:` / `refactor:` \u2192 `chore/`",
|
|
885
|
-
" - `test:` \u2192 `test/`",
|
|
886
|
-
" - No prefix \u2192 `feat/`",
|
|
887
|
-
"4. **Create a branch** following the naming convention: `<type>/<issue-number>-<issue-slug>` (e.g., `feat/42-add-login`)",
|
|
888
|
-
"5. **Checkout the branch** locally",
|
|
889
|
-
"6. **Link the branch to the issue** by posting a comment: `gh issue comment <number> --body 'Branch: \\`<branch-name>\\`'`",
|
|
890
|
-
"7. **Create an implementation plan** \u2014 analyze the issue requirements, explore the relevant codebase, and present a plan for the user to approve before starting any implementation",
|
|
891
|
-
"",
|
|
892
|
-
"### Important",
|
|
893
|
-
"",
|
|
894
|
-
"- Never begin implementation without the user approving the plan",
|
|
895
|
-
"- If the issue title has no conventional prefix, default to `feat/`",
|
|
896
|
-
"- Keep the slug short (3-5 words max, kebab-case)"
|
|
875
|
+
"When the user says **work on issue X** (or similar), invoke the `issue-worker` agent in interactive mode, passing the issue number in the prompt. Do not perform the branch creation, issue fetching, or planning steps yourself \u2014 the agent handles the full workflow (claim, branch, plan, implement, PR) and will pause for your approval at the appropriate checkpoints."
|
|
897
876
|
].join("\n"),
|
|
898
877
|
tags: ["workflow"]
|
|
899
878
|
},
|
|
@@ -5815,12 +5794,24 @@ var AstroProject = class extends TypeScriptProject {
|
|
|
5815
5794
|
});
|
|
5816
5795
|
}
|
|
5817
5796
|
this.addDeps(`astro@${astroVersion}`);
|
|
5818
|
-
this.addDevDeps(
|
|
5797
|
+
this.addDevDeps(
|
|
5798
|
+
"@astrojs/check",
|
|
5799
|
+
"astro-eslint-parser",
|
|
5800
|
+
"eslint-plugin-astro",
|
|
5801
|
+
"prettier-plugin-astro"
|
|
5802
|
+
);
|
|
5819
5803
|
const prettierConfig = this.tryFindObjectFile(".prettierrc.json");
|
|
5820
5804
|
prettierConfig?.addOverride("plugins", ["prettier-plugin-astro"]);
|
|
5821
5805
|
prettierConfig?.addOverride("overrides", [
|
|
5822
5806
|
{ files: "*.astro", options: { parser: "astro" } }
|
|
5823
5807
|
]);
|
|
5808
|
+
this.eslint?.addPlugins("astro");
|
|
5809
|
+
this.eslint?.addExtends("plugin:astro/recommended");
|
|
5810
|
+
this.eslint?.addOverride({
|
|
5811
|
+
files: ["*.astro"],
|
|
5812
|
+
parser: "astro-eslint-parser"
|
|
5813
|
+
});
|
|
5814
|
+
this.eslint?.addLintPattern("src/**/*.astro");
|
|
5824
5815
|
this.gitignore.addPatterns(".astro", ".vercel", ".netlify");
|
|
5825
5816
|
const turbo = TurboRepo.of(this);
|
|
5826
5817
|
if (turbo?.compileTask) {
|