commit
ec793045fd
|
@ -0,0 +1,17 @@
|
||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 60
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 7
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- pinned
|
||||||
|
- security
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: wontfix
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
|
for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
|
@ -5,7 +5,7 @@ on:
|
||||||
- 'releases/*'
|
- 'releases/*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
17
README.md
17
README.md
|
@ -9,13 +9,23 @@ This action will bump version, tag commit and generate a changelog with conventi
|
||||||
- **Optional** `preset`: Preset that is used from conventional commits. Default `angular`.
|
- **Optional** `preset`: Preset that is used from conventional commits. Default `angular`.
|
||||||
- **Optional** `tag-prefix`: Prefix for the git tags. Default `v`.
|
- **Optional** `tag-prefix`: Prefix for the git tags. Default `v`.
|
||||||
- **Optional** `output-file`: File to output the changelog to. Default `CHANGELOG.md`.
|
- **Optional** `output-file`: File to output the changelog to. Default `CHANGELOG.md`.
|
||||||
- **Optional** `changelog-release-count`: Number of releases to preserve in changelog. Default `5`, use `0` to regenerate all.
|
- **Optional** `release-count`: Number of releases to preserve in changelog. Default `5`, use `0` to regenerate all.
|
||||||
|
- **Optional** `package-json`: The path to the package.json to use. Default `./package.json`.
|
||||||
|
|
||||||
## Example usage
|
## Example usages
|
||||||
|
|
||||||
|
Uses all the defaults
|
||||||
```yaml
|
```yaml
|
||||||
- name: Conventional Changelog Action
|
- name: Conventional Changelog Action
|
||||||
uses: TriPSs/conventional-changelog-action@v1.2.0
|
uses: TriPSs/conventional-changelog-action@v2.1.0
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.github_token }}
|
||||||
|
```
|
||||||
|
|
||||||
|
Overwrite everything
|
||||||
|
```yaml
|
||||||
|
- name: Conventional Changelog Action
|
||||||
|
uses: TriPSs/conventional-changelog-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
git-message: 'chore(release): {version}'
|
git-message: 'chore(release): {version}'
|
||||||
|
@ -23,4 +33,5 @@ This action will bump version, tag commit and generate a changelog with conventi
|
||||||
tag-prefix: 'v'
|
tag-prefix: 'v'
|
||||||
output-file: 'CHANGELOG.md'
|
output-file: 'CHANGELOG.md'
|
||||||
release-count: '5'
|
release-count: '5'
|
||||||
|
package-json: './package.json'
|
||||||
```
|
```
|
||||||
|
|
|
@ -38,3 +38,8 @@ inputs:
|
||||||
description: 'Number of releases to preserve in changelog'
|
description: 'Number of releases to preserve in changelog'
|
||||||
default: '5'
|
default: '5'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
package-json:
|
||||||
|
description: 'The path to the package.json to use'
|
||||||
|
default: './package.json'
|
||||||
|
required: false
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
const core = require('@actions/core')
|
||||||
|
|
||||||
const packageJsonLoc = path.resolve('./', 'package.json')
|
const packageJsonLoc = path.resolve(core.getInput('package-json'))
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,14 @@ async function run() {
|
||||||
const preset = core.getInput('preset')
|
const preset = core.getInput('preset')
|
||||||
const outputFile = core.getInput('output-file')
|
const outputFile = core.getInput('output-file')
|
||||||
const releaseCount = core.getInput('release-count')
|
const releaseCount = core.getInput('release-count')
|
||||||
|
const packageJsonToUse = core.getInput('package-json')
|
||||||
|
|
||||||
core.info(`Using "${preset}" preset`)
|
core.info(`Using "${preset}" preset`)
|
||||||
|
core.info(`Using "${commitMessage}" as commit message`)
|
||||||
|
core.info(`Using "${releaseCount}" release count`)
|
||||||
|
core.info(`Using "${packageJsonToUse}"`)
|
||||||
|
core.info(`Using "${tagPrefix}" as tag prefix`)
|
||||||
|
core.info(`Using "${outputFile}" as output file`)
|
||||||
|
|
||||||
conventionalRecommendedBump({ preset }, async(error, recommendation) => {
|
conventionalRecommendedBump({ preset }, async(error, recommendation) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
Loading…
Reference in New Issue