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.
- Host: GitHub
- URL: https://github.com/terrymooreii/commit-selfie
- Owner: TerryMooreII
- License: bsd-2-clause
- Created: 2015-03-27T01:14:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T00:26:14.000Z (about 11 years ago)
- Last Synced: 2025-03-23T05:44:02.113Z (about 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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