mirror of
https://github.com/neovim/neovim.git
synced 2026-07-16 06:10:39 +00:00
Bumps the github-actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/checkout` from 6 to 6.0.2 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v6...v6.0.2) Updates `github/codeql-action` from 4.35.5 to 4.36.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.35.5...v4.36.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 4.36.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
name: "news.txt"
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
|
|
branches:
|
|
- 'master'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
if: >-
|
|
github.event.pull_request.draft == false &&
|
|
!contains(github.event.pull_request.labels.*.name, 'ci:skip-news') &&
|
|
(
|
|
(github.event.action != 'labeled' && github.event.action != 'unlabeled') ||
|
|
github.event.label.name == 'ci:skip-news'
|
|
)
|
|
steps:
|
|
- uses: actions/checkout@v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
persist-credentials: false
|
|
- name: news.txt needs to be updated
|
|
env:
|
|
PULL_REQUEST_COMMITS: ${{ github.event.pull_request.commits }}
|
|
run: |
|
|
for commit in $(git rev-list "HEAD~${PULL_REQUEST_COMMITS}..HEAD"); do
|
|
message=$(git log -n1 --pretty=format:%s $commit)
|
|
type="$(echo "$message" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')"
|
|
breaking="$(echo "$message" | sed -E 's|[[:alpha:]]+(\(.*\))?!:.*|breaking-change|')"
|
|
if [[ "$type" == "feat" ]] || [[ "$type" == "perf" ]] || [[ "$breaking" == "breaking-change" ]]; then
|
|
! git diff "HEAD~${PULL_REQUEST_COMMITS}..HEAD" --quiet runtime/doc/news.txt runtime/doc/deprecated.txt ||
|
|
{
|
|
echo "
|
|
Pull request includes a new feature, performance improvement
|
|
or a breaking change, but news.txt hasn't been updated yet.
|
|
This is just a reminder that news.txt may need to be updated.
|
|
You can ignore this CI failure if you think the change won't
|
|
be of interest to users."
|
|
exit 1
|
|
}
|
|
fi
|
|
done
|