Commit Graph

464 Commits

Author SHA1 Message Date
Sidharth Vinod 658af081ee
Flatten uploaded images 2024-01-19 14:42:51 +05:30
Sidharth Vinod 58b6cf0174
Merge branch 'develop' into next
* develop: (50 commits)
  Use pixelmatch for image comparison
  Run all tests
  Fix lint
  Update lockfile
  E2E test
  Use cache to store snapshots
  chore(deps): update all patch dependencies
  Change string concatenation to template literal
  Revert "Revert 5041 feature/4935 subgraph title margin config option"
  build(deps-dev): bump follow-redirects from 1.15.2 to 1.15.5
  Run dev docs without npx
  Remove npx completely from run script
  Update docs
  Fix linters
  Removed volta requirement, leave pnpm only
  Fixed dead link
  build
  Update docs
  Updated contributing docs after review, minor fixes
  Updated gantt chart docs to show all config options
  ...
2024-01-19 13:46:10 +05:30
Sidharth Vinod d6e738ac4c
Run all tests 2024-01-19 12:21:51 +05:30
Sidharth Vinod 448756ab54
Fix lint 2024-01-19 12:17:20 +05:30
Sidharth Vinod d2c82c1802
Use cache to store snapshots 2024-01-19 12:06:53 +05:30
Sidharth Vinod aab7631a9f
Merge branch 'develop' into next
* develop: (62 commits)
  Draft release on master
  docs: Add release version
  Revert "fix: render the participants in same order as they are created"
  Revert "Feature/4935 subgraph title margin config option"
  Fix typo
  add inadvertent tracking removal
  update announcement bar
  Update integrations-community.md (Add Codemia to the list of productivity tools using Mermaid.)
  v10.7.0
  10.6.2-rc.3
  docs: Remove broken integration
  chore: Minor cleanup of imperativeState
  chore(deps): update all minor dependencies
  adds corresponding change in docs/ecosystem
  Adds Unison programming language to community integrations list
  update verbiage
  update verbiage
  add jetbrains blog post
  additional updates
  Fixed parser/tests
  ...
2024-01-16 19:15:33 +05:30
Nikolay Rozhkov 36fdff8378 Merge branch 'develop' into docs/2910_update-contributing-guidelines 2024-01-15 13:17:47 +03:00
Sidharth Vinod dc857f804e
Draft release on master 2024-01-15 14:47:03 +05:30
Sidharth Vinod 0e105afbf9
Fix typo 2024-01-15 12:55:28 +05:30
Nikolay Rozhkov 21ecc28b40 Merge branch 'develop' into docs/2910_update-contributing-guidelines 2024-01-12 01:41:00 +03:00
renovate[bot] 8383b1b9bc
chore(deps): update all minor dependencies 2024-01-10 15:44:22 +00:00
Nikolay Rozhkov 17312a0232 Cleanup 2024-01-05 17:37:34 +03:00
Nikolay Rozhkov 3bc39409e5 Formatting 2023-12-19 02:55:20 +03:00
Sidharth Vinod 5eb116059b
Turn off patch coverage 2023-11-24 11:04:11 +05:30
Sidharth Vinod 862d20ce9d
Merge branch 'develop' into other/remove-pr-labeler-action
* develop: (164 commits)
  Update all patch dependencies
  Fix docs
  Update packages/mermaid/src/docs/community/questions-and-suggestions.md
  Update packages/mermaid/src/diagrams/class/classRenderer-v2.ts
  update edge ids
  draw top actors with lines  first followed by messages
  Bump GitHub workflow actions to latest versions
  Update docs
  Documentation: clarify sentence
  Fix lint
  Fix typo
  fix typo
  Add new Atlassian integrations
  chore(deps): update all patch dependencies
  Update demos/sequence.html
  chore: release v10.6.1
  fix
  fix
  fix: render the participants in same order as they are created
  fix(flow): fix invalid ellipseText regex
  ...
2023-11-15 07:58:48 +05:30
Andreas Deininger 6fb5641afc Bump GitHub workflow actions to latest versions 2023-11-09 12:56:57 +01:00
SADIK KUZU 672a0edc59
Fix typo in build-docs.yml 2023-10-27 12:22:14 +03:00
Alois Klink 99beeba261 ci(pr-labeler): add required `template` option
This value is unused, but it's required, so we have to add it.

Fixes: a1673d3aca
2023-09-25 18:20:54 +01:00
Alois Klink a1673d3aca ci(pr-labeler): replace TimonVS/pr-labeler-action
Replace the `TimonVS/pr-labeler-action` with
`release-drafter/release-drafter` as it has an [`autolabeler`][1]
option that can autolabel PRs for us.

This should fix labeling PRs from forks,
see https://github.com/TimonVS/pr-labeler-action/issues/25.

I've kept the `.github/pr-labeler.yml` configuration file, so that
links to it from the https://mermaid.js.org website continue to work.

I've also kept everything in the same
`.github/workflows/pr-labeler.yml` GitHub Actions workflow to make the
`git diff` easier to review, and to keep the GitHub Actions permissions
the same.

[1]: ff929b5ceb/README.md (autolabeler)
2023-09-24 19:18:56 +01:00
Alois Klink 672a289909 style(pr-labeler): format .github/pr-labeler.yml
Change the formatting of .github/pr-labeler.yml to make `git diff`'s
easier to understand in a future commit.
2023-09-24 19:18:01 +01:00
Alois Klink dc22189eef docs(ci/pr-labeler): warn about security issues
Using `pull_request_target` is pretty dangerous, since it heavily
increases the risk of malicious PRs getting access to the mermaid-js
repo.

What we're doing currently is safe, but we should add a warning
message just to ensure that we're very careful when we make changes.

See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
See: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2023-09-24 19:17:03 +01:00
Alois Klink 5f740312fe ci(release-draft): handle new release-drafter name
https://github.com/toolmantim/release-drafter has been renamed to
https://github.com/release-drafter/release-drafter.
2023-09-24 19:16:57 +01:00
Alois Klink 123d53c265 ci(release-drafter): remove unused `branch` config
`branch` is not a valid configuration option for release-drafter,
see
https://github.com/release-drafter/release-drafter#configuration-options

