File

mod_pubsub_forgejo/webhook-examples/pull_request_comment/content.json @ 6305:1c62edeb9147

mod_pastebin: Update Readme diff --git a/mod_pastebin/README.md b/mod_pastebin/README.md --- a/mod_pastebin/README.md +++ b/mod_pastebin/README.md @@ -37,12 +37,14 @@ For example: Pastes will be available by default at `http://<your-prosody>:5280/pastebin/` by default. -In Prosody 0.9 and later this can be changed with [HTTP -settings](https://prosody.im/doc/http). +Ports and path can be changed with [HTTP +settings](https://prosody.im/doc/http), for example like: -In 0.8 and older this can be changed with `pastebin_ports` (see below), -or you can forward another external URL from your web server to Prosody, -use `pastebin_url` to set that URL. +``` {.lua} + http_paths = { + pastebin = "/$host-paste"; + } +``` # Discovery @@ -82,27 +84,16 @@ The line and character tresholds are adv pastebin_line_threshold The maximum number of lines a message may have before it is sent to the pastebin. (default 4 lines) pastebin_trigger A string of characters (e.g. "!paste ") which if detected at the start of a message, always sends the message to the pastebin, regardless of length. (default: not set) pastebin_expire_after Number of hours after which to expire (remove) a paste, defaults to 24. Set to 0 to store pastes permanently on disk. - pastebin_ports List of ports to run the HTTP server on, same format as mod_httpserver's http_ports[^1] - pastebin_url Base URL to display for pastebin links, must end with / and redirect to Prosody's built-in HTTP server[^2] # Compatibility - ------ ------- - trunk Works + ------ --------------------- + trunk Works as of 25-06-13 + 13 Works 0.12 Works - 0.11 Works - 0.10 Works - 0.9 Works - 0.8 Works - ------ ------- + ------ --------------------- # Todo - Maximum paste length - Web interface to submit pastes? - -[^1]: As of Prosody 0.9, `pastebin_ports` is replaced by `http_ports`, - see [Prosody HTTP server documentation](https://prosody.im/doc/http) - -[^2]: See also - [http_external_url](https://prosody.im/doc/http#external_url)
author Menel <menel@snikket.de>
date Fri, 13 Jun 2025 11:39:58 +0200
parent 6203:131b8bfbefb4
line wrap: on
line source

{
  "action": "created",
  "issue": {
    "id": 949460,
    "url": "https://codeberg.org/api/v1/repos/slidge/slidge/issues/38",
    "html_url": "https://codeberg.org/slidge/slidge/pulls/38",
    "number": 38,
    "user": {
      "id": 64076,
      "login": "nicoco",
      "login_name": "",
      "source_id": 0,
      "full_name": "",
      "email": "nicoco@nicoco.fr",
      "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5",
      "html_url": "https://codeberg.org/nicoco",
      "language": "en-US",
      "is_admin": false,
      "last_login": "2025-01-16T17:43:26Z",
      "created": "2022-09-12T11:13:13Z",
      "restricted": false,
      "active": true,
      "prohibit_login": false,
      "location": "Nice, France",
      "pronouns": "",
      "website": "https://nicoco.fr",
      "description": "wannabe-hacker",
      "visibility": "public",
      "followers_count": 1,
      "following_count": 0,
      "starred_repos_count": 4,
      "username": "nicoco"
    },
    "original_author": "",
    "original_author_id": 0,
    "title": "dev",
    "body": "test\r\n\r\nblabla",
    "ref": "",
    "assets": [],
    "labels": [],
    "milestone": null,
    "assignee": null,
    "assignees": null,
    "state": "open",
    "is_locked": false,
    "comments": 0,
    "created_at": "2025-01-17T14:04:59Z",
    "updated_at": "2025-01-17T14:52:25Z",
    "closed_at": null,
    "due_date": null,
    "pull_request": {
      "merged": false,
      "merged_at": null,
      "draft": false,
      "html_url": "https://codeberg.org/slidge/slidge/pulls/38"
    },
    "repository": {
      "id": 298187,
      "name": "slidge",
      "owner": "slidge",
      "full_name": "slidge/slidge"
    },
    "pin_order": 0
  },
  "comment": {
    "id": 2592486,
    "html_url": "https://codeberg.org/slidge/slidge/pulls/38#issuecomment-2592486",
    "pull_request_url": "https://codeberg.org/slidge/slidge/pulls/38",
    "issue_url": "",
    "user": {
      "id": 64076,
      "login": "nicoco",
      "login_name": "",
      "source_id": 0,
      "full_name": "",
      "email": "nicoco@noreply.codeberg.org",
      "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5",
      "html_url": "https://codeberg.org/nicoco",
      "language": "",
      "is_admin": false,
      "last_login": "0001-01-01T00:00:00Z",
      "created": "2022-09-12T11:13:13Z",
      "restricted": false,
      "active": false,
      "prohibit_login": false,
      "location": "Nice, France",
      "pronouns": "",
      "website": "https://nicoco.fr",
      "description": "wannabe-hacker",
      "visibility": "public",
      "followers_count": 1,
      "following_count": 0,
      "starred_repos_count": 4,
      "username": "nicoco"
    },
    "original_author": "",
    "original_author_id": 0,
    "body": "a comment",
    "assets": [],
    "created_at": "2025-01-17T14:52:25Z",
    "updated_at": "2025-01-17T14:52:25Z"
  },
  "repository": {
    "id": 298187,
    "owner": {
      "id": 205842,
      "login": "slidge",
      "login_name": "",
      "source_id": 0,
      "full_name": "",
      "email": "",
      "avatar_url": "https://codeberg.org/avatars/aa0eeeb5fe173938bdc665be92bf605efa1e8f4a905bc3327e4d5c7eddf584e5",
      "html_url": "https://codeberg.org/slidge",
      "language": "",
      "is_admin": false,
      "last_login": "0001-01-01T00:00:00Z",
      "created": "2024-08-30T14:16:14Z",
      "restricted": false,
      "active": false,
      "prohibit_login": false,
      "location": "",
      "pronouns": "",
      "website": "https://slidge.im",
      "description": "",
      "visibility": "public",
      "followers_count": 3,
      "following_count": 0,
      "starred_repos_count": 0,
      "username": "slidge"
    },
    "name": "slidge",
    "full_name": "slidge/slidge",
    "description": "An XMPP/other chat networks gateway framework in python",
    "empty": false,
    "private": false,
    "fork": false,
    "template": false,
    "parent": null,
    "mirror": false,
    "size": 7536,
    "language": "",
    "languages_url": "https://codeberg.org/api/v1/repos/slidge/slidge/languages",
    "html_url": "https://codeberg.org/slidge/slidge",
    "url": "https://codeberg.org/api/v1/repos/slidge/slidge",
    "link": "",
    "ssh_url": "git@codeberg.org:slidge/slidge.git",
    "clone_url": "https://codeberg.org/slidge/slidge.git",
    "original_url": "",
    "website": "https://slidge.im/",
    "stars_count": 1,
    "forks_count": 1,
    "watchers_count": 4,
    "open_issues_count": 26,
    "open_pr_counter": 1,
    "release_counter": 0,
    "default_branch": "main",
    "archived": false,
    "created_at": "2025-01-02T05:57:37Z",
    "updated_at": "2025-01-16T10:44:09Z",
    "archived_at": "1970-01-01T00:00:00Z",
    "permissions": {
      "admin": true,
      "push": true,
      "pull": true
    },
    "has_issues": true,
    "internal_tracker": {
      "enable_time_tracker": true,
      "allow_only_contributors_to_track_time": true,
      "enable_issue_dependencies": true
    },
    "has_wiki": false,
    "wiki_branch": "main",
    "globally_editable_wiki": false,
    "has_pull_requests": true,
    "has_projects": false,
    "has_releases": true,
    "has_packages": true,
    "has_actions": false,
    "ignore_whitespace_conflicts": false,
    "allow_merge_commits": true,
    "allow_rebase": true,
    "allow_rebase_explicit": true,
    "allow_squash_merge": true,
    "allow_fast_forward_only_merge": true,
    "allow_rebase_update": true,
    "default_delete_branch_after_merge": true,
    "default_merge_style": "rebase",
    "default_allow_maintainer_edit": true,
    "avatar_url": "",
    "internal": false,
    "mirror_interval": "",
    "object_format_name": "sha1",
    "mirror_updated": "0001-01-01T00:00:00Z",
    "repo_transfer": null,
    "topics": [
      "bridge",
      "chat",
      "gateway",
      "instant-messaging",
      "python",
      "xmpp"
    ]
  },
  "sender": {
    "id": 64076,
    "login": "nicoco",
    "login_name": "",
    "source_id": 0,
    "full_name": "",
    "email": "nicoco@noreply.codeberg.org",
    "avatar_url": "https://codeberg.org/avatars/32a918ca7a66e4e484ee2ccc625dc6451da728355c060ed0ed54fa69d89224a5",
    "html_url": "https://codeberg.org/nicoco",
    "language": "",
    "is_admin": false,
    "last_login": "0001-01-01T00:00:00Z",
    "created": "2022-09-12T11:13:13Z",
    "restricted": false,
    "active": false,
    "prohibit_login": false,
    "location": "Nice, France",
    "pronouns": "",
    "website": "https://nicoco.fr",
    "description": "wannabe-hacker",
    "visibility": "public",
    "followers_count": 1,
    "following_count": 0,
    "starred_repos_count": 4,
    "username": "nicoco"
  },
  "is_pull": true
}