vale-action: _onlyModified is failing
I’m testing out the Vale action for onlyModified and I am getting the following failure.
Warning: User-specified path (__onlyModified) is invalid; falling back to 'all'.
You can review my code and test here https://github.com/tjperry07/vale-setup/pull/1/checks?check_run_id=1413681722
Run errata-ai/vale-action@v1.3.0
/usr/bin/docker run --name ad72896c53a74836b0358e95b19b1553_016fa3 --label 179394 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_FILES -e INPUT_STYLES -e INPUT_CONFIG -e INPUT_DEBUG -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/vale-setup/vale-setup":"/github/workspace" 179394:ad72896c53a74836b0358e95b19b1553 "" "" "__onlyModified" "false"
Warning: User-specified path (__onlyModified) is invalid; falling back to 'all'.
Vale: Found 0 suggestion(s), 0 warning(s), and 4 error(s).
action file
name: Linting
on: [push]
jobs:
prose:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Vale
uses: errata-ai/vale-action@v1.3.0
with:
# Optional
# styles: |
# https://github.com/errata-ai/Microsoft/releases/latest/download/Microsoft.zip
# https://github.com/errata-ai/write-good/releases/latest/download/write-good.zip
# # Optional
# config: https://raw.githubusercontent.com/errata-ai/vale/master/.vale.ini
# Optional
files: __onlyModified
env:
# Required
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 26 (11 by maintainers)
Commits related to this issue
- Work around issues with unreleased action features Per https://github.com/errata-ai/vale-action/issues/27#issuecomment-729723249 Signed-off-by: Roger Sheen <roger@infotexture.net> — committed to dita-ot/docs by infotexture 4 years ago
- Disable option to check only modified lines Per https://github.com/errata-ai/vale-action/issues/27#issuecomment-729590633 Signed-off-by: Roger Sheen <roger@infotexture.net> — committed to dita-ot/docs by infotexture 4 years ago
- feat: add gh action for vale check irt https://github.com/blockstackpbc/devops/issues/527 considering this known Vale issue: https://github.com/errata-ai/vale-action/issues/27 — committed to stacks-network/docs by deleted user 4 years ago
- feat: add gh action for vale check irt https://github.com/blockstackpbc/devops/issues/527 considering this known Vale issue: https://github.com/errata-ai/vale-action/issues/27 — committed to stacks-network/docs by deleted user 4 years ago
- clean: Use new Vale option to only check modified files in pull requests See https://github.com/errata-ai/vale-action/issues/27 for more info. — committed to codacy/docs by deleted user 3 years ago
- clean: Use new Vale option to only check modified files in pull requests (#422) See https://github.com/errata-ai/vale-action/issues/27 for more info. — committed to codacy/docs by prcr 3 years ago
To report back: I just updated our workflow, and it seems to be working nicely. Notably, I changed from [push] to [pull_request], and now the workflow checks all files within a PR, not just the ones within one commit.
Here’s our config:
This should be fixed on
@master
now. Pending more testing, I’ll make a new release.Getting a new release out is on my to-do list, but I don’t have a concrete timeline.
@jouni: I think that should be fixed now.
@jdkato at first sight that sounds very reasonable! I plan to have a deeper look at this after Jan 4 (in case the issue persists till then).
I got the same error as @jouni when using
@master
.This works to check only modified files. It uses another action to grab only changed files and then vale checks that file. This works until _onlyModified is working.
The most useful outcome would be for Vale to run against all changes in a PR, since the basis for approval of a PR is the set of all changes in the PR.
I tried using
@master
but got a slightly different error:I mentioned it here: https://github.com/errata-ai/vale-action/issues/22#issuecomment-726618738
These are unreleased features still, so you need to use the
@master
version (not@v1.3.0
) to get access to them.I’m using this same configuration, and find that this setup encourages gradually solving existing issues in the files that are being changed. Since you already have some context about the information on that file, normally it’s not a big extra effort to review the identified issues (this may be different if you have very big files though).
@pierrebeitz, thanks for the suggestion (and thanks for that contribution 👍 ).
We are using vale-action@master at the moment, with
files: __onlyModified
(but withoutonlyAnnotateModifiedLines
), and it’s working alright. We just have a lot “debt” from before, so every PR gets a lot of noise from unmodified lines 😅What about
onlyAnnotateModifiedLines
, is that supposed to work already?Hi, looking forward to using this flag. Any news on a fix? Thanks.
Just raising my hand to support adding onlyAnnotateModifiedLines to this great action. And thanks to @tjperry07 for the workaround!
It also returns an error for
onlyAnnotateModifiedLines
Warning: Unexpected input(s) 'onlyAnnotateModifiedLines', valid inputs are ['entryPoint', 'args', 'styles', 'config', 'files', 'debug']