📮Untangle your GitHub Notifications
Перейти к файлу
Ben Firshman 80f7e71fc7
Improve Docker development environment
- Wait for database to start on boot so only a single command is
  needed.
- Tidied up readme.
- Explicitly specify build steps instead of using onbuild so
  the apt package cache isn't busted by new code.
- Rename built image to be "octobox"
2016-12-24 18:43:19 +00:00
app Add icons for dock usage 2016-12-23 21:44:13 -05:00
bin Improve Docker development environment 2016-12-24 18:43:19 +00:00
config resolve conflicts with master 2016-12-23 15:43:29 +01:00
db schema.rb updated 2016-12-20 16:14:41 +01:00
lib Add icons for dock usage 2016-12-23 21:44:13 -05:00
log Hello World 2016-12-16 23:22:09 +00:00
public Logo and icon lossless re-compression 2016-12-23 21:02:10 +08:00
test Remove unused archive_all method from user 2016-12-23 17:04:12 +00:00
tmp Hello World 2016-12-16 23:22:09 +00:00
vendor/assets Hello World 2016-12-16 23:22:09 +00:00
.codeclimate.yml Add codeclimate config 2016-12-19 19:50:30 +00:00
.eslintignore Add codeclimate config 2016-12-19 19:50:30 +00:00
.eslintrc Add codeclimate config 2016-12-19 19:50:30 +00:00
.gitignore Setup test coverage with codeclimate 2016-12-19 19:55:19 +00:00
.rubocop.yml Add codeclimate config 2016-12-19 19:50:30 +00:00
.ruby-version Ensure ruby 2.3.3 2016-12-16 23:38:46 +00:00
.travis.yml Setup test coverage with codeclimate 2016-12-19 19:55:19 +00:00
CODE_OF_CONDUCT.md Better readme and code of conduct 2016-12-16 23:39:04 +00:00
CONTRIBUTING.md Moved to Octobox org 2016-12-23 12:15:16 +00:00
Dockerfile Improve Docker development environment 2016-12-24 18:43:19 +00:00
Gemfile Add bugsnag for production error tracking 2016-12-23 13:35:26 +00:00
Gemfile.lock Add bugsnag for production error tracking 2016-12-23 13:35:26 +00:00
LICENSE.txt Hello World 2016-12-16 23:22:09 +00:00
README.md Improve Docker development environment 2016-12-24 18:43:19 +00:00
Rakefile Hello World 2016-12-16 23:22:09 +00:00
app.json Moved to Octobox org 2016-12-23 12:15:16 +00:00
config.ru Hello World 2016-12-16 23:22:09 +00:00
docker-compose.yml Improve Docker development environment 2016-12-24 18:43:19 +00:00

README.md

Octobox 📮

Take back control of your GitHub Notifications with Octobox.

Screenshot of Github Inbox

Build Status Code Climate Test Coverage

Why is this a thing?

If you manage more than one active project on GitHub, you probably find GitHub Notifications pretty lacking.

Notifications are marked as read and disappear from the list as soon as you load the page or view the email of the notification. This makes it very hard to keep on top of which notifications you still need to follow up on.

Most open source maintainers and GitHub staff end up using a complex combination of filters and labels in Gmail to manage their notifications from their inbox. If, like me, you try to avoid email, then you might want something else.

Octobox adds an extra "archived" state to each notification so you can mark it as "done". If new activity happens on the thread/issue/pr, the next time you sync the app the relevant item will be unarchived and moved back into your inbox.

What state is the project in right now?

Octobox is like a little baby. You have to host it yourself and it only works for one user at a time.

Check out the open issues for a glimpse of the future: https://github.com/octobox/octobox/issues.

Deployment to Heroku

You can host your own instance of Octobox using Heroku. Heroku will ask you to provide a 'personal access token' which you can create on GitHub. When creating it, make sure you enable the notifications scope on it.

Deploy

Running Octobox for GitHub Enterprise

In order to setup Octobox for your GitHub Enterprise instance all you need you do is add your enterprise domain to the .env file / deployed environment.

Example:

GITHUB_DOMAIN=https://github.foobar.com

And that's it

Development

The source code is hosted at GitHub. You can report issues/feature requests on GitHub Issues. For other updates, follow me on Twitter: @teabass.

Getting Started

New to Ruby? No worries! You can follow these instructions to install a local server, or you can use the included Vagrant setup.

Installing a Local Server

First things first, you'll need to install Ruby 2.3.3. I recommend using the excellent rbenv, and ruby-build:

brew install rbenv ruby-build
rbenv install 2.3.3
rbenv global 2.3.3

Next, you'll need to make sure that you have PostgreSQL installed. This can be done easily on OSX using Homebrew or by using http://postgresapp.com. Please see these further instructions for installing Postgres via Homebrew.

brew install postgres

On Debian-based Linux distributions you can use apt-get to install Postgres:

sudo apt-get install postgresql postgresql-contrib libpq-dev

Now, let's install the gems from the Gemfile ("Gems" are synonymous with libraries in other languages):

gem install bundler && rbenv rehash
bundle install

Once all the gems are installed, we'll need to create the databases and tables. Rails makes this easy through the use of "Rake" tasks:

bundle exec rake db:create db:migrate

Now go and register a new GitHub OAuth Application, your development configuration should look something like this:

screen shot 2016-12-18 at 21 54 35

If you're deploying this to production, just replace http://localhost:3000 with your applications URL.

Once you've created your application you can then then add the following to your .env:

GITHUB_CLIENT_ID=yourclientidhere
GITHUB_CLIENT_SECRET=yourclientsecrethere

Finally you can boot the rails app:

rails s

Docker

You can use Docker to run Octobox in development.

First, install Docker. If you've got run macOS or Windows, Docker for Mac/Windows makes this really easy.

Then, run:

GITHUB_CLIENT_ID=yourclientid GITHUB_CLIENT_SECRET=yourclientsecret docker-compose up --build

Octobox will be running on http://localhost:3000.

Note: You can add GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET to a .env file instead of supplying them directly on the command-line.

Keyboard shortcuts

You can use keyboard shortcuts to navigate and perform certain actions:

  • r or . - refresh list
  • j - move down the list
  • k - move up the list
  • s - star current notification
  • x - mark/unmark current notification
  • y - archive current/marked notification(s)
  • o or Enter - open current notification in a new window

Press ? for the help menu.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so we don't break it in a future version unintentionally.
  • Send a pull request. Bonus points for topic branches.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copyright (c) 2016 Andrew Nesbitt. See LICENSE for details.