Commit 7a6b929
feat: add create_project and create_iteration_field methods to projects_write
Add two new methods to the consolidated projects_write tool:
- create_project: creates a new GitHub ProjectsV2 for a user or org
- create_iteration_field: adds an iteration field to a project with
configurable sprint duration and start date
Key design decisions:
- Consolidated into projects_write following existing projects pattern
(projects_list, projects_get, projects_write all use method dispatch)
- iterations parameter is optional (basic field config uses just
start_date and duration; named iterations are a power-user option)
- project_number made conditionally required (not needed for
create_project; validated per-method in handler)
- owner_type auto-detection works for create_iteration_field;
required for create_project (no project to detect from)
- Fixed gosec G115 int overflow with explicit int32 casts
Closes #1854
Co-authored-by: João Doria de Souza <hi@joao.work>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b1575ed commit 7a6b929
File tree
5 files changed
+684
-22
lines changed- pkg/github
- __toolsnaps__
5 files changed
+684
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | | - | |
| 1017 | + | |
1018 | 1018 | | |
1019 | 1019 | | |
| 1020 | + | |
| 1021 | + | |
1020 | 1022 | | |
1021 | 1023 | | |
1022 | 1024 | | |
1023 | 1025 | | |
1024 | 1026 | | |
| 1027 | + | |
1025 | 1028 | | |
1026 | 1029 | | |
1027 | | - | |
1028 | | - | |
| 1030 | + | |
| 1031 | + | |
1029 | 1032 | | |
1030 | | - | |
| 1033 | + | |
1031 | 1034 | | |
1032 | 1035 | | |
| 1036 | + | |
1033 | 1037 | | |
1034 | 1038 | | |
1035 | 1039 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| |||
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
37 | 71 | | |
38 | 72 | | |
39 | 73 | | |
40 | 74 | | |
41 | 75 | | |
42 | 76 | | |
43 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
44 | 80 | | |
45 | 81 | | |
46 | 82 | | |
| |||
49 | 85 | | |
50 | 86 | | |
51 | 87 | | |
52 | | - | |
| 88 | + | |
53 | 89 | | |
54 | 90 | | |
55 | 91 | | |
56 | 92 | | |
57 | 93 | | |
58 | 94 | | |
59 | 95 | | |
60 | | - | |
| 96 | + | |
61 | 97 | | |
62 | 98 | | |
63 | 99 | | |
64 | 100 | | |
65 | 101 | | |
66 | 102 | | |
67 | 103 | | |
68 | | - | |
| 104 | + | |
69 | 105 | | |
70 | 106 | | |
71 | 107 | | |
| |||
83 | 119 | | |
84 | 120 | | |
85 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
86 | 126 | | |
87 | 127 | | |
88 | 128 | | |
89 | 129 | | |
90 | 130 | | |
91 | 131 | | |
92 | 132 | | |
93 | | - | |
94 | | - | |
| 133 | + | |
95 | 134 | | |
96 | 135 | | |
97 | 136 | | |
| |||
0 commit comments