Coder Social home page Coder Social logo

Comments (7)

echoix avatar echoix commented on June 14, 2024 2

Are the failures happening here occurring only on a new pull request (coming from a fork) that is enabling Megalinter for a repo? In that case it's probably a permission/protection issue. Some things might be different once merged. You could try it on your fork by first merging the Megalinter enablement.

from megalinter.

svsatish avatar svsatish commented on June 14, 2024 1

Thank you for your response. I was expecting this to be automated by the workflow, creating a PR with fixes to my working branch/PR :) Maybe I missed documentation on this.

from megalinter.

svsatish avatar svsatish commented on June 14, 2024 1

Setting DISABLE_ERRORS: true is applying fixes. Thank you. Closing.

from megalinter.

svsatish avatar svsatish commented on June 14, 2024

Steps - Set APPLY_FIXES_IF var & Set APPLY_FIXES_IF_* vars are being executed after adding if: always() but the next steps is still not being executed with the above condition.

from megalinter.

svsatish avatar svsatish commented on June 14, 2024

Both the above steps are evaluated to true but still the next ones are skipped

image

from megalinter.

svsatish avatar svsatish commented on June 14, 2024

No, It is happening for all PR's and it is not from forked repo. It is from a branch under the same repo. I am not sure why the if: condition is not evaluating. I debuged and they are 'true' as you see in above screenshot. I replaced the if: env.APPLY_FIXES_IF_PR == 'true' with if: always() and it works. I am lost on why with if: condition are being skipped

from megalinter.

nvuillam avatar nvuillam commented on June 14, 2024

To apply fixes, you must have no blocking error duing the MegaLinter step

As a workaround, you can open megalinter-reports artifact and copy-paste the content of folder updated_sources that contain the reformatted sources

from megalinter.

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.