Code Monkey home page Code Monkey logo

Comments (10)

fbartho avatar fbartho commented on July 27, 2024 1

Thanks @mwaddell! That looks great. I’ll try that out.

from fetch-metadata.

fbartho avatar fbartho commented on July 27, 2024 1

I can confirm that #188 fixed this issue for us! -- It took a moment to get new Dependabot PRs to verify everything was working!

Obviously we'd still prefer a technique that doesn't require checking out the repo twice, but this is a good workaround for now.

Thanks!

from fetch-metadata.

fbartho avatar fbartho commented on July 27, 2024

Warning Turns out, that that CLI command I proposed above doesn’t reliably work. So I’m still looking for a less-noisy solution to this problem if anybody has any advice?

from fetch-metadata.

mwaddell avatar mwaddell commented on July 27, 2024

@fbartho How about something like:

if [ $(gh pr status --json reviewDecision -q .currentBranch.reviewDecision) == "REVIEW_REQUIRED" ]; then 
  gh pr review --approve "$PR_URL"
else
  echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
fi

from fetch-metadata.

mwaddell avatar mwaddell commented on July 27, 2024

@fbartho - let me know if that worked, if so, I'll update the example in our documentation.

from fetch-metadata.

fbartho avatar fbartho commented on July 27, 2024

@mwaddell Looks like it's working! Thanks!

from fetch-metadata.

fbartho avatar fbartho commented on July 27, 2024

@mwaddell Actually, I spoke too soon. Looks like a bash error?

image

from fetch-metadata.

mwaddell avatar mwaddell commented on July 27, 2024

I looked into it a bit more, and it looks like this approach won't work until they fix cli/cli#575

👎

from fetch-metadata.

fbartho avatar fbartho commented on July 27, 2024

Bummer! Could I ensure our upstream is set for the repo or otherwise configure it for the purposes of this API call?

from fetch-metadata.

mwaddell avatar mwaddell commented on July 27, 2024

Bummer! Could I ensure our upstream is set for the repo or otherwise configure it for the purposes of this API call?

I think I figured out a workaround - see if #188 works for you. It looks a little silly to checkout the repo and then check it out again, but that's the only way to force the upstream to be set properly.

from fetch-metadata.

Related Issues (20)

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.