Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
feat!: change default preset (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z committed Oct 7, 2022
1 parent ea14258 commit 1475cf5
Show file tree
Hide file tree
Showing 10 changed files with 1,201 additions and 3,652 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ jobs:
uses: actions/checkout@v3

- uses: ./
with:
preset: conventional-changelog-angular@^5.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.9.0-alpine
FROM node:18-alpine

ADD package.json package-lock.json /action/
RUN cd /action && npm ci
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ See [Conventional Commits](https://www.conventionalcommits.org/) for sample titl

### `preset`

**Required** Conventional changelog preset. Default `"conventional-changelog-angular"`.
**Required** Conventional changelog preset. Default `"conventional-changelog-conventionalcommits@5.0.0"`.

### `target-url`

**Optional** URL to be used when linking the "Details" in the actions overview. Default `"https://github.com/aslafy-z/conventional-pr-title-action"`.
**Optional** URL to be used when linking the "Details" in the actions overview. Default `"https://www.conventionalcommits.org/en/v1.0.0/#summary"`.

## Outputs

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
success-state: Title follows the specification.
failure-state: Title does not follow the specification.
context-name: conventional-pr-title
preset: conventional-changelog-angular@latest
preset: conventional-changelog-conventionalcommits@5.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ description: Ensure your PR title matches the Conventional Commits spec (https:/
inputs:
success-state:
description: Description of the status check if validation succeeds.
required: true
required: false
default: Title follows the specification.
failure-state:
description: Description of the status check if validation fails.
required: true
required: false
default: Title does not follow the specification.
context-name:
description: Persistent status check context key
required: true
required: false
default: conventional-pr-title
preset:
description: Conventional changelog preset to use.
required: true
default: conventional-changelog-angular
required: false
default: conventional-changelog-conventionalcommits@5.0.0
target-url:
description: URL to be used when linking the "Details" in the actions overview.
required: false
default: https://github.com/aslafy-z/conventional-pr-title-action
default: https://www.conventionalcommits.org/en/v1.0.0/#summary
runs:
using: docker
image: Dockerfile
Expand Down
Loading

0 comments on commit 1475cf5

Please sign in to comment.