GithubHelp home page GithubHelp logo

bitbucket-pr's Introduction

About Me

Sometimes I have things to say; you can find my assorted ramblings for your reading pleasure here.

I have excellent knowledge of many different technology stacks, and can recognise potential weaknesses and design effective solutions. I understand the interplay between new features, system complexity, and technical debt, and can make trade-offs among them effectively to deliver the solution you need.

GitHub Stats


github-snake

bitbucket-pr's People

Contributors

dependabot[bot] avatar mcwarman avatar quotidian-ennui avatar

Watchers

 avatar  avatar

bitbucket-pr's Issues

error output is not informative, since there is none.

# Note that all these operations took over much longer than expected
bsh ❯ bb-pr squash-msg
---
feat!: add truncate to REST endpoints with backing database (pull request #117)
...
---
is now in your clipboard

Ubuntu-22.04 took 31s
bsh ❯ bb-pr close-branch
close_source_branch now true

Ubuntu-22.04 took 4s
bsh ❯ bb-pr squash-merge
Operation failed...

Ubuntu-22.04 took 1m36s
bsh ❯ bb-pr squash-merge
>>> No PR

Ubuntu-22.04 took 22s

So the attempt to squash merge failed, but it was actually squash merged (since I checked bitbucket manually afterwards).

Probably because the HTTP response here, doesn't conform to expectations which means we just get nulls which don't get emitted ?

bitbucket-pr/bb-pr

Lines 281 to 287 in 13182b7

http_code=$(curl -X POST -sSL --user "$CURL_AUTH" -H "$CURL_HEADER_ACCEPT" -H "$CURL_HEADER_CTYPE" "$pull_request_url" "--data" "@$WORK_FILE" -o "$SQUASH_MERGE_OUTPUT" -w "%{http_code}")
if [[ "$http_code" -ge "400" ]]; then
#shellcheck disable=SC2002
cat "${SQUASH_MERGE_OUTPUT}" | jq --raw-output "$failure_jq_transform" | column -s "|" -t -N "ID,STATE"
echo Operation failed...
exit 1
else

Deal with merge checks failures

When merge check has failed and you run squash-merge, the errors are lost in a curl error.

{
  "type": "error",
  "error": {
    "message": "3 failed merge checks",
    "fields": {
      "merge_checks": [
        "At least 1 approval",
        "No failed builds on last commit",
        "At most 1 commit behind destination"
      ]
    }
  }
}

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.