Skip to content

Commit 08befeb

Browse files
committed
Simplify mise task
1 parent 5ee4253 commit 08befeb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.mise/tasks/lint/links-in-modified-files.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ set -e
55

66
#USAGE flag "--base <base>" help="base branch to compare against (default: origin/main)" default="origin/main"
77
#USAGE flag "--head <head>" help="head branch to compare against (empty for local changes) (default: empty)" default=""
8-
#USAGE flag "--event <event>" help="event name (default: pull_request)" default="pull_request"
98

109
if [ "$usage_head" = "''" ]; then
1110
usage_head=""
@@ -17,10 +16,7 @@ fi
1716
config_modified=$(git diff --name-only --merge-base "$usage_base" $usage_head \
1817
| grep -E '^(\.github/config/lychee\.toml|\.mise/tasks/lint/.*|mise\.toml)$' || true)
1918

20-
if [ "$usage_event" != "pull_request" ] ; then
21-
echo "Not a PR - checking all files."
22-
mise run lint:links
23-
elif [ -n "$config_modified" ] ; then
19+
if [ -n "$config_modified" ] ; then
2420
echo "config changes, checking all files."
2521
mise run lint:links
2622
else

0 commit comments

Comments
 (0)