[yt-dev] Fun with the bitbucket REST API

Nathan Goldbaum nathan12343 at gmail.com
Sun Jan 4 15:14:31 PST 2015


On Sun, Jan 4, 2015 at 3:05 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hey Nathan,
>
> Have you experimented with issuing PRs via the API?  I read the API a
> while back and it looks like it *might* be possible to issue PRs from a
> repo to a repo other than the one you forked from.
>

I'm not sure.  According to the API docs, this is possible:

https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource#pullrequestsResource-POST(create)anewpullrequest

I've never tried it.


> It would be pretty cool to expand the hgbb extension to do some neat stuff
> like "get me PR #whatever" or "issue PR from this to that" etc.
>
>
That would be super useful.  Given that hgbb hasn't seen any updates since
2012 there are probably a number of places to make it nicer by making use
of the new API.  You might want to engage with Georg Brandl about
maintaining it?

That said, if you want to use version 2.0 of the bitbucket API, you might
need to do some substantial updates to hgbb to port it over to the new API.


> -Matt
>
> On Sun, Jan 4, 2015 at 2:41 PM, Nathan Goldbaum <nathan12343 at gmail.com>
> wrote:
>
>> Hi all,
>>
>> I'm in the middle of putting together a changelog for the upcoming 3.1
>> release.
>>
>> Just in case anyone needs to do this in the future, I've put together a
>> quick script that interacts with the bitbucket REST API to generate a
>> summary of all merged pull requests since the release of yt 3.0 on August
>> 4th.
>>
>> The script is here: https://bpaste.net/show/f86b1b4c0326
>>
>> My plan now is to use the output of this script to manually create a
>> changelog for the docs and release announcement.
>>
>> Hope that's helpful,
>>
>> -Nathan
>>
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>
>>
>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20150104/296c9cd2/attachment.html>


More information about the yt-dev mailing list