-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: register handler factory (#2)
Co-authored-by: abdulrahman <[email protected]> Co-authored-by: mehdihadeli <[email protected]>
- Loading branch information
1 parent
5dec060
commit fa71625
Showing
16 changed files
with
537 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 5 | ||
assignees: | ||
- mehdihadeli |
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,87 @@ | ||
# https://github.com/fuxingloh/multi-labeler | ||
# https://stackoverflow.com/questions/58899999/regexp-to-match-conventional-commit-syntax | ||
version: v1 | ||
|
||
labels: | ||
- label: "feature" | ||
matcher: | ||
title: '^(feat)(\([a-z ]+\))?: .' | ||
commits: '^(feat)(\([a-z ]+\))?: .' | ||
branch: '(feat)(\([a-z ]+\))?\/.' | ||
|
||
- label: "bug" | ||
matcher: | ||
title: '^(fix)(\([a-z ]+\))?: .' | ||
commits: '^(fix)(\([a-z ]+\))?: .' | ||
branch: '(fix)(\([a-z ]+\))?\/.' | ||
|
||
- label: "chore" | ||
matcher: | ||
title: '^(chore)(\([a-z ]+\))?: .' | ||
commits: '^(chore)(\([a-z ]+\))?: .' | ||
branch: '(chore)(\([a-z ]+\))?\/.' | ||
|
||
- label: "documentation" | ||
matcher: | ||
title: '^(docs)(\([a-z ]+\))?: .' | ||
commits: '^(docs)(\([a-z ]+\))?: .' | ||
branch: '(docs)(\([a-z ]+\))?\/.' | ||
|
||
- label: "devops" | ||
matcher: | ||
title: '^(ci)(\([a-z ]+\))?: .' | ||
commits: '^(ci)(\([a-z ]+\))?: .' | ||
branch: '(ci)(\([a-z ]+\))?\/.' | ||
|
||
- label: "ci/cd" | ||
matcher: | ||
title: '^(ci)(\([a-z ]+\))?: .' | ||
commits: '^(ci)(\([a-z ]+\))?: .' | ||
branch: '(ci)(\([a-z ]+\))?\/.' | ||
|
||
- label: "enhancement" | ||
matcher: | ||
title: '^(refactor)(\([a-z ]+\))?: .' | ||
commits: '^(refactor)(\([a-z ]+\))?: .' | ||
branch: '(refactor)(\([a-z ]+\))?\/.' | ||
|
||
- label: "formatting" | ||
matcher: | ||
title: '^(style)(\([a-z ]+\))?: .' | ||
commits: '^(style)(\([a-z ]+\))?: .' | ||
branch: '(style)(\([a-z ]+\))?\/.' | ||
|
||
- label: "performance" | ||
matcher: | ||
title: '^(perf)(\([a-z ]+\))?: .' | ||
commits: '^(perf)(\([a-z ]+\))?: .' | ||
branch: '(perf)(\([a-z ]+\))?\/.' | ||
|
||
- label: "build" | ||
matcher: | ||
title: '^(build)(\([a-z ]+\))?: .' | ||
commits: '^(build)(\([a-z ]+\))?: .' | ||
branch: '(build)(\([a-z ]+\))?\/.' | ||
|
||
- label: "test" | ||
matcher: | ||
title: '^(test)(\([a-z ]+\))?: .' | ||
commits: '^(test)(\([a-z ]+\))?: .' | ||
branch: '(test)(\([a-z ]+\))?\/.' | ||
|
||
- label: "dependencies" | ||
matcher: | ||
title: '^build\(deps\): .' | ||
commits: '^build\(deps\): .' | ||
|
||
- label: "minor" | ||
matcher: | ||
title: '^(feat)(\([a-z ]+\))?: .' | ||
commits: '^(feat)(\([a-z ]+\))?: .' | ||
branch: '(feat)(\([a-z ]+\))?\/.' | ||
|
||
- label: "patch" | ||
matcher: | ||
title: '^(fix)(\([a-z ]+\))?: .' | ||
commits: '^(fix)(\([a-z ]+\))?: .' | ||
branch: '(fix)(\([a-z ]+\))?\/.' |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
<!-- Type of change | ||
Please label this PR with one of the existing labels, depending on the scope of your change. | ||
--> | ||
|
||
## What does this PR do? | ||
|
||
<!-- Mandatory | ||
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, etc. | ||
--> | ||
|
||
## Why is it important? | ||
|
||
<!-- Mandatory | ||
Explain here the WHY, or the rationale / motivation for the changes. | ||
--> | ||
|
||
## Related issues | ||
|
||
<!-- Recommended | ||
Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it. | ||
- Closes #123 | ||
- Relates #123 | ||
- Requires #123 | ||
- Supersedes #123 | ||
--> | ||
- | ||
|
||
<!-- Recommended | ||
## How to test this PR | ||
Explain here how this PR will be tested by the reviewer: commands, dependencies, steps, etc. | ||
--> | ||
|
||
<!-- Optional | ||
## Follow-ups | ||
Add here any thought that you consider could be identified as an actionable step once this PR is merged. | ||
--> |
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 |
---|---|---|
@@ -1,23 +1,47 @@ | ||
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes | ||
# https://github.com/bcoe/conventional-release-labels | ||
# https://dev.to/github/how-to-automatically-generate-release-notes-for-your-project-2ng8 | ||
# https://www.conventionalcommits.org/en/v1.0.0/ | ||
|
||
# github release pre-defined template | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: Features | ||
- title: 🚀 Features | ||
labels: | ||
- feature | ||
- title: Fixes | ||
- title: 🐛 Bug Fixes | ||
labels: | ||
- bug | ||
- fix | ||
- enhancement | ||
- title: Enhancement | ||
- bug | ||
- title: ♻️ Changes | ||
labels: | ||
- refactor | ||
- changed | ||
- enhancement | ||
- refactor | ||
- title: ⛔️ Deprecated | ||
labels: | ||
- deprecated | ||
- title: 🗑 Removed | ||
labels: | ||
- removed | ||
- title: 🔐 Security | ||
labels: | ||
- security | ||
- title: 📄 Documentation | ||
labels: | ||
- docs | ||
- documentation | ||
- title: 🧩 Dependency Updates | ||
labels: | ||
- deps | ||
- dependencies | ||
- title: 🧰 Maintenance | ||
label: 'chore' | ||
- title: 🧺 Miscellaneous #Everything except ABAP | ||
label: misc | ||
- title: Other Changes | ||
labels: | ||
- "*" | ||
- "*" |
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,53 @@ | ||
# https://github.com/amannn/action-semantic-pull-request | ||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests | ||
# Linting workflow: https://github.com/rhysd/actionlint | ||
|
||
name: Conventional Commits | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
- edited | ||
- ready_for_review | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
conventional-commits: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Pull Request Title Conventional Commits | ||
uses: amannn/action-semantic-pull-request@v5 | ||
if: always() | ||
id: check-pull-request-title-conventional-commits | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Comments the error message from the above lint_pr_title action | ||
- if: ${{ always() && steps.check-pull-request-title-conventional-commits.outputs.error_message != null}} | ||
name: Comment on PR | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: pr-title-lint-error | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
message: | | ||
We require all PRs to follow [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/). | ||
More details 👇🏼 | ||
``` | ||
${{ steps.check-pull-request-title-conventional-commits.outputs.error_message}} | ||
``` | ||
# deletes the error comment if the title is correct | ||
- if: ${{ steps.check-pull-request-title-conventional-commits.outputs.error_message == null }} | ||
name: delete the comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: pr-title-lint-error | ||
delete: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.