• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

pull-requests

Show Pull Request comments inside Atom
  • #github
  • #pull request
  • #comments
philschatz
5,488
25
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

pull-requests package for Atom gh-board

View/Edit comments on a Pull Request directly inside the Atom Editor.

atom-pull-requests

Annoyed when someone litters your elegant code with "comments", and "suggestions"? and then you have to sift through all the files in your text editor to find the right place? Fear no more!

Setup

GitHub restricts talking to their API. You can view public repositories without having to authenticate against GitHub but will be limited to 60 requests per hour.

If you want to look at private repositories or are requesting more than 60 times per hour, you can create a token at https://github.com/settings/tokens and set that in the plugin config.

  • Just leave all the scopes checkboxes unchecked to give this plugin the minimal permissions necessary.

TODO

  • [x] work with private or enterprise repositories (see package settings)
  • [x] show comment counts in tree view and in file tab
  • [x] render all MarkDown in the comments
    • [ ] render emojis
  • [ ] support forked Pull Requests
  • [ ] do local diff of all commits since the one pushed to GitHub
    • [ ] let user know that they have unpushed commits
  • [ ] support comments made to the entire Pull Request (not just lines in the code)

Atom API Suggestions

  • expose a tree-view file decorator that can add classes asynchronously
    • see atom/tree-view#658 for progress on this feature
  • expose a tabs filename decorator so open tabs can have the # of comments in the file

atom-community/linter suggestions

  • provide icons in gutter markers

Config

For private repositories you need to create a token @ github:

  1. Go to https://github.com/settings/tokens and create a new token
  2. Open your config.cson
  3. Add this snippet (replacing 'my-git-token' with the token you created
  "pull-requests":
    githubAuthorizationToken: "my-git-token"

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by