Code Monkey home page Code Monkey logo

landa's People

Contributors

balloob avatar cjlarose avatar robertmaloney avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

landa's Issues

Landa creates commit statuses on wrong commit sometimes

https://github.com/appfolio/landa/blob/a27faf2c30384ed8c9d249197f75eb499a0a006a/lambda_function.py#L130

Landa adds commit statues to the last commit returned by the PR's list of commits, which are ordered by authorship time. This is not a reliable way to get the head commit because ordering commits by authorship time does form a topological ordering. Landa should instead just use the PR's head commit to add statuses.

Here's an example of it doing the wrong thing: https://github.com/appfolio/mycase_app/pull/2950

Do not create github status(es) if they already exist

Currently, the github status(es) are created (as pending) whenever a PR is opened or a new commit is made to a PR. This works well in situations when CI is configured to run on PRs (refs/pulls/*/head). However, in cases where CI is configured to run on commits (refs/head/*), opening a PR can cause landa to override previously reported status with pending ones.

We could improve landa to first check whether a status for a sha already exists before creating one.

@balloob thoughts?

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.