7f7a7eabb6
Closes #17 commit 12d7e50a818720ff2c44e4e9475eef78a1dc0174 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:27:56 2017 +0100 Update eslintrc commit f583442dcdf7e3180d2da5464693df12f4419152 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:22:15 2017 +0100 Add eslint and config commit 59334f7a7311c451ef7aa4e0759d9c09686e86c6 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:20:24 2017 +0100 Refactor promise for linting commit 288f0e753a3d1e93f1b14e3e80692861fab0fff0 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 19:09:48 2017 +0100 Fix more promise lints commit 7f602a149c60da123bc010965ec8be78b3fa7ab1 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 18:30:18 2017 +0100 lint github promises commit dd6b78340e5a9c128e83aa87da8e3714e3947e82 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 18:30:10 2017 +0100 lint npm promises commit 5c48c159c7ab89999e7966d93c4b1c9f1179d95d Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:25:13 2017 +0100 Lint packageJson helper commit b440eb83fccdc2c1afbd3e3b74c6798e35b3533f Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:04:56 2017 +0100 Fix github helper lint commit 269c84a2be8a2e9cd495d4f90893eaaccd8a2156 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:00:48 2017 +0100 Fix typo commit 548ca6c31f3f4417995c65f4466d216a4918387e Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:00:29 2017 +0100 Fix npm lint commit f8ea5d5b72745e7cbebad184f46fc3046f57a525 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:56:15 2017 +0100 lint defaults commit 6130092a57d37d62ed8f1274817ce81dfdae84bc Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:52:16 2017 +0100 Finish index commit 9e2b6f5e02fad38904172b40811043a0caab879b Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:40:06 2017 +0100 Fix string concatenation commit 47b7cdac3f0acc6588e403dff3cacfda27789472 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:38:23 2017 +0100 Fix arrow syntax commit 27b8db685f7ee66e914754fd578d421f39656397 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:29:10 2017 +0100 Refactor updateDependency commit 272f012583ac514709c81ffd7a68f50f0b4ed2b3 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:15:43 2017 +0100 Refactor ensureCommit commit 1e1ff56d6b94a8ef6a360213715563452a0957e8 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 13:54:02 2017 +0100 Refactor ensurePr |
||
---|---|---|
src | ||
.eslintrc.js | ||
.gitignore | ||
package.json | ||
README.md |
renovate
Keep npm dependencies up-to-date.
Before you Start
To run this script, you will need to select a GitHub account for it to use. The account will need read/write access to push and update upgrade branches to GitHub, as well as raise Pull Requests.
We recommend using a "bot" account so that it's clear to other users of the repository that these are automated actions and not a team member performing them all manually.
The script will need a GitHub "access token" for authenticating API access. You can find instructions for generating it here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
This token needs to be exposed via the environment variable RENOVATE_TOKEN
.
Running the Script
To run the script from the command line, you will need Node.js version 6 or greater.
First, install dependencies for this script by running npm install
.
The script can then be run like this:
node src <username>/<repo> <path to package.json>
The <path to package.json>
argument is optional, and is only needed if your package.json
is located somewhere other than the root of the repository.
Example of running with default package.json
location:
node src singapore/renovate
Example of running with a custom package.json
location:
node src JDSUW284HSJDSFKSUS22942H2H15KK singapore/renovate containers/build/package.json
Note: as mentioned above, you need to expose the environment variable RENOVATE_TOKEN
. One way of doing it is like this:
RENOVATE_TOKEN=JDSUW284HSJDSFKSUS22942H2H15KK node src singpaore/renovate