Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent script creating a preview branch from displaying error-looking messages. #5388

Open
1 task
romaricpascal opened this issue Oct 7, 2024 · 0 comments

Comments

@romaricpascal
Copy link
Member

romaricpascal commented Oct 7, 2024

What

Prevent the script creating a preview branch from displaying error-looking messages, which judging by the message happens while lint-staged gets run during the commit.

Why

The logs of the script creating the preview branch show a line starting with a red cross:

✍️ Force commit package
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✖ The following paths are ignored by one of your .gitignore files:
  packages/govuk-frontend/dist
  hint: Use -f if you really want to add them.
  hint: Turn this message off by running
  hint: "git config advice.addIgnoredFile false"
✔ Cleaning up temporary files...

This makes it look like something failed in the process when everything was fine.

Who needs to work on this

Who needs to review this

Done when

  • Creating a preview branch no longer shows error-looking messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant