Skip to content

Commit d651fbb

Browse files
authored
Simplify mise task (#2472)
1 parent ceb4a6b commit d651fbb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ fi
1717
config_modified=$(git diff --name-only --merge-base "$usage_base" $usage_head \
1818
| grep -E '^(\.github/config/lychee\.toml|\.mise/tasks/lint/.*|mise\.toml)$' || true)
1919

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
20+
if [ -n "$config_modified" ] ; then
2421
echo "config changes, checking all files."
2522
mise run lint:links
2623
else

0 commit comments

Comments
 (0)