Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Commits
ca7b5b7d
Unverified
Commit
ca7b5b7d
authored
1 year ago
by
tusooa
Browse files
Options
Downloads
Patches
Plain Diff
Add changelog checker
parent
80eddb10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1861
Update master branch
,
!1816
Add changelog checker
Pipeline
#44605
failed
1 year ago
Stage: check-changelog
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+17
-0
17 additions, 0 deletions
.gitlab-ci.yml
tools/check-changelog
+18
-0
18 additions, 0 deletions
tools/check-changelog
with
35 additions
and
0 deletions
.gitlab-ci.yml
+
17
−
0
View file @
ca7b5b7d
...
...
@@ -4,11 +4,28 @@
image
:
node:16
stages
:
-
check-changelog
-
lint
-
build
-
test
-
deploy
check-changelog
:
stage
:
check-changelog
image
:
alpine
rules
:
-
if
:
$CI_MERGE_REQUEST_SOURCE_PROJECT_PATH == 'pleroma/pleroma-fe' && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^renovate/
when
:
never
-
if
:
$CI_MERGE_REQUEST_SOURCE_PROJECT_PATH == 'pleroma/pleroma-fe' && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == 'weblate'
when
:
never
-
if
:
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
before_script
:
'
'
after_script
:
'
'
cache
:
{}
script
:
-
apk add git
-
sh ./tools/check-changelog
lint
:
stage
:
lint
script
:
...
...
This diff is collapsed.
Click to expand it.
tools/check-changelog
0 → 100644
+
18
−
0
View file @
ca7b5b7d
#!/bin/sh
echo
"looking for change log"
git remote add upstream https://git.pleroma.social/pleroma/pleroma-fe.git
git fetch upstream
${
CI_MERGE_REQUEST_TARGET_BRANCH_NAME
}
:refs/remotes/upstream/
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
git diff
--raw
upstream/
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
HEAD
--
changelog.d |
\
grep
' A\t'
|
grep
'\.\(skip\|add\|remove\|fix\|security\)$'
ret
=
$?
if
[
$ret
-eq
0
]
;
then
echo
"found a changelog entry"
exit
0
else
echo
"changelog entry not found"
exit
1
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment