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

Fix pre commit failing on modified ts code #9

Conversation

potiuk
Copy link

@potiuk potiuk commented Aug 29, 2020

No description provided.

potiuk and others added 7 commits July 26, 2020 16:27
After Github Actions introduced `workflow_run` triggere it is
no longer needed to cancel pull request runs from forks via
scheduled runs.

Several `cancelModes` were introduced in order to handle all
cases where canceling runs is desired.

Documentation has been improved showing all cases
and examples how you should implement your own workflow
in those cases.
Previously the release step was adding the generated dist
files to git automatically, which was not a good idea because
pre-commit did not fail in case someone modified the .ts file

Now the pre-commit check for npm will behave like all other
pre-commit checks - if a file will be modified by the check,
the file will not be added and pre-commit check will fail
allowing the author to add the file manually.
@potiuk
Copy link
Author

potiuk commented Aug 29, 2020

cc @TobKed -> this is why the .ts modification in #8 did not cause the pre-commit to fail.

It should fail in a moment and then I will provide a fixup.

@potiuk
Copy link
Author

potiuk commented Aug 29, 2020

Yep. It failed as expected and now it should succeed :)

@potiuk
Copy link
Author

potiuk commented Aug 29, 2020

Wrong repo :)

@potiuk potiuk closed this Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants