mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
ci(news): trigger job for perf
commit type
There is a "performance" section in news.txt so it makes sense we should also give a reminder to update news for performance improvements.
This commit is contained in:
12
.github/workflows/news.yml
vendored
12
.github/workflows/news.yml
vendored
@ -19,15 +19,15 @@ jobs:
|
|||||||
message=$(git log -n1 --pretty=format:%s $commit)
|
message=$(git log -n1 --pretty=format:%s $commit)
|
||||||
type="$(echo "$message" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')"
|
type="$(echo "$message" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')"
|
||||||
breaking="$(echo "$message" | sed -E 's|[[:alpha:]]+(\(.*\))?!:.*|breaking-change|')"
|
breaking="$(echo "$message" | sed -E 's|[[:alpha:]]+(\(.*\))?!:.*|breaking-change|')"
|
||||||
if [[ "$type" == "feat" ]] || [[ "$breaking" == "breaking-change" ]]; then
|
if [[ "$type" == "feat" ]] || [[ "$type" == "perf" ]] || [[ "$breaking" == "breaking-change" ]]; then
|
||||||
! git diff HEAD~${{ github.event.pull_request.commits }}..HEAD --quiet runtime/doc/news.txt ||
|
! git diff HEAD~${{ github.event.pull_request.commits }}..HEAD --quiet runtime/doc/news.txt ||
|
||||||
{
|
{
|
||||||
echo "
|
echo "
|
||||||
Pull request includes a new feature or a breaking change, but
|
Pull request includes a new feature, performance improvement
|
||||||
news.txt hasn't been updated yet. This is just a reminder
|
or a breaking change, but news.txt hasn't been updated yet.
|
||||||
that news.txt may need to be updated. You can ignore this CI
|
This is just a reminder that news.txt may need to be updated.
|
||||||
failure if you think the change won't be of interest to
|
You can ignore this CI failure if you think the change won't
|
||||||
users."
|
be of interest to users."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user