Skip to content

Commit 0a8e2e1

Browse files
committed
Merge remote-tracking branch 'vue-mess-detector/main'
2 parents 7a54d12 + f826178 commit 0a8e2e1

File tree

4 files changed

+179
-12
lines changed

4 files changed

+179
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npm install vue-mess-detector --save-dev
3232

3333
## 📦 Integrations
3434

35-
- [Github Action](https://github.com/brenoepics/vmd-action)
35+
- [Github Action](https://vue-mess-detector.webmania.cc/integrations/vmd-action.html)
3636
- [Nuxt Devtools](https://github.com/rrd108/vue-mess-detector-nuxt-devtools)
3737
- [Vscode Extension](https://marketplace.visualstudio.com/items?itemName=WebMania.vue-mess-detector)
3838
- Vue Devtools (in progress)

docs/.vitepress/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ export default defineConfig({
109109
{ text: 'eslint-plugin-vue Comparison', link: '/eslint-comparison' },
110110
],
111111
},
112+
{
113+
text: 'Integrations',
114+
items: [
115+
{ text: 'Github Action', link: '/integrations/vmd-action' },
116+
],
117+
},
112118
{
113119
items: [
114120
{ text: 'Suggested Readings', link: '/suggested-readings' },

docs/integrations/vmd-action.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# VMD Action
2+
3+
[![Release](https://img.shields.io/github/v/release/brenoepics/vmd-action?include_prereleases&sort=semver&logo=github)](https://github.com/brenoepics/vmd-action/releases)
4+
5+
:::tip
6+
To learn more details about the available options it has, check out the [official documentation](https://github.com/brenoepics/vmd-action).
7+
:::
8+
9+
This GitHub Action integrates VMD into your CI pipeline, providing several key features:
10+
11+
- **Relative Analysis**: Highlights new issues in pull requests.
12+
- **PR Comments**: Adds detailed comments on detected issues.
13+
- **Action Summary**: Summarizes analysis results in the GitHub Actions tab.
14+
15+
## Usage
16+
17+
Here is an example on how to use it on your workflow using `npm`, `pnpm`, `yarn` or `bun`:
18+
19+
::: code-group
20+
21+
```yaml [npm]
22+
name: VMD Analysis
23+
24+
on:
25+
workflow_dispatch:
26+
pull_request:
27+
branches:
28+
- main
29+
push:
30+
branches:
31+
- main
32+
33+
permissions:
34+
contents: read
35+
pull-requests: write
36+
37+
jobs:
38+
detect-mess:
39+
runs-on: ubuntu-latest
40+
name: Detect Vue Mess
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
45+
- name: Install Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: 20
49+
50+
- name: Vue Mess Detector Analysis
51+
uses: brenoepics/[email protected]
52+
```
53+
54+
```yaml [pnpm]
55+
name: VMD Analysis
56+
57+
on:
58+
workflow_dispatch:
59+
pull_request:
60+
branches:
61+
- main
62+
push:
63+
branches:
64+
- main
65+
66+
permissions:
67+
contents: read
68+
pull-requests: write
69+
70+
jobs:
71+
detect-mess:
72+
runs-on: ubuntu-latest
73+
name: Detect Vue Mess
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v4
77+
78+
- uses: pnpm/action-setup@v4 // [!code ++:5]
79+
name: Install pnpm
80+
with:
81+
run_install: false
82+
version: 'latest' # delete this line if you have packageManager defined in package.json
83+
84+
- name: Install Node.js
85+
uses: actions/setup-node@v4
86+
with:
87+
node-version: 20
88+
cache: 'pnpm' // [!code ++]
89+
90+
- name: Vue Mess Detector Analysis
91+
uses: brenoepics/[email protected]
92+
```
93+
94+
```yaml [yarn]
95+
name: VMD Analysis
96+
97+
on:
98+
workflow_dispatch:
99+
pull_request:
100+
branches:
101+
- main
102+
push:
103+
branches:
104+
- main
105+
106+
permissions:
107+
contents: read
108+
pull-requests: write
109+
110+
jobs:
111+
detect-mess:
112+
runs-on: ubuntu-latest
113+
name: Detect Vue Mess
114+
steps:
115+
- name: Checkout
116+
uses: actions/checkout@v4
117+
118+
- name: Install Node.js
119+
uses: actions/setup-node@v4
120+
with:
121+
node-version: 20
122+
cache: 'yarn' // [!code ++]
123+
124+
- name: Vue Mess Detector Analysis
125+
uses: brenoepics/[email protected]
126+
```
127+
128+
```yaml [bun]
129+
name: VMD Analysis
130+
131+
on:
132+
workflow_dispatch:
133+
pull_request:
134+
branches:
135+
- main
136+
push:
137+
branches:
138+
- main
139+
140+
permissions:
141+
contents: read
142+
pull-requests: write
143+
144+
jobs:
145+
detect-mess:
146+
runs-on: ubuntu-latest
147+
name: Detect Vue Mess
148+
steps:
149+
- name: Checkout
150+
uses: actions/checkout@v4
151+
152+
- name: Install Bun // [!code ++:4]
153+
uses: oven-sh/setup-bun@v2
154+
with:
155+
bun-version: 'latest'
156+
157+
- name: Vue Mess Detector Analysis
158+
uses: brenoepics/[email protected]
159+
```
160+
161+
:::

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ birpc@^0.2.17:
17101710

17111711
boolbase@^1.0.0:
17121712
version "1.0.0"
1713-
resolved "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz"
1713+
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
17141714
integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==
17151715

17161716
brace-expansion@^1.1.7:
@@ -1953,7 +1953,7 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3:
19531953

19541954
cssesc@^3.0.0:
19551955
version "3.0.0"
1956-
resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz"
1956+
resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
19571957
integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
19581958

19591959
csstype@^3.1.3:
@@ -2332,9 +2332,9 @@ eslint-plugin-unused-imports@^4.1.4:
23322332
integrity sha512-YptD6IzQjDardkl0POxnnRBhU1OEePMV0nd6siHaRBbd+lyh6NAhFEobiznKU7kTsSsDeSD62Pe7kAM1b7dAZQ==
23332333

23342334
eslint-plugin-vue@^9.12.0, eslint-plugin-vue@^9.28.0:
2335-
version "9.28.0"
2336-
resolved "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.28.0.tgz"
2337-
integrity sha512-ShrihdjIhOTxs+MfWun6oJWuk+g/LAhN+CiuOl/jjkG3l0F2AuK5NMTaWqyvBgkFtpYmyks6P4603mLmhNJW8g==
2335+
version "9.29.0"
2336+
resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-9.29.0.tgz#fa1d62a88c22102be4fb8c275929698a1aee4b04"
2337+
integrity sha512-hamyjrBhNH6Li6R1h1VF9KHfshJlKgKEg3ARbGTn72CMNDSMhWbgC7NdkRDEh25AFW+4SDATzyNM+3gWuZii8g==
23382338
dependencies:
23392339
"@eslint-community/eslint-utils" "^4.4.0"
23402340
globals "^13.24.0"
@@ -3089,7 +3089,7 @@ lodash.merge@^4.6.0, lodash.merge@^4.6.2:
30893089

30903090
lodash@^4.17.19, lodash@^4.17.21:
30913091
version "4.17.21"
3092-
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
3092+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
30933093
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
30943094

30953095
loglevel-colored-level-prefix@^1.0.0:
@@ -3683,7 +3683,7 @@ npm-run-path@^6.0.0:
36833683

36843684
nth-check@^2.1.1:
36853685
version "2.1.1"
3686-
resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz"
3686+
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d"
36873687
integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==
36883688
dependencies:
36893689
boolbase "^1.0.0"
@@ -3873,7 +3873,7 @@ pluralize@^8.0.0:
38733873

38743874
postcss-selector-parser@^6.0.15:
38753875
version "6.1.2"
3876-
resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz"
3876+
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz#27ecb41fb0e3b6ba7a1ec84fff347f734c7929de"
38773877
integrity sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==
38783878
dependencies:
38793879
cssesc "^3.0.0"
@@ -4448,7 +4448,7 @@ type-check@^0.4.0, type-check@~0.4.0:
44484448

44494449
type-fest@^0.20.2:
44504450
version "0.20.2"
4451-
resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz"
4451+
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
44524452
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
44534453

44544454
type-fest@^0.21.3:
@@ -4554,7 +4554,7 @@ uri-js@^4.2.2:
45544554

45554555
util-deprecate@^1.0.2:
45564556
version "1.0.2"
4557-
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
4557+
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
45584558
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
45594559

45604560
v8-compile-cache-lib@^3.0.1:
@@ -4748,7 +4748,7 @@ wrappy@1:
47484748

47494749
xml-name-validator@^4.0.0:
47504750
version "4.0.0"
4751-
resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz"
4751+
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835"
47524752
integrity sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==
47534753

47544754
y18n@^5.0.5:

0 commit comments

Comments
 (0)