aboutsummaryrefslogblamecommitdiffstats
path: root/contrib/ircbot/install-webhook.sh
blob: 3c0c5bcbb308859bef85ebdfbeb2e0913dc4975f (plain) (tree)




























                                                                     

                                                        






                                         
#!/bin/sh

set -xe

hut lists webhook create "https://lists.sr.ht/~rjarry/aerc-devel" \
	--stdin -e patchset_received \
	-u https://bot.diabeteman.com/sourcehut/ <<EOF
query {
	webhook {
		uuid
		event
		date
		... on PatchsetEvent {
			patchset {
				id
				subject
				version
				prefix
				list {
					name
					owner {
						... on User {
							canonicalName
						}
					}
				}
				submitter {
					... on User {
						canonicalName
						username
						email
					}
				}
			}
		}
	}
}
EOF