Renovate: Configure PR still adds `renovate.json` when you have it in package.json

Created on 6 Aug 2017  路  13Comments  路  Source: renovatebot/renovate

I have and kinda prefer the config of it to be in the package.json. When it detects package.json to look for renovate field and only if there's no such field to add renovate.json.

_(btw, side question [not worth whole new issue] how to ignore pinning only specific package, like semantic release, which should be with caret always - i know i can just close the future pr that will come, but isn't in next run try to pin it again? or when new release of it it will send pr with pinned version?)_

priority-3-normal

All 13 comments

So you added config to package.json then installed Renovate App for the repo? And it raises unnecessary PR still?

To target specific packages, add config like this:

"packageRules": [{
  "packageNames: ["semantic-release"],
  "pinVersions": false
}]

Note this used to be called "packages", now renamed to "packageRules". Both work, but don't use both at the same time.

Yea, look over here https://github.com/tunnckoCore/koa-better-serve/pull/6.

Actually, not sure what is the exact case. Maybe is interesting, because PR is sent 5 minutes after the commit that has the config, the old one package.json didn't have renovate field.

BUT, there's but. Because Renovate is activated only on @tunnckoCore, before some time (dont know how much, but in around last hour +/- some mins) i moved it there from @charlike profile (so it's activated on that moment). So maybe that's the reason.

So yea, maybe my fault. I will probably do more moves today, so we'll see if there is really a problem.

To target specific packages, add config like this:

Cool! Thanks :blossom:

You can always just close the PR I merged and it will then use package json config if found. But I'll keep this open to investigate if we can prevent this in the first place.

Renovate runs on hourly schedule still so any "5 minutes after" is purely coincidental.

Renovate runs on hourly schedule still so any "5 minutes after" is purely coincidental.

Yea, yea, probably that's what happened. Because in the moment when it was activated (in the moment of move) there was the old package.json :)

BTW Renovate only looks for either Configure Renovate PR or renovate.json so this behaviour is expected. But it's probably OK to also look for a renovate config in root package.json too.

If i close its Configure PR, does it will run next time? huh, what stupid question ;d

Yes it runs if it finds any closed configure PR

Don't know, look carefully the numbers and my clock (my clock is GMT+3 currently too):

2017-08-06-14 58 34_1280x1024_scrot
2017-08-06-14 58 26_1280x1024_scrot

There are no new PRs. Am i crazy, or today is just very bad day for me :sob: :scream: (not because renovate ;p)

But why are you expecting any PRs for that repo? With the default settings (in Configure Renovate PR) there was just one PR expected - pinning semantic-release. But then in your package.json you've unpinned that package so therefore.. nothing to do?

Oh god, yea, sorry! :D Awful day.

I'll close it, and will see if it happens to some other repos :)

Was this page helpful?
0 / 5 - 0 ratings