forked from duffelhq/paginator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync files with stordco/common-config-elixir
- Loading branch information
1 parent
9a2b61c
commit 5740f42
Showing
11 changed files
with
164 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Related Ticket(s) | ||
|
||
<!-- | ||
Enter the Jira issue below in the following format: PROJECT-## | ||
--> | ||
|
||
## Checklist | ||
|
||
<!-- | ||
For each bullet, ensure your pr meets the criteria and write a note explaining how this PR relates. Mark them as complete as they are done. All top-level checkboxes should be checked regardless of their relevance to the pr with a note explaining whether they are relevant or not. | ||
--> | ||
|
||
- [ ] Code conforms to the [Elixir Styleguide](https://github.com/christopheradams/elixir_style_guide) | ||
|
||
## Problem | ||
|
||
<!-- | ||
What is the problem you're solving or feature you're implementing? Link to any Jira tickets or previous discussions of the issue. | ||
--> | ||
|
||
## Details | ||
|
||
<!-- | ||
Include a brief overview of the technical process you took (or are going to take!) to get from the problem to the solution. | ||
--> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,31 @@ jobs: | |
|
||
steps: | ||
- name: Check | ||
uses: stordco/actions[email protected] | ||
uses: actions/github-script@v7 | ||
with: | ||
regex: '^(feat!|fix!|fix|feat|chore|(fix|feat|chore)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*' | ||
hint: | | ||
Your PR title does not match the Stord common convention. Please rename your PR to match one of the following formats: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const title = context.payload?.pull_request?.title; | ||
chore: a small insignificant change | ||
fix: [JIRA-1234] fix an existing feature | ||
feat: [JIRA-1234] a new feature to release | ||
feat!: a breaking change | ||
if (typeof title !== 'string') { | ||
core.info("Pull request data not in payload. Skipping PR title check."); | ||
return; | ||
} | ||
Note: Adding ! (i.e. `feat!:`) represents a breaking change and will result in a SemVer major release. | ||
const REGEX = /^(feat!|fix!|fix|feat|chore|(fix|feat|chore)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*/; | ||
if (!REGEX.test(title)) { | ||
core.setFailed("Pull request title does not follow conventional commits"); | ||
console.log(` | ||
Pull Request title "${title}" does not follow our [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) naming scheme. | ||
Please try renaming the PR to match one of these examples: | ||
chore: a small insignificant change | ||
fix: [JIRA-1234] fix an existing feature | ||
feat: [JIRA-1234] a new feature to release | ||
feat!: a breaking change | ||
Note: Adding ! (i.e. \`feat!:\`) represents a breaking change and will result in a SemVer major release. | ||
`.trim()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ jobs: | |
run: mix hex.publish --yes | ||
env: | ||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters