Skip to content

Commit 3e9d558

Browse files
author
rechain-bot
committed
docs(ci): add GitLab-facing docs and changelog check workflow
1 parent 6de16c6 commit 3e9d558

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Changelog Check
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, edited]
5+
permissions:
6+
contents: read
7+
pull-requests: read
8+
jobs:
9+
changelog:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Check for CHANGELOG update
16+
run: |
17+
git diff --name-only origin/${{ github.base_ref }}... | tee changed.txt
18+
if grep -E '\.(rs|toml|json|yml|yaml|md)$' changed.txt | grep -vq '^CHANGELOG.md$'; then
19+
if ! grep -q '^CHANGELOG.md$' changed.txt; then
20+
echo "Please update CHANGELOG.md for this change." >&2
21+
exit 1
22+
fi
23+
fi

.gitlab/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See root contributing guide at `../CONTRIBUTING.md`.

.gitlab/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# GitLab Config
2+
3+
- CI: see `.gitlab-ci.yml`
4+
- Issue templates: `.gitlab/issue_templates/`
5+
- CODEOWNERS: `.gitlab/CODEOWNERS`

.gitlab/SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See root SECURITY policy at `../SECURITY.md`.

0 commit comments

Comments
 (0)