<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 7, 2019 at 3:20 PM Rainer Müller <<a href="mailto:raimue@macports.org">raimue@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 02/07/2019 09.41, Mojca Miklavec wrote:<br>
> Would it be acceptable to enable some web hooks in the base & ports<br>
> repository for testing?<br>
> <br>
> On Tue, 2 Jul 2019 at 08:41, Rajdeep Bharati wrote:<br>
>> On Tue, Jul 2, 2019 at 11:21 AM Rajdeep Bharati wrote:<br>
>>><br>
>>> Hi,<br>
>>> I had a query: are webhooks enabled in the MacPorts repos?<br>
>><br>
>> I guess it's not.<br>
>> Would it be possible to add webhooks in the base and ports repositories:<br>
>> payload url: <a href="http://34.67.147.76/change_hook/github" rel="noreferrer" target="_blank">http://34.67.147.76/change_hook/github</a><br>
>> send push and pull request events<br>
>><br>
>> Thanks, Regards<br>
>> Rajdeep<br>
<br>
I was not able to reach anything at this IP, but it seems to be assigned to<br>
Google, so I assume this is meant to be hosted in Google cloud?<br>
<br></blockquote><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'm sorry, now the buildbot is hosted on aws: </span><a href="http://ec2-18-191-91-174.us-east-2.compute.amazonaws.com/">http://ec2-18-191-91-174.us-east-2.compute.amazonaws.com</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Even if just for testing, I think we should assign a DNS name so we can easily<br>
redirect this somewhere else if needed without editing web hooks in multiple<br>
places on GitHub. As I understand this is just your personal playground, I would<br>
add the domain name:<br>
  <a href="http://build-rajdeepbharati.macports.org" rel="noreferrer" target="_blank">build-rajdeepbharati.macports.org</a>  A  34.67.147.76<br>
<br>
What kind of payload and which events are required? I would assume JSON format<br>
and just the "push" event as for the existing buildbot? Or will this already<br>
make use of the preferable GitHub Checks API and needs the corresponding<br>
"Check run"/"Check suite" events?<br>
<br></blockquote><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif">Just the push event will do as of now (We might use the pull requests' one later, that is an extended goal).</span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> I believe that the following piece of code is an extensive user of the<br>
> web hooks:<br>
>     <a href="https://github.com/macports/mpbot-github" rel="noreferrer" target="_blank">https://github.com/macports/mpbot-github</a><br>
> This is a bot written in go (a past GSOC projects from 2017) which<br>
> attaches various labels to PRs and takes care for CI builds of ports<br>
> on Travis, parsing the logs and publishing summary of build results<br>
> from Travis as comments on PRs.<br>
<br>
Web Hooks are used to notify external services of events happening at GitHub.<br>
The "reverse" operation to update status information and add comments uses the<br>
GitHub API.<br>
<br>
Rainer<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thank you.</div></div></div>