Skip to content

Commit

Permalink
ci: Add auto-changelog service and commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 15, 2021
1 parent ee055f7 commit 953b0ff
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .auto-changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": true,
"commitLimit": false,
"hideCredit": true,
"sortCommits": "date-desc",
"breakingPattern": "BREAKING CHANGE: yes"
}
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,12 @@
"support": {
"issues": "https://github.com/loophp/tin/issues",
"source": "https://github.com/loophp/tin"
},
"scripts": {
"changelog-unreleased": "docker-compose run auto_changelog -c .auto-changelog -u",
"changelog-version": "docker-compose run auto_changelog -c .auto-changelog -v",
"grumphp": "./vendor/bin/grumphp run",
"infection": "vendor/bin/infection run -j 2",
"phpspec": "vendor/bin/phpspec run -vvv --stop-on-failure"
}
}
13 changes: 13 additions & 0 deletions docker/auto-changelog/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:15.4.0-alpine

ENV SRC_PATH /src

RUN apk add --no-cache git
RUN npm install -g auto-changelog@2.2.1
RUN mkdir -p $SRC_PATH

VOLUME [ "$SRC_PATH" ]
WORKDIR $SRC_PATH

CMD ["--help"]
ENTRYPOINT ["auto-changelog"]

0 comments on commit 953b0ff

Please sign in to comment.