Coder Social home page Coder Social logo

Comments (8)

albertsundjaja avatar albertsundjaja commented on June 13, 2024 4

Actually, in my case it was because I forgot to update my repo with the latest code before submitting a pull request. So you should try fetching from the upstream git fetch upstream to pull the latest update

step to do it:

  1. add the upstream
    git remote add upstream https://github.com/twilio-labs/open-pixel-art
    git fetch upstream

  2. pull it to your master branch
    git pull upstream master

  3. merge your add-my-new-pixel branch
    git checkout master
    git merge add-my-new-pixel

  4. push it
    git push

  5. then create the pull request, it should pass (just like what I did)

from open-pixel-art.

dkundel avatar dkundel commented on June 13, 2024 1

Yeah I think we can fix that one by setting up a second GitHub action that runs on push events that will:

  1. checkout
  2. run npm install
  3. run npm run prettier
  4. run node tasks/sortPixels.js
  5. run commit any changes using https://github.com/marketplace/actions/push-new-files-back-to-master

That way hopefully nobody should catch accidental formatting in their PRs.

from open-pixel-art.

welcome avatar welcome commented on June 13, 2024

Thank you so much for opening your first issue for this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)

picture of dog

from open-pixel-art.

clanghout avatar clanghout commented on June 13, 2024

Due to the commit hook, the list gets automatically sorted, and master has some pixels that are not in place.
This means a lot of new pull requests touch more code than 1 line in the pixels data file, making the code review check fail on the danger step. A manually checked pr has to fix the ordering to allow these PRs to be accepted.

from open-pixel-art.

dkundel avatar dkundel commented on June 13, 2024

Yeah there's a few different problems in here some of which are easier to fix than others. Updating your fork from upstream is the easiest way to fix some of the issues.

Git seems to sometimes randomly struggle with merging the changes in the pixels.json occasionally. The general strategy would be to accept current and then add your contribution back.

I'm open for any ideas to improve the bots.

from open-pixel-art.

linda-lai avatar linda-lai commented on June 13, 2024

Along with the upstream fetch problem, the docs said to run npm test - when I did, the linter also corrected some extra whitespace in the test suite, which then flagged that I had altered more than 1 file/a file other than pixels.json.

I ended up closing the PR and raising a new one. When I tried to merge that one, I noticed that it automatically ran the tests, passed and auto-merged. So I think this is also causing a lot of PR auto-merges to fail.

from open-pixel-art.

ItaloSa avatar ItaloSa commented on June 13, 2024

@dkundel do you think that a pre-push hook solves this problem? We could use husky and configure these steps.

from open-pixel-art.

dkundel avatar dkundel commented on June 13, 2024

Yeah I think so. I'm already creating a sync script that we could use that in a pre-push hook. Once #991 is done, this would be a great addition

from open-pixel-art.

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.