Skip to content

Instantly share code, notes, and snippets.

@nbeloglazov
Last active August 29, 2015 14:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbeloglazov/2eb91a21cb3fb97a2a54 to your computer and use it in GitHub Desktop.
Save nbeloglazov/2eb91a21cb3fb97a2a54 to your computer and use it in GitHub Desktop.
Setting up Hatnik to automatically update version in README
  1. Login to http://hatnik.com
  2. Click "Add action".
  3. Enter library.
  4. Change action type to Pull Request.
  5. Enter you repository.
  6. Setup pull request operation: file=README.md, regex={{library}} "[^"]+", replacement={{library}} "{{version}}".
  7. Test pull request if you want to. It will open pull request using "2.3.4" as "new" version for the library. To test pull request use "Test" button.
  8. Click "Create".

Note: Hatnik will not open pull request if version in README is correct, only if you forget to update it next time you do release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment