19
19
20
20
class Integrations extends AbstractApi
21
21
{
22
- /**
23
- * @param int|string $project_id
24
- *
25
- * @return mixed
26
- */
27
22
public function all (int |string $ project_id ): mixed
28
23
{
29
24
$ path = $ this ->getProjectPath ($ project_id , 'integrations ' );
@@ -37,10 +32,8 @@ public function all(int|string $project_id): mixed
37
32
* Create Microsoft Teams integration
38
33
* Set Microsoft Teams integration for a project.
39
34
*
40
- * @param int|string $project_id
41
35
* @param array $params {
42
36
*
43
- * @return mixed
44
37
*@var string $webhook The Microsoft Teams webhook
45
38
* @var bool $notify_only_broken_pipelines Send notifications for broken pipelines
46
39
* @var string $branches_to_be_notified Branches to send notifications for. Valid options are all, default,
@@ -55,7 +48,6 @@ public function all(int|string $project_id): mixed
55
48
* @var bool $pipeline_events Enable notifications for pipeline events
56
49
* @var bool $wiki_page_events Enable notifications for wiki page events
57
50
* }
58
- *
59
51
*/
60
52
public function createMicrosoftTeams (int |string $ project_id , array $ params = []): mixed
61
53
{
@@ -120,10 +112,8 @@ public function createMicrosoftTeams(int|string $project_id, array $params = [])
120
112
* Update Microsoft Teams integration
121
113
* Set Microsoft Teams integration for a project.
122
114
*
123
- * @param int|string $project_id
124
115
* @param array $params {
125
116
*
126
- * @return mixed
127
117
*@var string $webhook The Microsoft Teams webhook
128
118
* @var bool $notify_only_broken_pipelines Send notifications for broken pipelines
129
119
* @var string $branches_to_be_notified Branches to send notifications for. Valid options are all, default,
@@ -138,7 +128,6 @@ public function createMicrosoftTeams(int|string $project_id, array $params = [])
138
128
* @var bool $pipeline_events Enable notifications for pipeline events
139
129
* @var bool $wiki_page_events Enable notifications for wiki page events
140
130
* }
141
- *
142
131
*/
143
132
public function updateMicrosoftTeams (int |string $ project_id , array $ params = []): mixed
144
133
{
@@ -147,10 +136,6 @@ public function updateMicrosoftTeams(int|string $project_id, array $params = [])
147
136
148
137
/**
149
138
* Get Microsoft Teams integration settings for a project.
150
- *
151
- * @param int|string $project_id
152
- *
153
- * @return mixed
154
139
*/
155
140
public function getMicrosoftTeams (int |string $ project_id ): mixed
156
141
{
@@ -159,10 +144,6 @@ public function getMicrosoftTeams(int|string $project_id): mixed
159
144
160
145
/**
161
146
* Disable the Microsoft Teams integration for a project. Integration settings are reset.
162
- *
163
- * @param int|string $project_id
164
- *
165
- * @return mixed
166
147
*/
167
148
public function removeMicrosoftTeams (int |string $ project_id ): mixed
168
149
{
@@ -175,10 +156,8 @@ public function removeMicrosoftTeams(int|string $project_id): mixed
175
156
* Create Jira integration
176
157
* Set Jira integration for a project.
177
158
*
178
- * @param int|string $project_id
179
159
* @param array $params {
180
160
*
181
- * @return mixed
182
161
*@var string $url The URL to the Jira project which is being linked to this GitLab project
183
162
* @var bool $api_url The base URL to the Jira instance API. Web URL value is used if not set
184
163
* @var string $username The email or username to be used with Jira. For Jira Cloud use an email,
@@ -205,7 +184,6 @@ public function removeMicrosoftTeams(int|string $project_id): mixed
205
184
* @var string $comment_on_event_enabled Enable comments inside Jira issues on each GitLab event
206
185
* (commit / merge request)
207
186
* }
208
- *
209
187
*/
210
188
public function createJira (int |string $ project_id , array $ params = []): mixed
211
189
{
@@ -268,10 +246,8 @@ public function createJira(int|string $project_id, array $params = []): mixed
268
246
* Update Jira integration
269
247
* Set Jira integration for a project.
270
248
*
271
- * @param int|string $project_id
272
249
* @param array $params {
273
250
*
274
- * @return mixed
275
251
*@var string $url The URL to the Jira project which is being linked to this GitLab project
276
252
* @var bool $api_url The base URL to the Jira instance API. Web URL value is used if not set
277
253
* @var string $username The email or username to be used with Jira. For Jira Cloud use an email,
@@ -298,7 +274,6 @@ public function createJira(int|string $project_id, array $params = []): mixed
298
274
* @var string $comment_on_event_enabled Enable comments inside Jira issues on each GitLab event
299
275
* (commit / merge request)
300
276
* }
301
- *
302
277
*/
303
278
public function updateJira (int |string $ project_id , array $ params = []): mixed
304
279
{
@@ -307,10 +282,6 @@ public function updateJira(int|string $project_id, array $params = []): mixed
307
282
308
283
/**
309
284
* Get Jira integration settings for a project.
310
- *
311
- * @param int|string $project_id
312
- *
313
- * @return mixed
314
285
*/
315
286
public function getJira (int |string $ project_id ): mixed
316
287
{
@@ -319,10 +290,6 @@ public function getJira(int|string $project_id): mixed
319
290
320
291
/**
321
292
* Disable the Jira integration for a project. Integration settings are reset.
322
- *
323
- * @param int|string $project_id
324
- *
325
- * @return mixed
326
293
*/
327
294
public function removeJira (int |string $ project_id ): mixed
328
295
{
0 commit comments