Code Monkey home page Code Monkey logo

renovate-approve-bot's Introduction

renovate-approve-bot

A GitHub App that serves only to submit approving Pull Request Reviews for PRs from Renovate Bot. This enables you to require Pull Request Reviews on your project while also still utilising Renovate's "automerge" benefits.

If you are using the Mend Renovate App for github.com then you can install a hosted version of this approve bot here: https://github.com/apps/renovate-approve

renovate-approve-bot's People

Contributors

camjc avatar caseydialpad avatar cdrini avatar cjorge-graphops avatar honkinggoose avatar huydinhle avatar krohrsb avatar morremeyer avatar rarkins avatar renovate-bot avatar renovate[bot] avatar terodox avatar thekevjames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

renovate-approve-bot's Issues

Can't Add Bot to CODEOWNERS?

Hello,

I have been recently using both renovate and renovate-approve for many of my repos. I ran into an issue where my CODEOWNERS file was breaking. I reached out to GitHub support this was their response. This directly conflicts with the description of

"If you need to add this bot to your CODEOWNERS, you can identify it using app/renovate-approve."

image

Doesn't review on updates

with the Dismiss stale pull request approvals when new commits are pushed setting enabled on branch protection then the approve-bot doesn't re-approve on subsequent commits
what this means in the real world is if renovatebot creates 5 prs, 1 will get approved and merged, the others will auto rebase or merge commit, but then approve-bot doesn't approve it, so i've now got 4 prs I need to manually approve.
Hope that makes sense?

It would appear that this: https://github.com/renovatebot/renovate-approve-bot/blob/main/index.js#L61
isn't happening, for example:
DaftDoris/newsdesk#447 (comment)

Building using docker results in an error.

The utilities adduser, addgroup and apk experienced some hiccups with the change to the amd64/node image. I have created a PR at #44 that resolves the error. See the PR for more details.

Can I use renovate-approve-bot for Java, Python and Docker

I have few questions, as I am new to renovate. Kindly assist.

Can I use renovate-approve for Java, Python and Docker ?

I reason I have this question is because package.json is used in dockerfile

If available, Please provide the detailed documentation as to how to build the dockerfile and deploy in OCP. We have renovate already on OCP from other team, how to integrate approve bot to make it work with renovate ?

[renovate-approve] Don't approve PRs whose checks fail

Which Renovate are you using? x the right box:

  • Renovate Open Source CLI
  • WhiteSource Renovate App
  • Renovate Pro
  • Other (please write below)

Which platform are you using? x the right box:

  • GitHub.com
  • GitHub Enterprise
  • GitLab.com
  • GitLab self-hosted
  • Bitbucket Server
  • Bitbucket Cloud
  • Azure DevOps

What would you like to do?

I have the renovate-approve BOT enabled and I'm noticing that it's approving PRs even when the status checks (like our CI status check) is red. I wouldn't expect the BOT to approve PRs whose status checks are not green. Is there a way to configure this?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • chore(deps): update actions/checkout action to v4
  • chore(deps): update docker/build-push-action action to v5
  • chore(deps): update docker/login-action action to v3
  • chore(deps): update docker/metadata-action action to v5
  • chore(deps): update docker/setup-buildx-action action to v3
  • chore(deps): update docker/setup-qemu-action action to v3
  • fix(deps): update dependency probot to v13
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • node 20-alpine@sha256:f3d945e503328d76a54533ce1cbe8d6de03df16b00002f2ec1a890a28d1d6bd6
github-actions
.github/workflows/build.yml
  • actions/checkout v3.6.0@f43a0e5ff2bd294095638e18286ca9a3d1956744
  • docker/setup-qemu-action v2.2.0@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7
  • docker/setup-buildx-action v2.10.0@885d1462b80bc1c1c7f0b00334ad271f09369c55
  • docker/login-action v2.2.0@465a07811f14bebb1938fbed4728c6a1ff8901fc
  • docker/metadata-action v4.6.0@818d4b7b91585d195f67373fd9cb0332e31a7175
  • docker/build-push-action v4.2.1@0a97817b6ade9f46837855d676c4cca3a2471fc9
npm
package.json
  • probot 12.3.4
  • node 20.x

  • Check this box to trigger a request for Renovate to run again on this repository

The approve bot does not review renovate PRs in Github.com

I've hopefully done all the right things:

  1. Added renovate approve bot with the right permissions to the repository
  2. I don't have branch restrictions on who can push to the branch
  3. The branch has automerge enabled and all statuses succeed

