Code Monkey home page Code Monkey logo

Comments (20)

myknbani avatar myknbani commented on June 27, 2024 4

Works on my end too. Thank you @olavoparno and @micalevisk 🎉 🥳

from istanbul-badges-readme.

myknbani avatar myknbani commented on June 27, 2024 3

I'm not sure if I'm using the flag correctly (or understood it correctly), but it always fails:

> istanbul-badges-readme --logo='jest' "--ci" "--exitCode=1"

Istanbul Badges Readme process started
Config check process started
- Readme file exists... ✔️.
- Coverage file exists... ✔️.
- Coverage hashes exist... ✔️.
- Readme hashes exist... ✔️.
Config check process ended
Editor process started
- Getting readme hashes...
- Getting new readme data...
- Getting coverage badge url for statements...
- Writing new readme data...
Editor process ended
Istanbul Badges Readme process finished
Error: Process completed with exit code 1.

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024 2

@myknbani and @micalevisk there is indeed a bug. Thank you @myknbani for testing it. @micalevisk do you want to open a PR fixing it or shall I do so? Thank you too for your support by the way, I really appreciate it :)

from istanbul-badges-readme.

micalevisk avatar micalevisk commented on June 27, 2024 2

@olavoparno

it is working as expected now. ty for the quick release!

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024 1

Hello @micalevisk thanks for opening the issue. Yeah, I think it was a bad design decision, indeed, I think I forgot to throw the error after logging them, so now we have to deal this behavior haha

I will look into your suggestion! Thank you once again :)

from istanbul-badges-readme.

micalevisk avatar micalevisk commented on June 27, 2024 1

@olavoparno sure. Should I add --exit-code optional flag?

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024 1

Yes, I think this is fine. If there's an explanation in the docs I think people will understand :) thank you, really.

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024 1

@micalevisk hello again! Sorry for the dalay, I was caught up with other things :( oh man, I took advantage of your WIP commit and I have already commited to the develop branch a version of exitCode. Sorry for your work, but I think it accomplishes the same thing as I think I got your idea.

from istanbul-badges-readme.

allcontributors avatar allcontributors commented on June 27, 2024 1

@olavoparno

I've put up a pull request to add @micalevisk! 🎉

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024 1

Please do take a look at version 1.8.0 https://www.npmjs.com/package/istanbul-badges-readme/v/1.8.0

Once again, thanks for the patience, mister @micalevisk

from istanbul-badges-readme.

myknbani avatar myknbani commented on June 27, 2024 1

@micalevisk is fast 😅

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024

@micalevisk hello again, sir, I am not having lots of spare time right now, would you mind opening a PR? If not, it's ok, I will try to do ASAP.

from istanbul-badges-readme.

micalevisk avatar micalevisk commented on June 27, 2024

btw I saw that other flags are following camel case then I've chose --exitCode instead 😄

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024

@all-contributors please add @micalevisk for idea, code, bug

from istanbul-badges-readme.

micalevisk avatar micalevisk commented on June 27, 2024

after running this, what's the output of echo $??

from istanbul-badges-readme.

micalevisk avatar micalevisk commented on June 27, 2024

nvm. You're right. I just tested it. This is a bug

from istanbul-badges-readme.

myknbani avatar myknbani commented on June 27, 2024

Also digging through the source code, it seems to just obey --exitCode=whatever all the time 😰
Screenshot from 2021-12-07 10-18-28

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024

@Could you guys test it again https://www.npmjs.com/package/istanbul-badges-readme/v/1.8.1?

Thank you both for the help as always.

from istanbul-badges-readme.

olavoparno avatar olavoparno commented on June 27, 2024

@all-contributors please add @myknbani for bug

from istanbul-badges-readme.

allcontributors avatar allcontributors commented on June 27, 2024

@olavoparno

I've put up a pull request to add @myknbani! 🎉

from istanbul-badges-readme.

Related Issues (13)

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.