beefhaving project - webhook link #9

Open
opened 2025-01-07 14:01:51 -05:00 by adam · 1 comment
Owner

it accepted nothing. it's not just ignoring the auth token.

it accepted *nothing*. it's not just ignoring the auth token.
adam self-assigned this 2025-01-07 14:01:51 -05:00
Author
Owner

I can set a webhook from a script, except i can't change the matrix room id.

don't know why, too lazy to find out, maybe it's a bug.

example anyway. (again: everything else does set, so: yes my auth tokens are right.)

curl -vvv -X 'PATCH' 'https://gitea.arg.rip/api/v1/repos/beefhavers/test33/hooks/1832' \
    -H 'accept: application/json' \
    -H 'authorization: token [GITEA AUTH TOKEN]' \
    -H 'Content-Type: application/json' \
    -d '{
      "active": true,
      "authorization_header": "Bearer [MATRIX AUTH TOKEN]",
      "branch_filter": "*",
      "config": {
        "content_type": "json",
        "url": "https://greyn.club:8448/_matrix/client/r0/rooms/!nkHATeovJaggMezdBi:greyn.club/send/m.room.message",
        "room_id":"!nkHATeovJaggMezdBi:greyn.club"
      },
      "type": "matrix",
      "events": [
        "create",
        "delete",
        "fork",
        "push",
        "issues",
        "issue_assign",
        "issue_label",
        "issue_milestone",
        "issue_comment",
        "pull_request",
        "pull_request_assign",
        "pull_request_label",
        "pull_request_milestone",
        "pull_request_comment",
        "pull_request_review_approved",
        "pull_request_review_rejected",
        "pull_request_review_comment",
        "pull_request_sync",
        "wiki",
        "repository",
        "release",
        "package",
        "pull_request_review_request"
      ]
    }'
I *can* set *a* webhook from a script, *except* i can't change the matrix room id. don't know why, too lazy to find out, maybe it's a bug. example anyway. (again: everything else *does* set, so: yes my auth tokens are right.) ```bash curl -vvv -X 'PATCH' 'https://gitea.arg.rip/api/v1/repos/beefhavers/test33/hooks/1832' \ -H 'accept: application/json' \ -H 'authorization: token [GITEA AUTH TOKEN]' \ -H 'Content-Type: application/json' \ -d '{ "active": true, "authorization_header": "Bearer [MATRIX AUTH TOKEN]", "branch_filter": "*", "config": { "content_type": "json", "url": "https://greyn.club:8448/_matrix/client/r0/rooms/!nkHATeovJaggMezdBi:greyn.club/send/m.room.message", "room_id":"!nkHATeovJaggMezdBi:greyn.club" }, "type": "matrix", "events": [ "create", "delete", "fork", "push", "issues", "issue_assign", "issue_label", "issue_milestone", "issue_comment", "pull_request", "pull_request_assign", "pull_request_label", "pull_request_milestone", "pull_request_comment", "pull_request_review_approved", "pull_request_review_rejected", "pull_request_review_comment", "pull_request_sync", "wiki", "repository", "release", "package", "pull_request_review_request" ] }' ```
adam removed their assignment 2025-01-11 11:06:01 -05:00
adam added the
help wanted
label 2025-01-11 11:06:31 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: greyn/deployment#9
No description provided.