Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync files with stordco/common-config-elixir #92

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"section": "Features",
"hidden": false
},
{
"type": "hotfix",
"section": "Hotfixes",
"hidden": true
},
{
"type": "fix",
"section": "Bug Fixes",
Expand All @@ -22,9 +27,7 @@
"draft-pull-request": false,
"packages": {
".": {
"extra-files": [
"README.md"
],
"extra-files": ["README.md"],
"release-type": "elixir"
}
},
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
return;
}

const REGEX = /^(feat!|fix!|fix|feat|chore|(fix|feat|chore)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*/;
const REGEX = /^(feat!|fix!|hotfix!|fix|feat|chore|hotfix|(fix|feat|chore|hotfix)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*/;

if (!REGEX.test(title)) {
core.setFailed("Pull request title does not follow conventional commits");
Expand All @@ -43,7 +43,10 @@ jobs:
fix: [JIRA-1234] fix an existing feature
feat: [JIRA-1234] a new feature to release
feat!: a breaking change
hotfix: needed in production immediately

Note: Adding ! (i.e. \`feat!:\`) represents a breaking change and will result in a SemVer major release.
Adding ! (i.e. \`feat!:\`) represents a breaking change and will result in a SemVer major release.

Starting a commit with \`hotfix\` will result in a seperate hotfix release PR.
`.trim());
}
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ concurrency:
cancel-in-progress: false

jobs:
Please:
Stable:
runs-on: ubuntu-latest

steps:
- id: release
name: Release
uses: googleapis/release-please-action@v4
with:
config-file: .github/release-please-config.json
config-file: .github/release-please-config-stable.json
manifest-file: .github/release-please-manifest.json
target-branch: main
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
Loading