Skip to content

Conversation

@bigpresh
Copy link
Owner

NOT QUITE READY

Overhauling to use the V3 API, since V2 is gone.

We can use personal API tokens (see #6) so don't need hateful OAuth pain!

Need to finish and merge this, then finish and merge the work to use hooks to announce rather than polling.

bigpresh added 10 commits March 13, 2014 23:12
Use a password.  These days, that needn't be the user's GH password, though;
they can create as many tokens with limited privileges as they want.
When getting a Net::GitHub::V3 object for a given owner/repo, call
set_default_user_repo() on it before returning it.
Net::GitHub::V3 doesn't use them.
Amusing problem I encountered - bot was running this module, plus the normal
Title module (which announces the title of links).

It would see a SHA, fetch the details, and announce the details - including the
link to the commit.  The Title module would see that link, and announce the
title of the link - which includes the SHA.  This module would see the SHA, and
announce the details... turtles all the way down!

(TODO: submit a patch so Title ignores stuff the bot itself says.)
Wow, that was easy :)
Use the V3 API to get pull request details, rather than just URI::Title.

Finally, we can handle PRs for private repos!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants