Software / code / prosody-modules
Comparison
mod_pubsub_forgejo/webhook-examples/pull_request_comment/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": "created", | |
| 3 "issue": { | |
| 4 "id": 949460, | |
| 5 "url": "https://codeberg.org/api/v1/repos/slidge/slidge/issues/38", | |
| 6 "html_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@nicoco.fr", | |
| 15 "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5", | |
| 16 "html_url": "https://codeberg.org/nicoco", | |
| 17 "language": "en-US", | |
| 18 "is_admin": false, | |
| 19 "last_login": "2025-01-16T17:43:26Z", | |
| 20 "created": "2022-09-12T11:13:13Z", | |
| 21 "restricted": false, | |
| 22 "active": true, | |
| 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 "original_author": "", | |
| 35 "original_author_id": 0, | |
| 36 "title": "dev", | |
| 37 "body": "test\r\n\r\nblabla", | |
| 38 "ref": "", | |
| 39 "assets": [], | |
| 40 "labels": [], | |
| 41 "milestone": null, | |
| 42 "assignee": null, | |
| 43 "assignees": null, | |
| 44 "state": "open", | |
| 45 "is_locked": false, | |
| 46 "comments": 0, | |
| 47 "created_at": "2025-01-17T14:04:59Z", | |
| 48 "updated_at": "2025-01-17T14:52:25Z", | |
| 49 "closed_at": null, | |
| 50 "due_date": null, | |
| 51 "pull_request": { | |
| 52 "merged": false, | |
| 53 "merged_at": null, | |
| 54 "draft": false, | |
| 55 "html_url": "https://codeberg.org/slidge/slidge/pulls/38" | |
| 56 }, | |
| 57 "repository": { | |
| 58 "id": 298187, | |
| 59 "name": "slidge", | |
| 60 "owner": "slidge", | |
| 61 "full_name": "slidge/slidge" | |
| 62 }, | |
| 63 "pin_order": 0 | |
| 64 }, | |
| 65 "comment": { | |
| 66 "id": 2592486, | |
| 67 "html_url": "https://codeberg.org/slidge/slidge/pulls/38#issuecomment-2592486", | |
| 68 "pull_request_url": "https://codeberg.org/slidge/slidge/pulls/38", | |
| 69 "issue_url": "", | |
| 70 "user": { | |
| 71 "id": 64076, | |
| 72 "login": "nicoco", | |
| 73 "login_name": "", | |
| 74 "source_id": 0, | |
| 75 "full_name": "", | |
| 76 "email": "nicoco@noreply.codeberg.org", | |
| 77 "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5", | |
| 78 "html_url": "https://codeberg.org/nicoco", | |
| 79 "language": "", | |
| 80 "is_admin": false, | |
| 81 "last_login": "0001-01-01T00:00:00Z", | |
| 82 "created": "2022-09-12T11:13:13Z", | |
| 83 "restricted": false, | |
| 84 "active": false, | |
| 85 "prohibit_login": false, | |
| 86 "location": "Nice, France", | |
| 87 "pronouns": "", | |
| 88 "website": "https://nicoco.fr", | |
| 89 "description": "wannabe-hacker", | |
| 90 "visibility": "public", | |
| 91 "followers_count": 1, | |
| 92 "following_count": 0, | |
| 93 "starred_repos_count": 4, | |
| 94 "username": "nicoco" | |
| 95 }, | |
| 96 "original_author": "", | |
| 97 "original_author_id": 0, | |
| 98 "body": "a comment", | |
| 99 "assets": [], | |
| 100 "created_at": "2025-01-17T14:52:25Z", | |
| 101 "updated_at": "2025-01-17T14:52:25Z" | |
| 102 }, | |
| 103 "repository": { | |
| 104 "id": 298187, | |
| 105 "owner": { | |
| 106 "id": 205842, | |
| 107 "login": "slidge", | |
| 108 "login_name": "", | |
| 109 "source_id": 0, | |
| 110 "full_name": "", | |
| 111 "email": "", | |
| 112 "avatar_url": "https://codeberg.org/avatars/aa0eeeb5fe173938bdc665be92bf605efa1e8f4a905bc3327e4d5c7eddf584e5", | |
| 113 "html_url": "https://codeberg.org/slidge", | |
| 114 "language": "", | |
| 115 "is_admin": false, | |
| 116 "last_login": "0001-01-01T00:00:00Z", | |
| 117 "created": "2024-08-30T14:16:14Z", | |
| 118 "restricted": false, | |
| 119 "active": false, | |
| 120 "prohibit_login": false, | |
| 121 "location": "", | |
| 122 "pronouns": "", | |
| 123 "website": "https://slidge.im", | |
| 124 "description": "", | |
| 125 "visibility": "public", | |
| 126 "followers_count": 3, | |
| 127 "following_count": 0, | |
| 128 "starred_repos_count": 0, | |
| 129 "username": "slidge" | |
| 130 }, | |
| 131 "name": "slidge", | |
| 132 "full_name": "slidge/slidge", | |
| 133 "description": "An XMPP/other chat networks gateway framework in python", | |
| 134 "empty": false, | |
| 135 "private": false, | |
| 136 "fork": false, | |
| 137 "template": false, | |
| 138 "parent": null, | |
| 139 "mirror": false, | |
| 140 "size": 7536, | |
| 141 "language": "", | |
| 142 "languages_url": "https://codeberg.org/api/v1/repos/slidge/slidge/languages", | |
| 143 "html_url": "https://codeberg.org/slidge/slidge", | |
| 144 "url": "https://codeberg.org/api/v1/repos/slidge/slidge", | |
| 145 "link": "", | |
| 146 "ssh_url": "git@codeberg.org:slidge/slidge.git", | |
| 147 "clone_url": "https://codeberg.org/slidge/slidge.git", | |
| 148 "original_url": "", | |
| 149 "website": "https://slidge.im/", | |
| 150 "stars_count": 1, | |
| 151 "forks_count": 1, | |
| 152 "watchers_count": 4, | |
| 153 "open_issues_count": 26, | |
| 154 "open_pr_counter": 1, | |
| 155 "release_counter": 0, | |
| 156 "default_branch": "main", | |
| 157 "archived": false, | |
| 158 "created_at": "2025-01-02T05:57:37Z", | |
| 159 "updated_at": "2025-01-16T10:44:09Z", | |
| 160 "archived_at": "1970-01-01T00:00:00Z", | |
| 161 "permissions": { | |
| 162 "admin": true, | |
| 163 "push": true, | |
| 164 "pull": true | |
| 165 }, | |
| 166 "has_issues": true, | |
| 167 "internal_tracker": { | |
| 168 "enable_time_tracker": true, | |
| 169 "allow_only_contributors_to_track_time": true, | |
| 170 "enable_issue_dependencies": true | |
| 171 }, | |
| 172 "has_wiki": false, | |
| 173 "wiki_branch": "main", | |
| 174 "globally_editable_wiki": false, | |
| 175 "has_pull_requests": true, | |
| 176 "has_projects": false, | |
| 177 "has_releases": true, | |
| 178 "has_packages": true, | |
| 179 "has_actions": false, | |
| 180 "ignore_whitespace_conflicts": false, | |
| 181 "allow_merge_commits": true, | |
| 182 "allow_rebase": true, | |
| 183 "allow_rebase_explicit": true, | |
| 184 "allow_squash_merge": true, | |
| 185 "allow_fast_forward_only_merge": true, | |
| 186 "allow_rebase_update": true, | |
| 187 "default_delete_branch_after_merge": true, | |
| 188 "default_merge_style": "rebase", | |
| 189 "default_allow_maintainer_edit": true, | |
| 190 "avatar_url": "", | |
| 191 "internal": false, | |
| 192 "mirror_interval": "", | |
| 193 "object_format_name": "sha1", | |
| 194 "mirror_updated": "0001-01-01T00:00:00Z", | |
| 195 "repo_transfer": null, | |
| 196 "topics": [ | |
| 197 "bridge", | |
| 198 "chat", | |
| 199 "gateway", | |
| 200 "instant-messaging", | |
| 201 "python", | |
| 202 "xmpp" | |
| 203 ] | |
| 204 }, | |
| 205 "sender": { | |
| 206 "id": 64076, | |
| 207 "login": "nicoco", | |
| 208 "login_name": "", | |
| 209 "source_id": 0, | |
| 210 "full_name": "", | |
| 211 "email": "nicoco@noreply.codeberg.org", | |
| 212 "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5", | |
| 213 "html_url": "https://codeberg.org/nicoco", | |
| 214 "language": "", | |
| 215 "is_admin": false, | |
| 216 "last_login": "0001-01-01T00:00:00Z", | |
| 217 "created": "2022-09-12T11:13:13Z", | |
| 218 "restricted": false, | |
| 219 "active": false, | |
| 220 "prohibit_login": false, | |
| 221 "location": "Nice, France", | |
| 222 "pronouns": "", | |
| 223 "website": "https://nicoco.fr", | |
| 224 "description": "wannabe-hacker", | |
| 225 "visibility": "public", | |
| 226 "followers_count": 1, | |
| 227 "following_count": 0, | |
| 228 "starred_repos_count": 4, | |
| 229 "username": "nicoco" | |
| 230 }, | |
| 231 "is_pull": true | |
| 232 } |