Adnan Maolood
a77998c012
hubsrht: Remove usage of repository(id) GraphQL query
...
The repository(id) query will be removed from git.sr.ht, so use the
User.repository(name) query instead.
2022-02-14 15:42:51 +01:00
Drew DeVault
641cd03056
Ignore webhooks from someone else's build
2021-02-20 09:53:43 -05:00
Drew DeVault
f1fbf3bddb
builds: correct name of env variable
2021-02-03 14:35:03 -05:00
Alexey Yerin
d8bac6c67c
Export some env variables when submitting a build
...
This allows to detect if the build was started from a patch and for
example, skip deployment.
Example:
BUILD_SUBMITTER=hub.sr.ht
BUILD_REASON=patchset
PATCHSET_ID=19897
PATCHSET_URL=https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/19897
Ticket: ~sircmpwn/hub.sr.ht#70
2021-02-02 10:24:17 -05:00
Antoine Kalmbach
1346dd4f34
Use -sS instead of --no-progress-meter when curling mbox downloads
...
Seems like curl in Debian images is too old to have support for
--no-progress-meter introduced in curl 7.67. This can be done in a
forward compatible way by using -sS.
-s will silence output in general, but -S (--show-error) will unsilence any errors.
2020-10-25 16:47:23 -04:00
Drew DeVault
6b9d2e6d96
Use random selection of build manifests
2020-08-28 12:09:20 -04:00
Drew DeVault
319f690c9d
Fix issue with submitting excessive build manifests
...
This is a dict, and cannot be sub-sliced in this manner.
2020-08-28 12:03:17 -04:00
Drew DeVault
55b4da42af
Prevent 500 on invalid build manifests
2020-08-26 09:42:15 -04:00
Drew DeVault
fb3b4999fc
builds: refuse to submit >4 builds at once
2020-08-21 09:34:10 -04:00
Drew DeVault
b72c7c7feb
Run build submissions in a job group
2020-07-23 12:58:38 -04:00
Drew DeVault
5c742bcfe3
build submission: respect reply-to header
2020-07-16 10:05:15 -04:00
Drew DeVault
581af620f0
Rig up build status to lists.sr.ht tool status
2020-07-13 16:14:59 -04:00
Drew DeVault
8f14fd4776
Gracefully handle missing patch prefix
2020-07-13 14:16:19 -04:00
Drew DeVault
271e6350b0
build submission: handle missing repo
2020-07-13 13:39:26 -04:00
Drew DeVault
a1c9c80b29
Submit patches to builds.sr.ht
2020-07-13 13:30:28 -04:00