If the approve bot was working, would it immediately add a review or could that be delayed? Thats the only thing I'm not sure about because in the process of testing things some branches have been blocked by statuses or conflicts.

here is a public example branch that I ended up merging myself because no review came from renovate: woocommerce/woocommerce-admin#5045

`renovate-approve` not working with `forking-renovate`

Background:

The AMP Project has been using forking-renovate for a couple years now, and I'm in the midst of trying to up our game by enabling auto-review and auto-merge for upgrade PRs that pass other CI checks. However, I haven't been able to get things to work after multiple tries, and figured I'd check in here for help. Please feel free to move this issue if this is the wrong repo.

Details:

Problems:

  • renovate-approve has not been added as a reviewer / approver for any PR thus far
  • If I manually review / approve a PR such that all PR statuses are green, the PR is still not being auto-merged

Questions:

  • Is auto-merge supposed to work with forking-renovate?
  • Are the steps listed above the correct steps? (Or did I misconfigure something?)
  • Any other steps I should've taken?

Thanks in advance for the help!

Support dismissed reviews/force pushes

If the user has configured to dismiss PR reviews when they're stale, then Renovate Approve's approval will be removed every time the branch is rebased/force pushed. Renovate Approve needs extra logic to detect this and add a new approval.

Nightrider1983

          ```suggestion

Renovate supports OCI HelmRepository sources (type: oci).
Renovate will extract the docker dependencies for the referenced HelmRelease resources.


I'd like to see something like this. Where we have two full sentences, and limit the use of `()`. The sentence should also say who does what.

Please check if my suggestion is accurate. ๐Ÿ˜‰

_Originally posted by @HonkingGoose in https://github.com/renovatebot/renovate/pull/24197#discussion_r1313047488_
            

Only approve PRs where auto-merge is available

We enabled automerge on some sub-configuration (subset of devDependencies packages) in an attempt to reduce the noise in our PRs (and increase even more the value of Renovate!), but even with this type of PRs:

๐Ÿšฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.

The renovate-approve bot approves the PRs, doubling the amount of emails/etc.

Since this bot's job is to only help automerges, it would be great if it was only approving PRs with:

๐Ÿšฆ Automerge: Enabled.

Thanks! ๐Ÿ™

Convert to github actions

Hello,

is there any plan to convert this bot as a github actions workflow, so that it runs whenever a PR is opened, this is similar to what is happening here

not adding approvals for replacements PRs

i've started configuring replacements within a private project that has approval requirements. while the approval bots have been working well for dependency update PRs, i noticed that approvals were not added to replacement PRs.

is this an intentional limitation? if it is unexpected, what details could i provide that would be helpful?

We need third approver.

Currently, there are two Renovate Approve apps available on GitHub:

  • Renovate Approve
  • Renovate Approve 2

We need to have third, how we can get "Renovate Approve 3" ๐Ÿ˜…

Best regards

Using `renovate-approve` with self-hosted renovate

First off, both renovate and renovate-approve are fantastic tools! Thank you!

I am looking to use renovate-approve-bot with a self-hosted renovate-bot deployment. Is there a simple way to configure renovate-approve to approve changes created by our renovate user (our user is a Github user)?

If I am understanding the code base, it appears that it the process.env.RENOVATE_BOT_USER variable is configurable to new usernames (though it looks like it pulls that from the deployment's environment).

Is it simply the case I will need to self-host the renovate-approve bot in a private app to configure that setting? If so, would you be able to provide some guidance on running it in a private app?

Let a human review Renovate's config migration PRs, instead of auto-approving

The renovate-approve-bot automatically approves Renovate's configuration migration PRs. I think we should let our users review the changes themselves instead of auto-approving.

Right now the configuration migration PRs makes some whitespace and ordering changes, so the PR probably needs to be fixed up by the user anyways.

To summarize: disable renovate-approve-bot approval for Renovate config PRs.

Have a second approval bot

I would like to require 2 reviewers, but that would mean renovate-approve alone is not enough.

Is there a way to have 2 of these bots?

renovate-approve-bot-2 not opening reviews anymore

Since approximately yesterday at noon GMT, renovate-approve-bot 2 does not open any reviews on our repository https://github.com/ecamp/ecamp3 anymore. I already tried re-installing the bot, and renovate has opened a new PR since then, but approve-bot 2 seems to be on vacation. Do you have any insights on this?

Strangely, it first stopped working on ecamp/ecamp3#865 but still worked on ecamp/ecamp3#864 two hours later.

We have recently changed the renovate config in ecamp/ecamp3#854, maybe it's something to do with that. However, renovate itself works perfectly fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.