tclfossil

Publish Ticket Updates/Commits to Webhook from Fossil TH1


I'm currently trying to setup Discord(or Slack-like) webhooks with my Fossil Repo running 2.6

I'm following this documentation:

Here's an example of what I'm trying to run in the raw TH1 requests:

http -asynchronous https://discordapp.com/api/webhooks/443395012672094208/(redacted) {content: 'hello there'}

Which I'm hoping for it to look something like this(I did this in Postman separately)

ideal

However I get no response and there's not much room for debugging on Fossil. I wasn't sure exactly how to format the payload. I tried "stringifying" it as well. Synchronous requests to see the HTTP response are not yet implemented so I cannot take off the flag.

I have my TH1 Regexp setup as follows(it throws no error about unacceptable URI anymore):

TH1 Regexp


Solution

  • While I appreciated the feedback I got from the comments both here and Fossil SCM forums, I found the best way to get around this was to send updates to a "middleware" service that gets the last updated ticket via command line and parses the ticket history and sends that information to the webhook like that. I'd like to see if anyone else ever solves this issue.