An open API service indexing awesome lists of open source software.

https://github.com/terrymooreii/commit-selfie

Take a pic and upload to imgur when commiting to git.
https://github.com/terrymooreii/commit-selfie

Last synced: 2 months ago
JSON representation

Take a pic and upload to imgur when commiting to git.

Awesome Lists containing this project

README

          

Commit Selfie
================

Take a picture and upload it to imgur.com at every commit. The url to the uploaded image is appended to the commit message.

How-to
---------
- Clone this repo to the `.git/` folder of your project
- Navigate the `.git/commit-selfie` folder and run `npm install`
- Go to imgur.com and get an API key
- Create a config.js and add your keys to it (See below)
- Copy the `commit-msg` git hook to the `.git/hooks/` folder.

Config.js
-------------
```javascript
exports.imgur = {
clientId: '',
clientSecret: ''
};
```
Dark Images
-----------------
If your images are dark then increase the `FRAME_TO_UPLOAD` value.

Requirements
--------------
mplayer

Supported OS
---------------
Only tested on Linux

NOTE
============
Adding this to your `.git` folder might be a really bad idea. Use this at your own risk