#dev 2025-05-05
2025-05-05 UTC
#
[tantek] https://onlinephp.io/ was amazing for quickly checking and narrowing down bugs in cassis

mulawa1, tei_, CRISPR, IWSlackGateway2, sp1ff, barnaby, DJ_[dj_je][d], GuestZero, claudinec, sebbu, Xe_, grufwub, duanin2 and ttybitnik joined the channel
barnaby, [jeremycherfas] and [qubyte] joined the channel
nemonical joined the channel
CRISPR, marc_in_space and nemonical joined the channel
#
perryflynn aaronpk: would be interesting how the state handling is solved. so that not on every build all pages sending notifications.
#
perryflynn maybe it could be extracts from the files changed depending if simple commit or pull requests.
#
perryflynn aaronpk: aaah, kk.
#
perryflynn I plan exactly that for my new interface. will add a webhook feature which triggers gitlab CI if a new mention was added to the APIs DB.
#
[aciccarello] perryflynn I use a netlify build plugin for webmention sending on my static site https://github.com/CodeFoodPixels/netlify-plugin-webmentions
#
[aciccarello] I know benji uses a Netlify serverless function for handling micropub. I imagine you could do the same for webmentions. https://github.com/benjifs/micropub
#
[aciccarello] I'm not sure that I'd want to do it that way though. Adding commits for every mention seems noisy.
#
[aciccarello] I'm already using Indiekit so accepting mentions on that server would probably be a better fit for me. https://github.com/getindiekit/indiekit/issues/429
#
[aciccarello] qubyte, are you using a public plugin?
#
[aciccarello] I've been wanting to add a diff check to the plugin I'm using https://github.com/CodeFoodPixels/netlify-plugin-webmentions/issues/4
#
[qubyte] Pretty scrappy code tbh. More work to do to shore it up and test it, but it does work. https://github.com/qubyte/qubyte-codes/blob/main/plugins/dispatch-webmentions/index.js

#
perryflynn [qubyte]: comparing feed is a great idea. 👍
[benji] joined the channel
#
[benji] For sending I use a post build netlify plugin that caches last sent and uses my fork of http://webmention.app to send: https://github.com/benjifs/benji/blob/main/plugins/send_webmentions/index.js

balintm joined the channel
#
[aciccarello] Thanks for sharing the code
#
[aciccarello] qubyte++
gRegor, CRISPR, thegreekgeek, barnaby and sandra joined the channel
#
Zegnat specifically for GitHub, you can actually receive Webhooks by triggering your action on repository_dispatch. But the Webhook body must have a specific format (JSON object with 2 members, "event_type" and "client_payload"). So a very thin Webmention proxy could accept mentions, transform the request to a GitHub dispatch, and forward it straight to an Action.

#
Zegnat Fow people who have never seen GitHub action webhooks, I thought this was a good summary with example https://www.howtogeek.com/devops/how-to-trigger-github-actions-remotely-using-webhooks/ and this is the API https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-dispatch-event

#
aaronpk it already supports webhooks, wouldn't take much to add another format for it https://github.com/aaronpk/webmention.io/blob/main/helpers/web_hooks.rb

ttybitnik joined the channel
#
carrvo aaronpk++ that seems like a neat project (albeit not one I would use).
rosipov, tei_, barnaby and [artlung] joined the channel
#
[artlung] I have completed the backlog of CSS Battle Daily Targets. I have filled youtube with 4 days, 14 hours, 24 minutes, 5 seconds of me writing CSS. I added some `popover` goodness so you can watch in-page. And I added keyboard navigation too. I am not sure why I did this other than as practice. CSS. Video editing. Video troubleshooting. Video is such a pain. Write up in the next few days. https://artlung.com/cssbattles/

[schmarty] joined the channel
#
[schmarty] hahaha sheesh who lets me run code on the public internet 🤦 😂 https://git.schmarty.net/schmarty/gem-diamond/commit/799d586eb9b815a7757a9ff75ac611bbb9f1e832

claudinec, tei_, nemonical, jjuran and JadedBlueEyes96 joined the channel