Update your dependencies, with hooks, for developers.
This repository is now in read only. Since the creation of this project, viable alternative are available and provide more flexibility.
Thank you for your service lure, have a good end of life
First create a lure.config in the repository you want to keep your dependencies up-to-date.
The file should look like:
{
"projects": [{
"vcs": "hg",
"host": "bitbucket",
"owner": "dreisch",
"name": "catfeederhg",
"defaultBranch": "default",
"branchPrefix": "lure-",
"useDefaultReviewers": false,
"skipPackageManager": {
"mvn": true,
"npm": false
},
"commands": [{
"name": "updateDependencies",
"args": {
"commitMessage": "Update {{.module}} to {{.version}}\nMYJIRA-1234",
"pullRequestDescription": "{{.module}} version {{.version}} is now available! Please update.\nMYJIRA-1234"
}
}]
},
{
"vcs": "git",
"host": "github",
"owner": "dreisch",
"name": "catfeedergit",
"defaultBranch": "master",
"branchPrefix": "lure-",
"commands": [{
"name": "synchronizedBranches",
"args": {
"from": "staging",
"to": "develop"
}
}]
}
]
}
Possible vcs are:
gitfor githgfor mercurial
Possible hosts are github and bitbucket. For now, bitbucket is the default.
The possible commands are:
updateDependenciessynchronizedBranches
Other:
owner: https ://bitbucket.org/owner/name or https ://github.com/owner/namename: https ://bitbucket.org/owner/name or https ://github.com/owner/nameskipPackageManager(Optional): Allows to explicitly skip a package manager update. Allowed keys are:npmandmvn.useDefaultReviewers(Optional): True by default, allows NOT using the default reviewer list on pull requests.
eg, in jenkins:
git config --global user.email "Youmail@example.com"
git config --global user.name "jenkins"
wget https://github.com/coveooss/lure/releases/latest/download/lure-linux-amd64 -O lure
chmod +x lure
./lure -auth env -config ${WORKSPACE}/lure.config
Environment variables:
IGNORE_DECLINED_PR=1Will ignore declined PR when looking if the PR existsLURE_AUTO_OPEN_AUTH_PAGEautomaticaly open the browser when using OAuthDRY_RUNwon't create a PR
With Bitbucket: You need bitbucket api-key and api-secret, see, the bitbucket documentation for OAuth setup.
BITBUCKET_CLIENT_IDthe bitbucket OAuth Key previously createdBITBUCKET_CLIENT_SECRETthe bitbucket OAuth Secret previously created
With GitHub:
You can provide an access token from a GitHub App: GITHUB_ACCESS_TOKEN
Another option is to provide a username and password. When using a Personal Access Token, for example:
GITHUB_USERNAMEGITHUB_PASSWORD
Custom parameter:
-verboseWill print additional logs that could be helpful for debugging
if you're an old time go user you already know what to do
mkdir -p $HOME/go/In your bitbucket app, set the callback url to http://localhost:9090/callback
Build:
go build lure.goFor more information about building, you can check the BUILD.md.