-
Notifications
You must be signed in to change notification settings - Fork 20
TravisBuddy Reactions - Labels #53
Comments
This sounds interesting: I'd like to help with this. What wrapper do you use for the GitHub API / Where can I find the docs? Do you have any automated tests which should be expanded to test this new functionality? |
Sorry, missed this comment somehow. I'm using a fork of github-tools/github, that can be found here: bluzi/github. Querying the labels really is the challenge of this task, you can read about it at https://developer.github.com/v3/. As to the tests, you can add make a simple unit test. Note that if you're working on it you probably want to rebase your fork since I've made a big change to the codebase. |
@bluzi Sounds good. I'll look into that now. |
I think I need pagination for this aswell like the change you made to the comment list methods, right? |
Probably. If I remember correctly every method in GitHub API brings up to 30 entities per page, so 30 labels on one issue is pretty rear, but just in case i guess |
And yeah, I guess it worth a PR in the upstream repo, though it's true it's no longer maintained. I'm thinking about taking this fork as a project to make a decent GitHub API for Node, since it's not the first time github-tool disappoints me, and it doesn't seem like there's an alternative. |
@bluzi Okay, just in case then. And for the GitHub API:
Haven't looked into the second one yet. But your idea also sounds good, check the second one out first though. |
|
Okay that's sad to hear. For now I think the best way to move forward is to extend the github tools repo. Have you released the new version to npm? |
Look what I just found @bluzi: https://github.com/octokit/rest.js |
That's awesome, I'd even like to convert all the code related to |
I'd like to add this ability should be stated somewhere on the comment it posts. Because I don't care about Travis results: I don't use it, but the fork of the very active project I forked from does, and I'd really prefer if it didn't comment every time they push yet another commit to their master I've got a PR from... And I've gotten very annoyed with this bot filling my inbox with pointless comments... Even a link somewhere saying "am I doing bad? Click here to see how to turn me off" would be wonderful... |
@tustin2121 This isn't implemented yet. Easiest way currently is to remove it from .travis.yml |
a. Your comment is not related to the above issue at all, no idea why you chose to post it here |
@bluzi a) This issue mentioned the problem I was having with it posting in a Pull Request, which it was doing several times in a single day. b) That's too many clicks, in my opinion. But never mind anyway, because I recently found what caused the bot to suddenly become interested in my PR (added by the upstream project and not me), and I'll be putting a bullet in that bit. So, I apologize for the rage-induced comment. |
Summary
The idea of TravisBuddy Reactions is to allow contributors to communicate with TravisBuddy using comments and labels.
travisbuddy-ignore
labelAdding a label named
travisbuddy-ignore
to a PR should force TravisBuddy to ignore this PR and stop commenting on it.Just like in #37,
routes/api.routes.js
is probably the right place to query GitHub and see if the label is presented in the PR, and drop the request.The text was updated successfully, but these errors were encountered: