Software / code / prosody-modules
Comparison
mod_pubsub_forgejo/webhook-examples/pull_request/content.json @ 6203:131b8bfbefb4
mod_pubsub_forgejo: new module for forgejo webhooks
| author | nicoco <nicoco@nicoco.fr> |
|---|---|
| date | Mon, 17 Feb 2025 23:28:05 +0100 |
comparison
equal
deleted
inserted
replaced
| 6202:6d5a19bdd718 | 6203:131b8bfbefb4 |
|---|---|
| 1 { | |
| 2 "action": "opened", | |
| 3 "number": 38, | |
| 4 "pull_request": { | |
| 5 "id": 270810, | |
| 6 "url": "https://codeberg.org/slidge/slidge/pulls/38", | |
| 7 "number": 38, | |
| 8 "user": { | |
| 9 "id": 64076, | |
| 10 "login": "nicoco", | |
| 11 "login_name": "", | |
| 12 "source_id": 0, | |
| 13 "full_name": "", | |
| 14 "email": "nicoco@noreply.codeberg.org", | |
| 15 "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5", | |
| 16 "html_url": "https://codeberg.org/nicoco", | |
| 17 "language": "", | |
| 18 "is_admin": false, | |
| 19 "last_login": "0001-01-01T00:00:00Z", | |
| 20 "created": "2022-09-12T11:13:13Z", | |
| 21 "restricted": false, | |
| 22 "active": false, | |
| 23 "prohibit_login": false, | |
| 24 "location": "Nice, France", | |
| 25 "pronouns": "", | |
| 26 "website": "https://nicoco.fr", | |
| 27 "description": "wannabe-hacker", | |
| 28 "visibility": "public", | |
| 29 "followers_count": 1, | |
| 30 "following_count": 0, | |
| 31 "starred_repos_count": 4, | |
| 32 "username": "nicoco" | |
| 33 }, | |
| 34 "title": "dev", | |
| 35 "body": "test\r\n\r\nblabla", | |
| 36 "labels": [], | |
| 37 "milestone": null, | |
| 38 "assignee": null, | |
| 39 "assignees": null, | |
| 40 "requested_reviewers": null, | |
| 41 "requested_reviewers_teams": null, | |
| 42 "state": "open", | |
| 43 "draft": false, | |
| 44 "is_locked": false, | |
| 45 "comments": 0, | |
| 46 "review_comments": 0, | |
| 47 "additions": 338, | |
| 48 "deletions": 211, | |
| 49 "changed_files": 10, | |
| 50 "html_url": "https://codeberg.org/slidge/slidge/pulls/38", | |
| 51 "diff_url": "https://codeberg.org/slidge/slidge/pulls/38.diff", | |
| 52 "patch_url": "https://codeberg.org/slidge/slidge/pulls/38.patch", | |
| 53 "mergeable": true, | |
| 54 "merged": false, | |
| 55 "merged_at": null, | |
| 56 "merge_commit_sha": null, | |
| 57 "merged_by": null, | |
| 58 "allow_maintainer_edit": true, | |
| 59 "base": { | |
| 60 "label": "main", | |
| 61 "ref": "main", | |
| 62 "sha": "84bdc13530ef5fdd001eb55eb4ff9a4545fd1182", | |
| 63 "repo_id": 298187, | |
| 64 "repo": { | |
| 65 "id": 298187, | |
| 66 "owner": { | |
| 67 "id": 205842, | |
| 68 "login": "slidge", | |
| 69 "login_name": "", | |
| 70 "source_id": 0, | |
| 71 "full_name": "", | |
| 72 "email": "", | |
| 73 "avatar_url": "https://codeberg.org/avatars/aa0eeeb5fe173938bdc665be92bf605efa1e8f4a905bc3327e4d5c7eddf584e5", | |
| 74 "html_url": "https://codeberg.org/slidge", | |
| 75 "language": "", | |
| 76 "is_admin": false, | |
| 77 "last_login": "0001-01-01T00:00:00Z", | |
| 78 "created": "2024-08-30T14:16:14Z", | |
| 79 "restricted": false, | |
| 80 "active": false, | |
| 81 "prohibit_login": false, | |
| 82 "location": "", | |
| 83 "pronouns": "", | |
| 84 "website": "https://slidge.im", | |
| 85 "description": "", | |
| 86 "visibility": "public", | |
| 87 "followers_count": 3, | |
| 88 "following_count": 0, | |
| 89 "starred_repos_count": 0, | |
| 90 "username": "slidge" | |
| 91 }, | |
| 92 "name": "slidge", | |
| 93 "full_name": "slidge/slidge", | |
| 94 "description": "An XMPP/other chat networks gateway framework in python", | |
| 95 "empty": false, | |
| 96 "private": false, | |
| 97 "fork": false, | |
| 98 "template": false, | |
| 99 "parent": null, | |
| 100 "mirror": false, | |
| 101 "size": 7536, | |
| 102 "language": "", | |
| 103 "languages_url": "https://codeberg.org/api/v1/repos/slidge/slidge/languages", | |
| 104 "html_url": "https://codeberg.org/slidge/slidge", | |
| 105 "url": "https://codeberg.org/api/v1/repos/slidge/slidge", | |
| 106 "link": "", | |
| 107 "ssh_url": "git@codeberg.org:slidge/slidge.git", | |
| 108 "clone_url": "https://codeberg.org/slidge/slidge.git", | |
| 109 "original_url": "", | |
| 110 "website": "https://slidge.im/", | |
| 111 "stars_count": 1, | |
| 112 "forks_count": 1, | |
| 113 "watchers_count": 4, | |
| 114 "open_issues_count": 26, | |
| 115 "open_pr_counter": 0, | |
| 116 "release_counter": 0, | |
| 117 "default_branch": "main", | |
| 118 "archived": false, | |
| 119 "created_at": "2025-01-02T05:57:37Z", | |
| 120 "updated_at": "2025-01-16T10:44:09Z", | |
| 121 "archived_at": "1970-01-01T00:00:00Z", | |
| 122 "permissions": { | |
| 123 "admin": false, | |
| 124 "push": false, | |
| 125 "pull": true | |
| 126 }, | |
| 127 "has_issues": true, | |
| 128 "internal_tracker": { | |
| 129 "enable_time_tracker": true, | |
| 130 "allow_only_contributors_to_track_time": true, | |
| 131 "enable_issue_dependencies": true | |
| 132 }, | |
| 133 "has_wiki": false, | |
| 134 "wiki_branch": "main", | |
| 135 "globally_editable_wiki": false, | |
| 136 "has_pull_requests": true, | |
| 137 "has_projects": false, | |
| 138 "has_releases": true, | |
| 139 "has_packages": true, | |
| 140 "has_actions": false, | |
| 141 "ignore_whitespace_conflicts": false, | |
| 142 "allow_merge_commits": true, | |
| 143 "allow_rebase": true, | |
| 144 "allow_rebase_explicit": true, | |
| 145 "allow_squash_merge": true, | |
| 146 "allow_fast_forward_only_merge": true, | |
| 147 "allow_rebase_update": true, | |
| 148 "default_delete_branch_after_merge": true, | |
| 149 "default_merge_style": "rebase", | |
| 150 "default_allow_maintainer_edit": true, | |
| 151 "avatar_url": "", | |
| 152 "internal": false, | |
| 153 "mirror_interval": "", | |
| 154 "object_format_name": "sha1", | |
| 155 "mirror_updated": "0001-01-01T00:00:00Z", | |
| 156 "repo_transfer": null, | |
| 157 "topics": [ | |
| 158 "bridge", | |
| 159 "chat", | |
| 160 "gateway", | |
| 161 "instant-messaging", | |
| 162 "python", | |
| 163 "xmpp" | |
| 164 ] | |
| 165 } | |
| 166 }, | |
| 167 "head": { | |
| 168 "label": "dev", | |
| 169 "ref": "dev", | |
| 170 "sha": "333f86a71bc5dbcf27de4dfaf9006890b86dee34", | |
| 171 "repo_id": 303404, | |
| 172 "repo": { | |
| 173 "id": 303404, | |
| 174 "owner": { | |
| 175 "id": 64076, | |
| 176 "login": "nicoco", | |
| 177 "login_name": "", | |
| 178 "source_id": 0, | |
| 179 "full_name": "", | |
| 180 "email": "nicoco@noreply.codeberg.org", | |
| 181 "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5", | |
| 182 "html_url": "https://codeberg.org/nicoco", | |
| 183 "language": "", | |
| 184 "is_admin": false, | |
| 185 "last_login": "0001-01-01T00:00:00Z", | |
| 186 "created": "2022-09-12T11:13:13Z", | |
| 187 "restricted": false, | |
| 188 "active": false, | |
| 189 "prohibit_login": false, | |
| 190 "location": "Nice, France", | |
| 191 "pronouns": "", | |
| 192 "website": "https://nicoco.fr", | |
| 193 "description": "wannabe-hacker", | |
| 194 "visibility": "public", | |
| 195 "followers_count": 1, | |
| 196 "following_count": 0, | |
| 197 "starred_repos_count": 4, | |
| 198 "username": "nicoco" | |
| 199 }, | |
| 200 "name": "slidge", | |
| 201 "full_name": "nicoco/slidge", | |
| 202 "description": "An XMPP/other chat networks framework in python", | |
| 203 "empty": false, | |
| 204 "private": false, | |
| 205 "fork": true, | |
| 206 "template": false, | |
| 207 "parent": { | |
| 208 "id": 298187, | |
| 209 "owner": { | |
| 210 "id": 205842, | |
| 211 "login": "slidge", | |
| 212 "login_name": "", | |
| 213 "source_id": 0, | |
| 214 "full_name": "", | |
| 215 "email": "", | |
| 216 "avatar_url": "https://codeberg.org/avatars/aa0eeeb5fe173938bdc665be92bf605efa1e8f4a905bc3327e4d5c7eddf584e5", | |
| 217 "html_url": "https://codeberg.org/slidge", | |
| 218 "language": "", | |
| 219 "is_admin": false, | |
| 220 "last_login": "0001-01-01T00:00:00Z", | |
| 221 "created": "2024-08-30T14:16:14Z", | |
| 222 "restricted": false, | |
| 223 "active": false, | |
| 224 "prohibit_login": false, | |
| 225 "location": "", | |
| 226 "pronouns": "", | |
| 227 "website": "https://slidge.im", | |
| 228 "description": "", | |
| 229 "visibility": "public", | |
| 230 "followers_count": 3, | |
| 231 "following_count": 0, | |
| 232 "starred_repos_count": 0, | |
| 233 "username": "slidge" | |
| 234 }, | |
| 235 "name": "slidge", | |
| 236 "full_name": "slidge/slidge", | |
| 237 "description": "An XMPP/other chat networks gateway framework in python", | |
| 238 "empty": false, | |
| 239 "private": false, | |
| 240 "fork": false, | |
| 241 "template": false, | |
| 242 "parent": null, | |
| 243 "mirror": false, | |
| 244 "size": 7536, | |
| 245 "language": "", | |
| 246 "languages_url": "https://codeberg.org/api/v1/repos/slidge/slidge/languages", | |
| 247 "html_url": "https://codeberg.org/slidge/slidge", | |
| 248 "url": "https://codeberg.org/api/v1/repos/slidge/slidge", | |
| 249 "link": "", | |
| 250 "ssh_url": "git@codeberg.org:slidge/slidge.git", | |
| 251 "clone_url": "https://codeberg.org/slidge/slidge.git", | |
| 252 "original_url": "", | |
| 253 "website": "https://slidge.im/", | |
| 254 "stars_count": 1, | |
| 255 "forks_count": 1, | |
| 256 "watchers_count": 4, | |
| 257 "open_issues_count": 26, | |
| 258 "open_pr_counter": 1, | |
| 259 "release_counter": 0, | |
| 260 "default_branch": "main", | |
| 261 "archived": false, | |
| 262 "created_at": "2025-01-02T05:57:37Z", | |
| 263 "updated_at": "2025-01-16T10:44:09Z", | |
| 264 "archived_at": "1970-01-01T00:00:00Z", | |
| 265 "permissions": { | |
| 266 "admin": false, | |
| 267 "push": false, | |
| 268 "pull": true | |
| 269 }, | |
| 270 "has_issues": true, | |
| 271 "internal_tracker": { | |
| 272 "enable_time_tracker": true, | |
| 273 "allow_only_contributors_to_track_time": true, | |
| 274 "enable_issue_dependencies": true | |
| 275 }, | |
| 276 "has_wiki": false, | |
| 277 "wiki_branch": "main", | |
| 278 "globally_editable_wiki": false, | |
| 279 "has_pull_requests": true, | |
| 280 "has_projects": false, | |
| 281 "has_releases": true, | |
| 282 "has_packages": true, | |
| 283 "has_actions": false, | |
| 284 "ignore_whitespace_conflicts": false, | |
| 285 "allow_merge_commits": true, | |
| 286 "allow_rebase": true, | |
| 287 "allow_rebase_explicit": true, | |
| 288 "allow_squash_merge": true, | |
| 289 "allow_fast_forward_only_merge": true, | |
| 290 "allow_rebase_update": true, | |
| 291 "default_delete_branch_after_merge": true, | |
| 292 "default_merge_style": "rebase", | |
| 293 "default_allow_maintainer_edit": true, | |
| 294 "avatar_url": "", | |
| 295 "internal": false, | |
| 296 "mirror_interval": "", | |
| 297 "object_format_name": "sha1", | |
| 298 "mirror_updated": "0001-01-01T00:00:00Z", | |
| 299 "repo_transfer": null, | |
| 300 "topics": [ | |
| 301 "bridge", | |
| 302 "chat", | |
| 303 "gateway", | |
| 304 "instant-messaging", | |
| 305 "python", | |
| 306 "xmpp" | |
| 307 ] | |
| 308 }, | |
| 309 "mirror": false, | |
| 310 "size": 6562, | |
| 311 "language": "", | |
| 312 "languages_url": "https://codeberg.org/api/v1/repos/nicoco/slidge/languages", | |
| 313 "html_url": "https://codeberg.org/nicoco/slidge", | |
| 314 "url": "https://codeberg.org/api/v1/repos/nicoco/slidge", | |
| 315 "link": "", | |
| 316 "ssh_url": "git@codeberg.org:nicoco/slidge.git", | |
| 317 "clone_url": "https://codeberg.org/nicoco/slidge.git", | |
| 318 "original_url": "", | |
| 319 "website": "", | |
| 320 "stars_count": 0, | |
| 321 "forks_count": 0, | |
| 322 "watchers_count": 1, | |
| 323 "open_issues_count": 0, | |
| 324 "open_pr_counter": 0, | |
| 325 "release_counter": 0, | |
| 326 "default_branch": "main", | |
| 327 "archived": false, | |
| 328 "created_at": "2025-01-14T15:21:10Z", | |
| 329 "updated_at": "2025-01-17T14:04:37Z", | |
| 330 "archived_at": "1970-01-01T00:00:00Z", | |
| 331 "permissions": { | |
| 332 "admin": false, | |
| 333 "push": false, | |
| 334 "pull": true | |
| 335 }, | |
| 336 "has_issues": false, | |
| 337 "has_wiki": false, | |
| 338 "globally_editable_wiki": false, | |
| 339 "has_pull_requests": true, | |
| 340 "has_projects": false, | |
| 341 "has_releases": false, | |
| 342 "has_packages": false, | |
| 343 "has_actions": false, | |
| 344 "ignore_whitespace_conflicts": false, | |
| 345 "allow_merge_commits": true, | |
| 346 "allow_rebase": true, | |
| 347 "allow_rebase_explicit": true, | |
| 348 "allow_squash_merge": true, | |
| 349 "allow_fast_forward_only_merge": true, | |
| 350 "allow_rebase_update": true, | |
| 351 "default_delete_branch_after_merge": false, | |
| 352 "default_merge_style": "merge", | |
| 353 "default_allow_maintainer_edit": false, | |
| 354 "avatar_url": "", | |
| 355 "internal": false, | |
| 356 "mirror_interval": "", | |
| 357 "object_format_name": "sha1", | |
| 358 "mirror_updated": "0001-01-01T00:00:00Z", | |
| 359 "repo_transfer": null, | |
| 360 "topics": null | |
| 361 } | |
| 362 }, | |
| 363 "merge_base": "84bdc13530ef5fdd001eb55eb4ff9a4545fd1182", | |
| 364 "due_date": null, | |
| 365 "created_at": "2025-01-17T14:04:59Z", | |
| 366 "updated_at": "2025-01-17T14:04:59Z", | |
| 367 "closed_at": null, | |
| 368 "pin_order": 0 | |
| 369 }, | |
| 370 "requested_reviewer": null, | |
| 371 "repository": { | |
| 372 "id": 298187, | |
| 373 "owner": { | |
| 374 "id": 205842, | |
| 375 "login": "slidge", | |
| 376 "login_name": "", | |
| 377 "source_id": 0, | |
| 378 "full_name": "", | |
| 379 "email": "", | |
| 380 "avatar_url": "https://codeberg.org/avatars/aa0eeeb5fe173938bdc665be92bf605efa1e8f4a905bc3327e4d5c7eddf584e5", | |
| 381 "html_url": "https://codeberg.org/slidge", | |
| 382 "language": "", | |
| 383 "is_admin": false, | |
| 384 "last_login": "0001-01-01T00:00:00Z", | |
| 385 "created": "2024-08-30T14:16:14Z", | |
| 386 "restricted": false, | |
| 387 "active": false, | |
| 388 "prohibit_login": false, | |
| 389 "location": "", | |
| 390 "pronouns": "", | |
| 391 "website": "https://slidge.im", | |
| 392 "description": "", | |
| 393 "visibility": "public", | |
| 394 "followers_count": 3, | |
| 395 "following_count": 0, | |
| 396 "starred_repos_count": 0, | |
| 397 "username": "slidge" | |
| 398 }, | |
| 399 "name": "slidge", | |
| 400 "full_name": "slidge/slidge", | |
| 401 "description": "An XMPP/other chat networks gateway framework in python", | |
| 402 "empty": false, | |
| 403 "private": false, | |
| 404 "fork": false, | |
| 405 "template": false, | |
| 406 "parent": null, | |
| 407 "mirror": false, | |
| 408 "size": 7536, | |
| 409 "language": "", | |
| 410 "languages_url": "https://codeberg.org/api/v1/repos/slidge/slidge/languages", | |
| 411 "html_url": "https://codeberg.org/slidge/slidge", | |
| 412 "url": "https://codeberg.org/api/v1/repos/slidge/slidge", | |
| 413 "link": "", | |
| 414 "ssh_url": "git@codeberg.org:slidge/slidge.git", | |
| 415 "clone_url": "https://codeberg.org/slidge/slidge.git", | |
| 416 "original_url": "", | |
| 417 "website": "https://slidge.im/", | |
| 418 "stars_count": 1, | |
| 419 "forks_count": 1, | |
| 420 "watchers_count": 4, | |
| 421 "open_issues_count": 26, | |
| 422 "open_pr_counter": 0, | |
| 423 "release_counter": 0, | |
| 424 "default_branch": "main", | |
| 425 "archived": false, | |
| 426 "created_at": "2025-01-02T05:57:37Z", | |
| 427 "updated_at": "2025-01-16T10:44:09Z", | |
| 428 "archived_at": "1970-01-01T00:00:00Z", | |
| 429 "permissions": { | |
| 430 "admin": true, | |
| 431 "push": true, | |
| 432 "pull": true | |
| 433 }, | |
| 434 "has_issues": true, | |
| 435 "internal_tracker": { | |
| 436 "enable_time_tracker": true, | |
| 437 "allow_only_contributors_to_track_time": true, | |
| 438 "enable_issue_dependencies": true | |
| 439 }, | |
| 440 "has_wiki": false, | |
| 441 "wiki_branch": "main", | |
| 442 "globally_editable_wiki": false, | |
| 443 "has_pull_requests": true, | |
| 444 "has_projects": false, | |
| 445 "has_releases": true, | |
| 446 "has_packages": true, | |
| 447 "has_actions": false, | |
| 448 "ignore_whitespace_conflicts": false, | |
| 449 "allow_merge_commits": true, | |
| 450 "allow_rebase": true, | |
| 451 "allow_rebase_explicit": true, | |
| 452 "allow_squash_merge": true, | |
| 453 "allow_fast_forward_only_merge": true, | |
| 454 "allow_rebase_update": true, | |
| 455 "default_delete_branch_after_merge": true, | |
| 456 "default_merge_style": "rebase", | |
| 457 "default_allow_maintainer_edit": true, | |
| 458 "avatar_url": "", | |
| 459 "internal": false, | |
| 460 "mirror_interval": "", | |
| 461 "object_format_name": "sha1", | |
| 462 "mirror_updated": "0001-01-01T00:00:00Z", | |
| 463 "repo_transfer": null, | |
| 464 "topics": [ | |
| 465 "bridge", | |
| 466 "chat", | |
| 467 "gateway", | |
| 468 "instant-messaging", | |
| 469 "python", | |
| 470 "xmpp" | |
| 471 ] | |
| 472 }, | |
| 473 "sender": { | |
| 474 "id": 64076, | |
| 475 "login": "nicoco", | |
| 476 "login_name": "", | |
| 477 "source_id": 0, | |
| 478 "full_name": "", | |
| 479 "email": "nicoco@noreply.codeberg.org", | |
| 480 "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5", | |
| 481 "html_url": "https://codeberg.org/nicoco", | |
| 482 "language": "", | |
| 483 "is_admin": false, | |
| 484 "last_login": "0001-01-01T00:00:00Z", | |
| 485 "created": "2022-09-12T11:13:13Z", | |
| 486 "restricted": false, | |
| 487 "active": false, | |
| 488 "prohibit_login": false, | |
| 489 "location": "Nice, France", | |
| 490 "pronouns": "", | |
| 491 "website": "https://nicoco.fr", | |
| 492 "description": "wannabe-hacker", | |
| 493 "visibility": "public", | |
| 494 "followers_count": 1, | |
| 495 "following_count": 0, | |
| 496 "starred_repos_count": 4, | |
| 497 "username": "nicoco" | |
| 498 }, | |
| 499 "commit_id": "", | |
| 500 "review": null | |
| 501 } |