Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
selbyk committed Oct 11, 2017
1 parent 1b71930 commit 1ab2657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ci-services/codeship.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const pkg = relative('./package.json')
* Generates repoSlug from user set `GH_ORG` env var and Codeship set
* `CI_REPO_NAME`. Fails back to extracting from `package.json`.repository.url
*/
function getRepoSlug() {
function getRepoSlug () {
if (env.GH_ORG) {
return `${env.GH_ORG}/${env.CI_REPO_NAME}`
} else {
let re = /github\.com[:/]([^/]+\/[^/\.]+)/g
let re = /github\.com[:/]([^/]+\/[^/\.]+)/g // eslint-disable-line no-useless-escape
let result
if (pkg.repository.url) {
result = re.exec(pkg.repository.url)
Expand All @@ -29,7 +29,7 @@ function getRepoSlug() {
/**
* Should update the `package-lock.json`
*/
function shouldUpdate() {
function shouldUpdate () {
let re = /^(chore|fix)\(package\): update [^ ]+ to version.*$/mi
return re.test(env.CI_COMMIT_MESSAGE)
}
Expand Down
2 changes: 1 addition & 1 deletion upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = function upload () {
urlParsed.auth = env.GH_TOKEN
remote = url.format(urlParsed)
}

exec(`git remote add gk-origin ${remote}`)
exec(`git push gk-origin HEAD:${info.branchName}`)
}
Expand Down

0 comments on commit 1ab2657

Please sign in to comment.