@codedrifters/configulator 0.0.189 → 0.0.190
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 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -999,8 +999,20 @@ var githubWorkflowBundle = {
|
|
|
999
999
|
"6. **Create the issue** using `gh issue create`:",
|
|
1000
1000
|
" - `--title '<type>: <description>'`",
|
|
1001
1001
|
" - `--body '<issue body>'`",
|
|
1002
|
-
" - `--type '<GitHub issue type>'` (Epic, Feature, Bug, or Task)",
|
|
1003
1002
|
" - `--label '<type-label>' --label '<priority-label>' --label '<status-label>'`",
|
|
1003
|
+
"7. **Set the GitHub issue type** via the GraphQL `updateIssueIssueType` mutation:",
|
|
1004
|
+
" - Look up the issue's node ID: `gh issue view <issue-number> --json id -q .id`",
|
|
1005
|
+
" - Look up the repo's issue type node IDs (one-time, can be cached):",
|
|
1006
|
+
"",
|
|
1007
|
+
" ```sh",
|
|
1008
|
+
" gh api graphql -f query='query($owner:String!,$repo:String!){repository(owner:$owner,name:$repo){issueTypes(first:20){nodes{id name}}}}' -f owner=<owner> -f repo=<repo>",
|
|
1009
|
+
" ```",
|
|
1010
|
+
"",
|
|
1011
|
+
" - Apply the chosen type to the issue:",
|
|
1012
|
+
"",
|
|
1013
|
+
" ```sh",
|
|
1014
|
+
" gh api graphql -f query='mutation($issueId:ID!,$typeId:ID!){updateIssueIssueType(input:{issueId:$issueId,issueTypeId:$typeId}){issue{number issueType{name}}}}' -f issueId=<issue-node-id> -f typeId=<issue-type-node-id>",
|
|
1015
|
+
" ```",
|
|
1004
1016
|
"",
|
|
1005
1017
|
"### Issue Body Template",
|
|
1006
1018
|
"",
|
|
@@ -1021,7 +1033,7 @@ var githubWorkflowBundle = {
|
|
|
1021
1033
|
"### Important",
|
|
1022
1034
|
"",
|
|
1023
1035
|
"- Always use the conventional prefix in the issue title",
|
|
1024
|
-
"- Always assign the correct GitHub issue type",
|
|
1036
|
+
"- Always assign the correct GitHub issue type via the `updateIssueIssueType` GraphQL mutation (step 7) \u2014 never via `gh issue create --type`",
|
|
1025
1037
|
"- Always include `type:*`, `priority:*`, and `status:*` labels",
|
|
1026
1038
|
"- If the user does not specify a type, ask before creating the issue",
|
|
1027
1039
|
"- If the priority cannot be inferred from the description, ask the user before creating the issue",
|