Commit 8cdd92b
#25 #39 Refactor pull request handling in services
Updated `RepositoryService.cs` and `TeamService.cs` to streamline the logic for processing pull requests. The `completeMessage` is now initialized with a localized error message when no changes are detected. The code directly processes files, and the completion message is constructed based on the success of saving a repository or team. Final steps for adding comments and closing issues have been simplified by removing unnecessary completeness checks.1 parent 04671b3 commit 8cdd92b
2 files changed
Lines changed: 26 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | | - | |
| 223 | + | |
225 | 224 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 225 | + | |
232 | 226 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 227 | + | |
236 | 228 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
241 | 233 | | |
242 | | - | |
243 | | - | |
| 234 | + | |
244 | 235 | | |
245 | 236 | | |
246 | 237 | | |
247 | 238 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 239 | + | |
| 240 | + | |
252 | 241 | | |
253 | | - | |
| 242 | + | |
254 | 243 | | |
255 | | - | |
256 | | - | |
| 244 | + | |
257 | 245 | | |
258 | 246 | | |
259 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
261 | 260 | | |
262 | | - | |
| 261 | + | |
263 | 262 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 263 | + | |
270 | 264 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 265 | + | |
274 | 266 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
279 | 271 | | |
280 | | - | |
281 | | - | |
| 272 | + | |
282 | 273 | | |
283 | 274 | | |
284 | 275 | | |
285 | 276 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 277 | + | |
| 278 | + | |
290 | 279 | | |
291 | | - | |
| 280 | + | |
292 | 281 | | |
293 | | - | |
294 | | - | |
| 282 | + | |
295 | 283 | | |
296 | 284 | | |
297 | 285 | | |
| |||
0 commit comments