Coder Social home page Coder Social logo

Comments (5)

sibelius avatar sibelius commented on September 27, 2024

related to danger/danger#45

from entria-deploy.

sibelius avatar sibelius commented on September 27, 2024

check this https://discuss.circleci.com/t/circle-compare-url-is-empty-when-running-a-workflow-job/25299/5

LAST_SUCCESSFUL_BUILD_URL="https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH?filter=completed&limit=1"
LAST_SUCCESSFUL_COMMIT=`curl -Ss -u "$API_KEY:" $LAST_SUCCESSFUL_BUILD_URL | jq -r '.[0]["vcs_revision"]'`
CHANGES_SINCE_LAST_COMMIT=`git diff --name-only $CIRCLE_SHA1..$LAST_SUCCESSFUL_COMMIT`
changesArray=( $CHANGES_SINCE_LAST_COMMIT )

from entria-deploy.

sibelius avatar sibelius commented on September 27, 2024

related to https://github.com/danger/danger/blob/master/lib/danger/ci_source/circle_api.rb

from entria-deploy.

sibelius avatar sibelius commented on September 27, 2024

check this https://github.com/iynere/compare-url-orb

from entria-deploy.

sibelius avatar sibelius commented on September 27, 2024

we can use pipeline variables

https://circleci.com/docs/2.0/pipeline-variables/#pipeline-values

CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>

from entria-deploy.

Related Issues (5)

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.