Skip to content

Commit

Permalink
ci(dev-cycle): release changelog generation (#25725)
Browse files Browse the repository at this point in the history
Introducing a Github Action to generate, based on Github repo commits, a release candidate changelog.

Refs: #25350
  • Loading branch information
victoralfaro-dotcms authored Aug 18, 2023
1 parent d8325ad commit 48e537d
Show file tree
Hide file tree
Showing 32 changed files with 132,026 additions and 24 deletions.
4 changes: 4 additions & 0 deletions .github/actions/changelog-report/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/
lib/
node_modules/
src/@types/
17 changes: 17 additions & 0 deletions .github/actions/changelog-report/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"plugins": ["@typescript-eslint", "github", "jest"],
"extends": ["plugin:github/typescript"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
}
}
26 changes: 26 additions & 0 deletions .github/actions/changelog-report/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# action.yml
name: 'Changelog Report'
description: 'Changelog report generator'
author: 'victoralfaro-dotcms'
inputs:
project_root:
description: 'Project root'
required: true
default: ${{ github.WORKSPACE }}
issues_json:
description: 'Issues json'
required: true
default: '[]'
tag:
description: 'Tag name'
required: true
format:
description: 'Format to generate the report'
required: false
default: 'md'
outputs:
changelog_report_contents:
description: 'Changelog report contents'
runs:
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit 48e537d

Please sign in to comment.