Commit Graph

17 Commits

Author SHA1 Message Date
Paul Sealock d53cfd4336
Monorepo Utils: Add changelog addition from actions (#38510) 2023-06-27 10:07:47 +12:00
Matt Sherman e572134384
Escape backquotes in syncpack pre-push message (#37143) 2023-03-09 09:51:45 -05:00
Sam Seay 13b09da2cf
Add post checkout pnpm install to git hooks (#36731)
* Add post checkout pnpm install to help devs, disable hooks on pre push.
* Disable hooks in all simpleGit instances where checkout is run.
2023-02-21 08:42:44 +13:00
Sam Seay 8478993095
Do a checkout of compared branches to ensure prepush checks work (#34706) 2022-09-19 12:58:52 +12:00
jonathansadowski 74f8d5f17a
Use syncpack to verify consistent versions for react and react-dom (#34397)
* Add GitHub action and pre-push hook for syncpack for react and react-dom

* Fix typo in pre-push script

* Don't execute suggested command to fix mismatches automatically.

* Update react and react-dom to 17.0.2

* Move changelog check to last, so that pre-push still fails if check isn't successful

* Add changelog files

* Correct issue with syncpack.yml referencing an internal action

* Add command to top-level package.json for fixing mismatches

* Update syncpack action to only run when package.json files are affected

* Update workflow to just run syncpack list-mismatches

* Add version pinning to syncpackrc
2022-08-24 10:15:22 -05:00
jonathansadowski 9cb0e76160
Update changelogger pre-push hook to remove verbosity (#34163) 2022-08-02 15:24:20 -05:00
Roy Ho 94bcd25232
Add changelog validation to pre push (#33976) 2022-07-20 06:09:48 -07:00
Chi-Hsuan Huang 7c4c98c91d Fix bin/post-merge.sh & bin/pre-push.sh 2022-04-06 17:31:32 +08:00
Chi-Hsuan Huang ae44908f33 Move .husky to root path
Add .husky
2022-04-06 17:31:32 +08:00
Paul Sealock ef015f740f git mv a few folders 2021-10-19 10:35:45 +13:00
Claudio Sanches d6e3cf6de9 Update default GIT branch 2021-02-25 20:51:14 -03:00
Rodrigo Primo 6e61398c83 Fix pre-push hook used by husky
The pre-push hook uses sh but contained syntax that is only supported by
bash. `=` in sh should be used instead of `==` to check for string
equality. Before this change, we were getting the following error when
pushing to any branch:

```
git push
husky > pre-push (node v10.22.1)
./bin/pre-push.sh: 7: [: refs/heads/master: unexpected operator
```

This error didn't block the push, but meant that the message asking
developers to confirm if they wanted to push to master was never
displayed. This problem was introduced in commit
8c25557bf5 added in PR #27028.
2020-09-23 10:42:23 -03:00
Peter Fabian 74c320575d Add message to GUI clients. 2020-07-14 12:53:22 +02:00
Peter Fabian 8c25557bf5 Fixed the test to actually catch master. 2020-07-14 12:51:50 +02:00
Peter Fabian e111b57a86 Removed wildcards from branch name match.
Otherwise branches like 'fix/update-master-branch' will be protected as well.
2020-07-13 15:04:45 +02:00
Claudio Sanches feada5e092 Make pre-push compatible with multiple environments 2020-06-10 01:20:15 -03:00
Claudio Sanches d3b8e4f66a Added pre-push hook to prevent accidental pushes to master 2020-06-10 00:40:48 -03:00