Skip to content

Commit

Permalink
fix(repository-docs): always update the greenkeeper section in the re…
Browse files Browse the repository at this point in the history
…poDoc
  • Loading branch information
Realtin authored and hulkoba committed Mar 26, 2018
1 parent 2ea5bda commit a5773c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repository-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
async function updateRepoDoc (installationId, doc) {
const fullName = doc.fullName
const greenkeeperConfigFile = await getGreenkeeperConfigFile(installationId, fullName)
_.set(doc, ['greenkeeper'], greenkeeperConfigFile)
const defaultFiles = {
'package.json': [],
'package-lock.json': [],
Expand All @@ -31,7 +32,6 @@ async function updateRepoDoc (installationId, doc) {
if (!_.isEmpty(greenkeeperConfigFile)) {
// TODO: validate configFile
filePathsFromConfig = getPackagePathsFromConfigFile(greenkeeperConfigFile)
_.set(doc, ['greenkeeper'], greenkeeperConfigFile)
}
const filesFromConfig = _.isEmpty(filePathsFromConfig)
? await getFiles(installationId, fullName)
Expand Down

0 comments on commit a5773c0

Please sign in to comment.