@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.mjs CHANGED
@@ -940,8 +940,20 @@ var githubWorkflowBundle = {
940
940
  "6. **Create the issue** using `gh issue create`:",
941
941
  " - `--title '<type>: <description>'`",
942
942
  " - `--body '<issue body>'`",
943
- " - `--type '<GitHub issue type>'` (Epic, Feature, Bug, or Task)",
944
943
  " - `--label '<type-label>' --label '<priority-label>' --label '<status-label>'`",
944
+ "7. **Set the GitHub issue type** via the GraphQL `updateIssueIssueType` mutation:",
945
+ " - Look up the issue's node ID: `gh issue view <issue-number> --json id -q .id`",
946
+ " - Look up the repo's issue type node IDs (one-time, can be cached):",
947
+ "",
948
+ " ```sh",
949
+ " 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>",
950
+ " ```",
951
+ "",
952
+ " - Apply the chosen type to the issue:",
953
+ "",
954
+ " ```sh",
955
+ " 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>",
956
+ " ```",
945
957
  "",
946
958
  "### Issue Body Template",
947
959
  "",
@@ -962,7 +974,7 @@ var githubWorkflowBundle = {
962
974
  "### Important",
963
975
  "",
964
976
  "- Always use the conventional prefix in the issue title",
965
- "- Always assign the correct GitHub issue type",
977
+ "- Always assign the correct GitHub issue type via the `updateIssueIssueType` GraphQL mutation (step 7) \u2014 never via `gh issue create --type`",
966
978
  "- Always include `type:*`, `priority:*`, and `status:*` labels",
967
979
  "- If the user does not specify a type, ask before creating the issue",
968
980
  "- If the priority cannot be inferred from the description, ask the user before creating the issue",