Skip to content

Commit

Permalink
feat: add report comparison for PR branch (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics authored Sep 29, 2024
1 parent a197864 commit 1cf20ef
Show file tree
Hide file tree
Showing 18 changed files with 7,639 additions and 59 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ request alerts and display badges effortlessly.
<summary>Preview</summary>

![image](https://github.com/user-attachments/assets/aea8dbb9-49c8-4206-abba-9e4d475040ad)
![img.png](preview.png)

</details>

Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
node-version: '20'

- name: Vue Mess Detector Analysis
uses: brenoepics/vmd-action@v0.0.3
uses: brenoepics/vmd-action@v0.0.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# check inputs for full args list
Expand All @@ -77,18 +78,19 @@ artifacts.
> [!TIP]
> You can find the list of inputs and their descriptions in the [action.yml](action.yml) file.
| Input | Description | Required | Default |
|-------------------|--------------------------------------------------|----------|---------------------------------------------------------|
| github-token | GitHub token for commenting on pull requests | `false` | |
| version | Version of Vue Mess Detector | `true` | [`latest`](https://github.com/rrd108/vue-mess-detector) |
| skipInstall | Skip the installation of Vue Mess Detector | `true` | `false` |
| skipBots | Skip running analysis on pull requests from bots | `true` | `true` |
| commentsEnabled | Comment on Pull requests? | `true` | `true` |
| packageManager | Package manager to use | `false` | (detect) |
| runArgs | Arguments to pass to Vue Mess Detector | `false` | `--group=file` |
| entryPoint | Entry point for Vue Mess Detector | `false` | `./` |
| srcDir | Source directory to analyze | `true` | `src/` |
| deleteOldComments | Delete old VMD comments on pull requests? | `false` | `false` |
| Input | Description | Required | Default |
|-------------------|------------------------------------------------------|----------|---------------------------------------------------------|
| github-token | GitHub token for commenting on pull requests | `false` | |
| version | Version of Vue Mess Detector | `true` | [`latest`](https://github.com/rrd108/vue-mess-detector) |
| skipInstall | Skip the installation of Vue Mess Detector | `true` | `false` |
| skipBots | Skip running analysis on pull requests from bots | `true` | `true` |
| commentsEnabled | Comment on Pull requests? | `true` | `true` |
| packageManager | Package manager to use | `false` | (detect) |
| runArgs | Arguments to pass to Vue Mess Detector | `false` | `--group=file` |
| entryPoint | Entry point for Vue Mess Detector | `false` | `./` |
| srcDir | Source directory to analyze | `true` | `src/` |
| deleteOldComments | Delete old report comments on pull requests? | `false` | `false` |
| relativeMode | Compare the current branch with the target (PR only) | `true` | `true` |

## Contributing

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ inputs:
description: "Delete old comments on pull requests?"
required: false
default: "false"
relativeMode:
description:
"Generate a report comparing the current branch with the target branch"
required: true
default: "true"
runs:
using: "node20"
main: "dist/index.js"
Loading

0 comments on commit 1cf20ef

Please sign in to comment.