There's is a similar [`references` option][1], but it does nothing when
using GitHub Actions (it's only there for GitHub apps).

There's also `commitish`, but it defaults to the target/branch the
GitHub Action job runs on, so we don't need to set that.

[1]: https://github.com/release-drafter/release-drafter#references
2023-09-24 19:16:51 +01:00
Alois Klink b928e60d8b ci(pr-labeler): limit GITHUB_TOKEN permissions
Limit the `GITHUB_TOKEN` permissions for `TimonVS/pr-labeler-action`
to the minimum required permissions.
2023-09-24 19:16:38 +01:00
Alois Klink 9688269027 ci(release-draft): limit GITHUB_TOKEN permissions
Limit the `GITHUB_TOKEN` permissions for `toolmantim/release-drafter`
to the minimum required permissions.
2023-09-24 19:16:33 +01:00
Sidharth Vinod 095394dbef
docs: Correct words
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-09-24 11:13:50 +05:30
Sidharth Vinod ab7fcb26d7
Update URLs. 2023-09-22 10:20:16 +05:30
Sidharth Vinod c64e2106cf
docs: Add LiveEditor Beta 2023-09-15 13:53:07 +05:30
Sidharth Vinod 52f05552a1
chore: Remove duplicate CI action 2023-08-22 11:42:12 +05:30
Sidharth Vinod bb01b3972d
chore: Add circular dependency check in CI 2023-08-22 11:38:55 +05:30
Alois Klink 7a547abd89
ci(release-drafter): add more release notes categories
Add the following new categories to the release notes:
  - **BREAKING CHANGES**
  - Performance
  - Documentation

I've also made the `feature`, `fix`, and `chore` label point to
their appropriate section.
2023-08-20 23:42:18 +01:00
Matthieu MOREL 8db2fb8f90 Create lychee.toml
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2023-08-03 19:04:24 +00:00
Sidharth Vinod 478d350188
Update .github/pull_request_template.md
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-07-20 20:48:12 +05:30
Sidharth Vinod 4795204719
Merge branch 'develop' into sidv/docsVersion
* develop:
  build(docs): handle YAML edgecases in markdown
  run pnpm lint:fix
  Update cypress/helpers/util.ts
  change deprecated `btoa` into `Buffer.from`
  allow ts extension imports in cypress ts files
  build(docs): allow using custom `editLink`
  build(docs): add `editLink: ` to MD frontmatter
  build(docs): run remark plugins on MermaidConfig
  Fix import file extension
  Batch by commit
  resolve lint issues for `no-inferrable-types`
  fix wrong config paramater in some cypress spec
  convert cypress/helpers/util.js into ts
  convert file from js into ts
2023-07-20 20:46:53 +05:30
Sidharth Vinod 568d686d2f
Merge branch 'develop' into sidv/docsVersion 2023-07-18 22:07:42 +05:30
Sidharth Vinod 483385b2f6
Update PR template 2023-07-18 21:59:00 +05:30
Sidharth Vinod fff3acd064
Verify release-version on push to release or master 2023-07-18 21:55:44 +05:30
Sidharth Vinod 962ff73fc3
Batch by commit 2023-07-07 15:56:30 +05:30
Sidharth Vinod 79d38cef4b
Run `docs:release-version` in CI 2023-07-07 11:32:00 +05:30
Sidharth Vinod 0f4af09398
Add `Area: Documentation` to labeler 2023-07-07 10:32:13 +05:30
Sidharth Vinod 052e9db16a
Remove filter action 2023-07-07 10:30:59 +05:30
Sidharth Vinod 4648532814
Update .github/workflows/pr-labeler-config-validator.yml
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-07-07 10:29:58 +05:30
Sidharth Vinod 9263f75e5b
Update .github/pr-labeler.yml
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-07-07 10:27:56 +05:30
Sidharth Vinod 1682fa1e53
Update PR Labeler config 2023-07-06 22:05:58 +05:30
Sidharth Vinod 355586f297
Run PR-labeler-config-validator only if config changes 2023-07-06 22:03:48 +05:30
Sidharth Vinod 34abbcadae
Merge pull request #4604 from mermaid-js/sidv/fixCodecov
chore: Reduce codecov pushes
2023-07-06 10:20:26 +00:00
Sidharth Vinod 2b5da79cdf
Merge pull request #4112 from aloisklink/add-jsonschema-schema-for-config
Use JSON Schema to define and document `MermaidConfig`
2023-07-06 10:03:55 +00:00
Sidharth Vinod 4d0c461fa3
chore: Reduce codecov pushes
pushes to non-develop branches will not send coverage reports.
This might reduce the coverage variability issue we're having.
2023-07-06 11:32:37 +05:30
Sidharth Vinod db30f21ac5
Turn off codecov project status check 2023-07-06 11:16:41 +05:30
Alois Klink 23d6a0dab7 ci(lint): check if MermaidConfig types are in sync
Add a CI check that runs
`pnpm run --filter mermaid types:verify-config` and checks whether
the MermaidConfig TypeScript types are in sync with the MermaidConfig
JSON Schema.
2023-07-06 03:53:40 +01:00
Sidharth Vinod 288f51216d
Add codecov token 2023-07-03 21:01:04 +05:30
Sidharth Vinod 8e15e534ea
Add codecov token 2023-07-03 19:19:11 +05:30
Sidharth Vinod 29c866b09a
Don't fail CI on codecov error 2023-07-02 13:22:00 +05:30
Sidharth Vinod 78377daf2f
Rename workflow jobs 2023-07-02 10:14:35 +05:30
Sidharth Vinod 4a95589b5a
Add `merge_group` to CI triggers 2023-07-02 10:03:31 +05:30
Sidharth Vinod ae4d81cdfd
move codecov 2023-07-01 00:39:01 +05:30
Sidharth Vinod b60ec8e5ff
Update .github/ISSUE_TEMPLATE/bug_report.yml 2023-06-27 11:51:44 +05:30
Yokozuna59 d15590f0a5 add suggested solutions field in bug_report.yml 2023-06-27 02:31:09 +03:00
Sidharth Vinod 3340240b9f
chore: Run codecov based on E2E test status 2023-06-17 23:23:00 +05:30
Sidharth Vinod f8540e9468
Upload E2E 2023-06-17 17:54:13 +05:30
Sidharth Vinod 2ad32f9208
Fix path name 2023-06-17 17:44:27 +05:30
Sidharth Vinod 8d244062e2
Add codecov to unit tests 2023-06-17 17:40:06 +05:30
Sidharth Vinod 1e84668270
Add codecov to E2E 2023-06-17 17:34:19 +05:30
Sidharth Vinod 40199e28b8
Disable coveralls 2023-06-13 12:23:41 +05:30
Sidharth Vinod 245c4f8c78
Update coveralls 2023-06-13 11:49:43 +05:30
Sidharth Vinod 74ccf6410d
Update diagram proposal 2023-06-02 11:50:49 +05:30
Knut Sveidqvist bd1343648e Merge branch 'master' into develop 2023-05-24 19:20:47 +02:00
renovate[bot] b1590c2211 Update all minor dependencies 2023-05-17 13:32:09 +00:00
Sidharth Vinod fbd35ae95a
fix lint command 2023-05-09 10:24:05 +05:30
Sidharth Vinod 642397b36c
Fix applitools cypress 2023-04-23 15:59:27 +05:30
renovate[bot] 1c17f4c770
fix(deps): update all minor dependencies 2023-04-22 20:30:38 +00:00
renovate[bot] 4a258a0f2c
chore(deps): update fregante/setup-git-user action to v2 2023-04-22 20:02:23 +00:00
renovate[bot] f93bac9dd4
chore(deps): update actions/deploy-pages action to v2 2023-04-22 18:49:44 +00:00
Sidharth Vinod 49bb87e14a
Split docs into build and deploy 2023-04-22 23:59:33 +05:30
Bishop Clark 8aa51cf3e7
Update bug_report.yml
correct adjective order
2023-04-13 16:59:13 -07:00
Matthias a17463307b Clean up list of ignored links
The removed links work again.
2023-03-08 21:30:12 +01:00
Alois Klink f0a73696f5
ci(e2e): skip caching in actions/setup-node
Skip caching `pnpm` in `actions/setup-node`,
because the `cypress-io/github-action` natively supports caching `pnpm`,
as of [cypress-io/github-action@v4.2.0][1].

[1]: https://github.com/cypress-io/github-action/releases/tag/v4.2.0
2023-03-06 22:57:22 +00:00
renovate[bot] 6c2c28940b chore(deps): update all non-major dependencies 2023-03-06 06:22:18 +00:00
Sidharth Vinod e603840395
Update bug_report.yml 2023-03-03 11:55:18 +05:30
Alois Klink 06640aba06 test(gantt): test daylight savings in ganttdb
Add a quick test that ensures `ganttDb` correctly adds `1d` (1 day),
even on days with 25 hours.

This test only runs if the test PC has the TZ='America/Los_Angeles'
set (California has daylight savings).

I've added a test to the GitHub Actions `test.yml` action too for this.
It should only add about 5 seconds to each test, so it isn't too bad.
2023-02-26 06:43:14 +00:00
Sidharth Vinod 0c18c0309b
Enable blank issues 2023-02-19 00:37:41 +05:30
Sidharth Vinod 86cfb1bb60
Skip precommit hooks on CI 2023-02-16 17:09:02 +05:30
Sidharth Vinod b10d243995
Fix release-publish 2023-02-16 17:07:03 +05:30
Sidharth Vinod 0a923dfe91
Remove node heap 2023-02-16 16:28:09 +05:30
Sidharth Vinod 743c636441
Revert "chore: Set node heap size"
This reverts commit 8df965bd60.
2023-02-16 16:10:20 +05:30
Sidharth Vinod 76fdc00b06
Remove heap option 2023-02-16 14:41:22 +05:30
Sidharth Vinod 0db2657b7b
Test publish docs 2023-02-16 13:05:53 +05:30
Sidharth Vinod 533bd7da3c
chore: Add file extension for dynamic import 2023-02-16 12:56:32 +05:30
Sidharth Vinod 8df965bd60
chore: Set node heap size 2023-02-16 12:21:24 +05:30
Sidharth Vinod 2b3019fb94
Set node heap size 2023-02-16 12:16:00 +05:30
Sidharth Vinod e9d2d084fd
Merge pull request #4066 from mermaid-js/renovate/actions-dependency-review-action-3.x
chore(deps): update actions/dependency-review-action action to v3
2023-02-09 11:14:27 +05:30
renovate[bot] 34c98717d5
chore(deps): update actions/dependency-review-action action to v3 2023-02-09 05:44:09 +00:00
Sidharth Vinod f22ce38ada
Merge pull request #4065 from mermaid-js/renovate/actions-configure-pages-3.x
chore(deps): update actions/configure-pages action to v3
2023-02-09 11:13:54 +05:30
renovate[bot] 886d1c15c4
chore(deps): update timonvs/pr-labeler-action action to v4 2023-02-09 00:51:38 +00:00
renovate[bot] bb3a48c91a
chore(deps): update actions/configure-pages action to v3 2023-02-09 00:42:44 +00:00
Alois Klink 4900647bf0
ci(lint): show nice error on lint failure
Prints a nice error on GitHub Actions if `pnpm run lint` fails.
2023-01-29 20:27:31 +00:00
Sidharth Vinod 549483d19b
Update funding :) 2023-01-17 22:09:22 +05:30
Sidharth Vinod 8f8ae64ced
upload error snapshots 2023-01-16 01:23:42 +05:30
Sidharth Vinod 967d3bbb60
Disable link checker on develop PRs
Runs link checker every day to keep cache warm.
2022-12-27 10:35:07 +05:30
Tom PERRILLAT-COLLOMB 3beb828988 chore(pr): add task in PR template 2022-12-20 18:35:03 +01:00