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: bump glob from 8.1.0 to 11.0.0 #80

Closed
wants to merge 467 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
467 commits
Select commit Hold shift + click to select a range
4497017
bump version
fwuensche Aug 22, 2023
a73060a
add yarn outdated plugin
fwuensche Aug 22, 2023
d38bac9
bump version
fwuensche Aug 22, 2023
abdec7d
v0.0.0
fwuensche Aug 23, 2023
2f97b0d
add cwd option to yarn outdated plugin
fwuensche Aug 23, 2023
67cc667
use double quotes
fwuensche Aug 23, 2023
cd93534
bump version
fwuensche Aug 23, 2023
1847588
Empty-Commit
fwuensche Aug 23, 2023
ab7e89a
fix url to dashboard
fwuensche Aug 23, 2023
9a5cd21
bump version
fwuensche Aug 23, 2023
0fdb378
add fetch depth for contributions
fwuensche Aug 24, 2023
8e91241
Update Gemfile
fwuensche Aug 24, 2023
8937887
skip docker build
fwuensche Aug 24, 2023
d284224
Bump rails from 7.0.6 to 7.0.7.2 (#115)
dependabot[bot] Aug 24, 2023
19da88d
Bump rubocop from 1.55.1 to 1.56.1 (#113)
dependabot[bot] Aug 24, 2023
979e53b
Bump vite from 4.4.4 to 4.4.9 (#105)
dependabot[bot] Aug 24, 2023
7e4bcb0
Bump faker from 3.2.0 to 3.2.1 (#112)
dependabot[bot] Aug 24, 2023
fe2c2d4
Bump rack-mini-profiler from 3.1.0 to 3.1.1 (#102)
dependabot[bot] Aug 24, 2023
84306e2
Bump selenium-webdriver from 4.10.0 to 4.11.0 (#98)
dependabot[bot] Aug 24, 2023
c91c96c
enable auto merge for dependabot prs
fwuensche Aug 24, 2023
1fdf0ac
add dependabot for cli package.json
fwuensche Aug 24, 2023
a4f02b9
Bump react-router-dom from 6.14.2 to 6.15.0 (#119)
dependabot[bot] Aug 24, 2023
78d0534
Bump redis from 5.0.6 to 5.0.7 (#118)
dependabot[bot] Aug 24, 2023
69f2ea5
Bump dockerfile-rails from 1.5.2 to 1.5.3 (#117)
dependabot[bot] Aug 24, 2023
b873fb0
Bump minitest-spec-rails from 7.1.0 to 7.2.0 (#116)
dependabot[bot] Aug 24, 2023
8d0ef7f
stop automerge
fwuensche Aug 24, 2023
0298916
Bump @tanstack/react-query-devtools from 4.32.0 to 4.33.0 (#121)
dependabot[bot] Aug 24, 2023
c9833f4
Bump @mui/icons-material from 5.11.0 to 5.14.1 (#84)
dependabot[bot] Aug 24, 2023
2b0bf3c
Bump @typescript-eslint/eslint-plugin from 5.62.0 to 6.4.1 (#114)
dependabot[bot] Aug 24, 2023
064fe3b
api key option should not be required by cherry diff
fwuensche Aug 30, 2023
28b8c56
update cherry diff workflow
fwuensche Aug 30, 2023
1e456f0
js-unimported-plugin (#130)
fwuensche Aug 30, 2023
b622def
Bump eslint from 8.37.0 to 8.47.0 in /cli (#124)
dependabot[bot] Sep 1, 2023
0b31760
Bump rubocop from 1.56.1 to 1.56.2 (#129)
dependabot[bot] Sep 1, 2023
3af17ed
Bump typescript from 5.1.6 to 5.2.2 (#127)
dependabot[bot] Sep 1, 2023
070c4c7
Bump dockerfile-rails from 1.5.3 to 1.5.8 (#141)
dependabot[bot] Sep 16, 2023
15fa0ba
Bump sentry-ruby, omniauth-github and sentry-rails (#138)
dependabot[bot] Sep 16, 2023
de5b065
Bump web-console from 4.2.0 to 4.2.1 (#137)
dependabot[bot] Sep 16, 2023
96f37bf
Bump selenium-webdriver from 4.11.0 to 4.12.0 (#134)
dependabot[bot] Sep 16, 2023
5fcdb71
Bump pg from 1.5.3 to 1.5.4 (#133)
dependabot[bot] Sep 16, 2023
40f6748
setup-organizations (#131)
fwuensche Sep 16, 2023
da194e9
implement authorizations at organization level (#142)
fwuensche Sep 22, 2023
9a4a495
fix: users should see other users belonging to same org
fwuensche Sep 22, 2023
4959d29
regularly clean up database
fwuensche Sep 22, 2023
67bd48d
fix project authorization for dashboards
fwuensche Sep 22, 2023
3d50395
fix: users should be able to delete metrics from the organizations th…
fwuensche Sep 29, 2023
11724ab
update policies
fwuensche Sep 29, 2023
cd84795
paginate notifications
fwuensche Sep 29, 2023
f0d25da
Revert "paginate notifications"
fwuensche Oct 2, 2023
39e6abd
Add pagination to notifications
fwuensche Oct 2, 2023
6ac072e
Bump rubocop from 1.56.2 to 1.56.4 (#151)
dependabot[bot] Oct 4, 2023
39a95c7
Allow users to sign in with Google (#150)
fwuensche Oct 4, 2023
2adb266
add-sso-support (#154)
fwuensche Oct 4, 2023
96b688f
Fix: metrics with no occurrences should get down to zero (#158)
fwuensche Oct 5, 2023
e77b6f0
bump version
fwuensche Oct 5, 2023
063c59f
Allow typescript configuration file (#157)
hpello Oct 6, 2023
a1cd66f
bump: added support to config files in TS
fwuensche Oct 6, 2023
214c858
chore: fix docker build (#159)
Djiit Oct 6, 2023
0fe78df
Bump eslint-plugin-react from 7.33.0 to 7.33.2 (#135)
dependabot[bot] Oct 8, 2023
4a451d8
Bump skylight from 5.3.4 to 6.0.1 (#148)
dependabot[bot] Oct 8, 2023
d3dcb9e
Bump blazer from 2.6.5 to 3.0.0 (#155)
dependabot[bot] Oct 8, 2023
2220625
Bump postcss from 8.4.28 to 8.4.31 (#153)
dependabot[bot] Oct 8, 2023
ee0632e
Bump groupdate from 6.3.0 to 6.4.0 (#146)
dependabot[bot] Oct 8, 2023
f5360b9
Bump rails from 7.0.7.2 to 7.0.8 (#145)
dependabot[bot] Oct 8, 2023
c032b23
fix: count by metric when value is zero
fwuensche Oct 8, 2023
82ff73d
bump
fwuensche Oct 8, 2023
4422214
Bump postcss from 8.4.24 to 8.4.31 in /cli (#152)
dependabot[bot] Oct 8, 2023
01cdd83
use underline before memoized methods
fwuensche Oct 8, 2023
750e3af
fix: do not deliver weekly reports to users who opted out
fwuensche Oct 9, 2023
cb6ad8a
Bump selenium-webdriver from 4.12.0 to 4.14.0 (#165)
dependabot[bot] Oct 12, 2023
4a0dbd3
Bump blazer from 3.0.0 to 3.0.1 (#162)
dependabot[bot] Oct 12, 2023
ecbbe1b
Bump vite_rails from 3.0.15 to 3.0.17 (#164)
dependabot[bot] Oct 12, 2023
0f503f1
Bump syntax_tree from 6.1.1 to 6.2.0 (#161)
dependabot[bot] Oct 12, 2023
2ba0e6d
Bump @headlessui/react from 1.7.16 to 1.7.17 (#160)
dependabot[bot] Oct 12, 2023
4c31c2b
feat(cli): add SARIF output (#167)
Djiit Oct 13, 2023
b957134
bump
fwuensche Oct 13, 2023
010ce4a
Bump rubocop from 1.56.4 to 1.57.1 (#172)
dependabot[bot] Oct 13, 2023
636746b
Bump tailwindcss-rails from 2.0.30 to 2.0.31 (#171)
dependabot[bot] Oct 13, 2023
e0f445d
Bump sentry-ruby, omniauth-github and sentry-rails (#170)
dependabot[bot] Oct 13, 2023
af0e0c1
Bump @typescript-eslint/eslint-plugin from 6.4.1 to 6.7.5 (#169)
dependabot[bot] Oct 13, 2023
8536ac3
Allow user to subscribe to a plan (#166)
fwuensche Oct 13, 2023
a68711a
set admin via emails
fwuensche Oct 13, 2023
352c02b
enforce sso domain in the same domain as org owner email
fwuensche Oct 13, 2023
13a0b34
make-default-google-login (#174)
fwuensche Oct 14, 2023
b6f076d
prevent deletion of users with projects or organizations
fwuensche Oct 14, 2023
52b3ea1
also return current user within users
fwuensche Oct 14, 2023
5d05b1d
change authorization to rely on email address
fwuensche Oct 14, 2023
4db2339
improve anonymization script
fwuensche Oct 14, 2023
334f08f
fix tests
fwuensche Oct 16, 2023
e39d37d
Bump @heroicons/react from 2.0.13 to 2.0.18 (#178)
dependabot[bot] Oct 16, 2023
aca1611
Bump stripe from 8.3.0 to 9.4.0 (#177)
dependabot[bot] Oct 16, 2023
092b3da
Add SonarQube Generic Import output (#175)
Djiit Oct 16, 2023
86fe3db
fix: handle deleted users when creating notifications
fwuensche Oct 23, 2023
2f4e8b7
improve anonymization
fwuensche Oct 23, 2023
28571b9
fix test
fwuensche Oct 23, 2023
0b3f29c
Bump redis from 5.0.7 to 5.0.8 (#183)
dependabot[bot] Oct 23, 2023
28cf4b5
Bump stripe from 9.4.0 to 10.0.0 (#179)
dependabot[bot] Oct 23, 2023
71fab7d
Bump dockerfile-rails from 1.5.8 to 1.5.10 (#149)
dependabot[bot] Oct 23, 2023
c5bd2ca
Bump flowbite from 1.7.0 to 1.8.1 (#128)
dependabot[bot] Oct 23, 2023
dce1c28
Bump delayed_job_active_record from 4.1.7 to 4.1.8 (#176)
dependabot[bot] Oct 24, 2023
62e48a7
Bump dockerfile-rails from 1.5.10 to 1.5.12 (#185)
dependabot[bot] Oct 24, 2023
c0c9630
Bump @babel/traverse from 7.21.4 to 7.23.2 in /cli (#182)
dependabot[bot] Oct 24, 2023
020f057
Update README.md
fwuensche Oct 24, 2023
ba20733
Add test to CLI and close #186 (#188)
fwuensche Oct 24, 2023
2d66a60
fix eslint jest errors
fwuensche Oct 24, 2023
c2456a3
test cherry run
fwuensche Oct 24, 2023
5f11c36
Update README.md
fwuensche Oct 24, 2023
154457c
update readme
fwuensche Oct 24, 2023
54b9a87
target blank
fwuensche Oct 24, 2023
1641073
Update README.md
fwuensche Oct 24, 2023
784229a
Update README.md
fwuensche Oct 24, 2023
dd95462
Update README.md
fwuensche Oct 24, 2023
d8241be
Update README.md
fwuensche Oct 24, 2023
da617d1
regularly delete inactive user accounts and notify them prior to dele…
fwuensche Nov 1, 2023
ac2346f
cleanup project
fwuensche Nov 1, 2023
029671f
Update README.md
fwuensche Nov 1, 2023
ddaad40
support cjs files
fwuensche Nov 1, 2023
8304b9e
fix test
fwuensche Nov 1, 2023
6e9ee7a
add timeout
fwuensche Nov 1, 2023
cf639eb
Update README.md
fwuensche Nov 1, 2023
ce6dfb8
Update README.md
fwuensche Nov 1, 2023
0483207
remove files
fwuensche Nov 1, 2023
49474d3
remove files
fwuensche Nov 1, 2023
4f25d84
Update CODEOWNERS
fwuensche Nov 1, 2023
d1fe651
Update README.md
fwuensche Nov 1, 2023
38ef386
increase timeout
fwuensche Nov 24, 2023
0ed8d28
upgrade axios
fwuensche Nov 24, 2023
d46d5dd
Fix exit code (#14)
neovov Nov 24, 2023
3ec6f5d
increase test timeout
fwuensche Nov 24, 2023
469401c
Bump eslint from 8.47.0 to 8.54.0 (#11)
dependabot[bot] Nov 24, 2023
7174735
1.2.1
fwuensche Nov 24, 2023
19e3e78
fix cherry diff workflow
fwuensche Nov 24, 2023
02fa214
handle multiple metrics on cherry diff and close #12
fwuensche Nov 25, 2023
5ade8ea
1.2.2
fwuensche Nov 25, 2023
6ff01b5
rename watch command
fwuensche Nov 25, 2023
617047a
chore: add release-please workflow (#19)
Djiit Nov 28, 2023
912b388
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Nov 28, 2023
d7392eb
chore: release 1.2.2
fwuensche Nov 28, 2023
8c16f3f
chore: bootstrap releases for path: . (#21)
fwuensche Nov 28, 2023
10cb1a2
chore(main): release 1.2.2 (#22)
github-actions[bot] Nov 28, 2023
2496504
update readme
fwuensche Nov 28, 2023
ae2721c
update readme
fwuensche Nov 28, 2023
ffbcc31
Update README.md
fwuensche Nov 28, 2023
0af7d29
try out node env on CI
fwuensche Nov 28, 2023
15df6e4
try out api key on CI
fwuensche Nov 28, 2023
b3115f1
remove logs and increase timeout
fwuensche Nov 28, 2023
2ecabba
debug
fwuensche Nov 28, 2023
9f38bd4
increase test timeout
fwuensche Nov 28, 2023
3842d66
remove custom timeout
fwuensche Nov 28, 2023
a98ecb8
chore: add husky,lint-staged,prettier (#23)
Djiit Nov 28, 2023
f2f6939
update readme (#24)
fwuensche Nov 28, 2023
0c0b400
Bump uuid from 9.0.0 to 9.0.1 (#6)
dependabot[bot] Nov 28, 2023
459e46a
setup prettier
fwuensche Nov 28, 2023
83516b7
chore: add husky to preinstall npm hook
fwuensche Nov 28, 2023
3c46302
chore: add npm test to precommit hook
fwuensche Nov 28, 2023
46b178e
chore: remove prettier ignore file
fwuensche Nov 28, 2023
33986c9
ignore results json
fwuensche Dec 2, 2023
451dcc7
feat: allow cherry diff to take a json file as input
fwuensche Dec 2, 2023
1293ddb
chore(main): release 1.3.0 (#26)
github-actions[bot] Dec 2, 2023
7ec5cd0
feat: allow cherry commands to be run in quiet mode (#27)
fwuensche Dec 2, 2023
cb9a0f8
chore(main): release 1.4.0 (#28)
github-actions[bot] Dec 2, 2023
97c7355
chore: reactivate eslint for the core cli code
fwuensche Dec 10, 2023
efa5d2b
refactor: split cherry commands into separate files (#30)
fwuensche Dec 10, 2023
791263a
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Dec 10, 2023
63bb651
feat: make cherry diff agnostic from cherrypush.com (#31)
fwuensche Dec 12, 2023
86b3c57
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Dec 16, 2023
94cb433
ci: fallback head_ref to ref_name
fwuensche Dec 16, 2023
df6cc58
chore: fix formatting
fwuensche Dec 16, 2023
5fc57ce
chore(main): release 1.5.0 (#33)
github-actions[bot] Dec 16, 2023
8a7aeb6
chore: remove duplicate workflow
fwuensche Dec 16, 2023
66af9ff
Cherry diff with merge base instead of default branch (#36)
CuadrosNicolas Jan 22, 2024
5c3916e
chore: comment format checks
fwuensche Jan 22, 2024
db1106b
fix: checkout merge base for cherry diff (#37)
fwuensche Jan 22, 2024
d21efca
1.5.1
fwuensche Jan 22, 2024
0609c79
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Jan 22, 2024
18f2b4b
1.5.2
fwuensche Jan 22, 2024
b8e3c4e
Bump esbuild from 0.19.4 to 0.20.0 (#40)
dependabot[bot] Jan 29, 2024
eba0ddf
Bump husky from 8.0.3 to 9.0.10 (#43)
dependabot[bot] Feb 7, 2024
c546344
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Feb 7, 2024
4e8565f
Bump prettier from 3.1.0 to 3.2.5 (#44)
dependabot[bot] Feb 19, 2024
ac2e537
chore: update release please version
fwuensche Feb 19, 2024
57ae988
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Feb 19, 2024
99273ec
Bump eslint-config-prettier from 9.0.0 to 9.1.0 (#46)
dependabot[bot] Feb 20, 2024
2492320
Bump dotenv from 16.0.3 to 16.4.5 (#48)
dependabot[bot] Mar 4, 2024
6c9ae5f
feat(performance-alerts): WIP (#51)
fwuensche Jul 1, 2024
294efca
chore(main): release 1.6.0 (#45)
github-actions[bot] Jul 1, 2024
f77d09c
chore: bump
fwuensche Jul 2, 2024
e31aa71
chore: update manually released version
fwuensche Jul 12, 2024
cdc6046
build: update manually released version
fwuensche Jul 12, 2024
9718eda
chore: add logs for better debugging
fwuensche Jul 12, 2024
8350602
feat: allow to provide multiple metrics to cherry run (#56)
fwuensche Aug 30, 2024
351ec11
chore(main): release 1.7.0 (#57)
github-actions[bot] Aug 30, 2024
0ae896c
docs: add information about publishing the package
fwuensche Aug 30, 2024
7bdfaf2
feat: automatically publish npm package when release please pr is merged
fwuensche Aug 30, 2024
f4217f6
chore(main): release 1.8.0 (#59)
github-actions[bot] Aug 30, 2024
7bf126a
feat: update madge (used for jsCircularDependencies plugin) (#60)
fwuensche Sep 5, 2024
16e6707
Bump husky from 9.0.10 to 9.0.11 (#49)
dependabot[bot] Sep 5, 2024
e4f0488
chore(main): release 1.9.0 (#61)
github-actions[bot] Sep 5, 2024
a6ba9d7
fix: automation to release package (#62)
fwuensche Sep 5, 2024
2691965
chore(main): release 1.9.1 (#63)
github-actions[bot] Sep 5, 2024
2157ef0
fix: add registry url to setup node step
fwuensche Sep 5, 2024
6e4a420
fix: automate package publishing (#64)
fwuensche Sep 5, 2024
439e6a7
chore(main): release 1.9.2 (#66)
github-actions[bot] Sep 5, 2024
cf18fc8
chore: prefix dependabot PRs is a way release-please will detect as a…
fwuensche Sep 5, 2024
42bf79a
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Sep 5, 2024
0a3fe73
build(deps-dev): bump @commitlint/cli from 18.4.3 to 19.4.1 (#65)
dependabot[bot] Sep 5, 2024
12189df
feat: filter out metrics for cherry diff (#68)
fwuensche Sep 5, 2024
7647bbd
chore: remove deprecated test
fwuensche Sep 5, 2024
2bb1e80
chore(main): release 1.10.0 (#69)
github-actions[bot] Sep 5, 2024
36024aa
feat: filter out metrics for cherry diff (part 2)
fwuensche Sep 6, 2024
4d6e1aa
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Sep 6, 2024
8949e93
chore(main): release 1.11.0 (#71)
github-actions[bot] Sep 6, 2024
a18ec6e
deps(dev): bump prettier from 3.3.2 to 3.3.3 (#70)
dependabot[bot] Sep 6, 2024
a254986
feat: handle https remotes when trying to guess project name (#73)
fwuensche Sep 7, 2024
92ff5f7
chore(main): release 1.12.0 (#74)
github-actions[bot] Sep 7, 2024
c274586
fix: update axios from 1.6.2 to 1.7.7
fwuensche Sep 7, 2024
f61567a
fix: update braces to 3.0.3
fwuensche Sep 7, 2024
bc41c14
chore(main): release 1.12.1 (#75)
github-actions[bot] Sep 7, 2024
54f50c5
chore: update workflows to use latest versions and quiet cherry
fwuensche Sep 7, 2024
5654ff7
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Sep 7, 2024
92c4e9c
fix: update readme and fix owners option from cherry run
fwuensche Sep 7, 2024
c4a01d9
chore(main): release 1.12.2 (#76)
github-actions[bot] Sep 7, 2024
9197fe1
chore: setup dependabot to prefix prs with fix
fwuensche Sep 7, 2024
2101d2e
Merge branch 'main' of github.com:cherrypush/cherry-cli
fwuensche Sep 7, 2024
e7cea20
fix(dev): bump @commitlint/config-conventional from 18.4.3 to 19.4.1 …
dependabot[bot] Sep 8, 2024
bc1cdac
fix: use relative path for eslint (#83)
fwuensche Sep 8, 2024
63485a7
feat: allow custom permalinks (#84)
fwuensche Sep 8, 2024
789e9d5
chore: auto merge release please prs (#85)
fwuensche Sep 8, 2024
4da2793
chore(main): release 1.13.0 (#82)
github-actions[bot] Sep 8, 2024
8839f72
fix: bump micromatch and lint-staged (#86)
dependabot[bot] Sep 8, 2024
becc5ff
fix: improve docs with details about the configuration file
fwuensche Sep 9, 2024
c6833a4
feat!: start migrating to typescript (#52)
fwuensche Sep 9, 2024
d1e1719
chore(main): release 2.0.0 (#90)
github-actions[bot] Sep 9, 2024
2b3a599
Add a check if plugins is an array and update README (#88)
QuentinLemCode Sep 9, 2024
bef3eb1
fix: TS import issue (#92)
fwuensche Sep 9, 2024
a6ad13c
chore(main): release 2.0.1 (#93)
github-actions[bot] Sep 9, 2024
3ce73eb
feat: migrate to typescript (#95)
fwuensche Sep 10, 2024
faaf719
chore(main): release 2.1.0 (#96)
github-actions[bot] Sep 10, 2024
c694029
fix: error on cherry push & migrate to typescript
fwuensche Sep 10, 2024
1645179
chore(main): release 2.1.1 (#97)
github-actions[bot] Sep 10, 2024
a05682f
fix: codeowners didn't work for paths starting with / (#105)
fwuensche Sep 26, 2024
3aaf4f4
chore(main): release 2.1.2 (#106)
github-actions[bot] Sep 26, 2024
c7a3811
fix: codeowners was consuming too much memory (#107)
fwuensche Sep 27, 2024
d0fec6e
chore(main): release 2.1.3 (#108)
github-actions[bot] Sep 27, 2024
343cf10
fix (#109)
fwuensche Sep 27, 2024
b751123
fix: codeowners exact match patterns starting with slash #109
fwuensche Sep 27, 2024
75d75e1
chore(main): release 2.1.4 (#110)
github-actions[bot] Sep 27, 2024
59d383b
feat: add support to custom repository info (#100)
fwuensche Sep 28, 2024
0be0c38
chore: remove deps on uuid (#112)
fwuensche Sep 28, 2024
26eb07c
fix: bump glob from 8.1.0 to 11.0.0
dependabot[bot] Sep 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .cherry.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const JS_FILES = '**/*.{js,jsx}'
const TS_FILES = '**/*.{ts,tsx}'

module.exports = {
project_name: 'cherrypush/cherry-cli',
plugins: {
// npmOutdated: {}, // TODO: this requires an active internet connection thus should not be used in tests
loc: {},
eslint: {},
jsCircularDependencies: { include: 'src/**' },
// jsUnimported: {}, // TODO: investigate why this takes so long with a slow internet connection
},
metrics: [
{
name: 'TODO',
pattern: /TODO/,
},
],
}
18 changes: 0 additions & 18 deletions .cherry.js

This file was deleted.

28 changes: 23 additions & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
module.exports = {
ignorePatterns: ['dist/', 'node_modules/', '.eslintrc.cjs'],
env: {
browser: true,
node: true,
es2021: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint'],
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'prettier', 'plugin:@typescript-eslint/recommended'],
root: true,
overrides: [],
rules: {
'react/prop-types': 'off',
'no-return-await': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
// We need to ignore unused variables that start with an underscore to avoid linting errors on catch(error) blocks
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
}
7 changes: 0 additions & 7 deletions .gitattributes

This file was deleted.

14 changes: 5 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@

version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: 'daily'
time: '09:00'
versioning-strategy: 'lockfile-only'
- package-ecosystem: 'npm'
directory: "/"
directory: '/'
versioning-strategy: 'increase'
schedule:
interval: 'daily'
time: '09:00'
versioning-strategy: 'increase'

commit-message:
prefix: 'fix: '
prefix-development: 'fix(dev): '
29 changes: 12 additions & 17 deletions .github/workflows/cherry_diff.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
name: cherry diff
name: Prevent new violations

on:
pull_request:

jobs:
cherry:
name: runner / cherry
runs-on: ubuntu-22.04
cherry_diff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
fetch-depth: 0 # fetches all commits from all branches
ref: ${{ github.head_ref }} # checks out the branch that triggered the workflow

- name: Install dependencies
run: |
bundle install
npm i -g cherrypush
run: npm install

- name: Cherry diff
run: cherry diff origin/${{ github.base_ref }}
- name: Raise if new JavaScript code is added
# This command will fail if the number of lines of code in JavaScript files has increased
# in the current branch compared to the base branch, encouraging developers to contribute to migrating to TS.
run: npm run cherry -- diff --metric='[loc] JavaScript' --error-if-increase --quiet
25 changes: 8 additions & 17 deletions .github/workflows/cherry_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,19 @@ name: cherry push

on:
push:
branches:
- main
branches: [main]

jobs:
cherry:
name: cherry push
runs-on: ubuntu-22.04
cherry_push:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
fetch-depth: 2

- name: Install dependencies
run: |
bundle install
npm i -g cherrypush
run: npm install

- name: Push metrics
run: cherry push --api-key=${{ secrets.CHERRY_API_KEY }}
run: npm run cherry -- push --quiet --api-key=${{ secrets.CHERRY_API_KEY }}
62 changes: 22 additions & 40 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,59 +6,41 @@ on:
pull_request:
branches: [main]

env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
RAILS_ENV: test
PGHOST: localhost
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
test:
runs-on: ubuntu-latest

env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}

services:
postgres:
image: postgres:12
env:
POSTGRES_DB: ${{ env.POSTGRES_DB }} # if this is not set, then the value of POSTGRES_USER will be used
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }} # required
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup ruby
uses: ruby/setup-ruby@v1
uses: actions/checkout@v4 # https://github.com/actions/checkout
with:
ruby-version: 3.2.1
# Depth 0 will fetch all commits from all branches
# This is required for cherry diff to checkout the master branch when running on pull requests
fetch-depth: 0
# Checks out the branch that triggered the workflow
# - head_ref is set when the event that triggered the workflow is a pull request
# - ref_name is set when the event that triggered the workflow is a push on master
# Refer to: https://stackoverflow.com/a/71158878/1096110
ref: ${{ github.head_ref || github.ref_name }}

- name: Set up node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.13.1

- name: Install ruby dependencies
run: bundle install

- name: Prepare database
run: bundle exec rails db:schema:load
node-version-file: .nvmrc
cache: npm

- name: Install node dependencies
run: npm install
run: npm ci

- name: Run unit tests
run: bundle exec rails test
- name: Run lint
run: npm run lint

- name: Install chrome headless
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Setup fixtures for tests
run: npm run test:setup

- name: Run system tests
run: HEADLESS=1 bundle exec rails test:system
- name: Run tests
run: npm test
28 changes: 28 additions & 0 deletions .github/workflows/pull_request_automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pull Request Automation

on:
pull_request_target:
types: [labeled]

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
timeout-minutes: 5
if: ${{ github.event.label.name == 'auto-approve' }}
steps:
- uses: hmarr/auto-approve-action@v4

auto-merge:
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.event.label.name == 'auto-merge' }}
steps:
- name: Auto merge
run: gh pr merge --auto ${STRATEGY} "${PR_URL}"
shell: bash
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STRATEGY: '--squash'
43 changes: 43 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: release-please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node

# The logic below handles the npm publication.
# The if statements ensure that a publication only occurs when a new release is created.
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

# The registry-url must be set for authentication to work on the npm publish step
# Ref: https://github.com/actions/setup-node/issues/342#issuecomment-950119520
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
registry-url: 'https://registry.npmjs.org'

- run: npm ci
if: ${{ steps.release.outputs.release_created }}

- run: npm run build
if: ${{ steps.release.outputs.release_created }}

# Make sure that the NPM_TOKEN has been set as a "Repository secret"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
29 changes: 24 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,33 @@
/app/assets/builds/*
!/app/assets/builds/.keep

# project-specific
/node_modules
/vendor/cache
.env

# Vite Ruby
/public/vite*
# Vite uses dotenv and suggests to ignore local-only env files. See
# https://vitejs.dev/guide/env-and-mode.html#env-files
*.local

# Environment variables
.env
.rbenv-vars

# outputs
cherry.json
cherry.sarif
cherry.sonar

# project-specific
node_modules
/vendor/cache
/vendor/bundle
latest.dump
results.json

# TypeScript files
dist/

# Ignore test fixtures
test/fixtures/super-project-source
test/fixtures/super-project-remote
test/fixtures/empty-project-source
test/fixtures/empty-project-remote
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
npx lint-staged

# TODO: it'd be nice to run tests here, but it does not work because cherry diff requires the git diff to be clean.
# Ideally, we should be able to run tests independently of the uncommitted changes, probably by using a dummy repo.
# Once we have that, we can unskip the line below.
# npm test
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore everything
*

# include these
!dist/
!package.json
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.7.0
v20.14.0
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

Loading
Loading