From f5b94a8919743e39ccf0c7e26b4e6cab6fe7e625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Fri, 19 Apr 2024 08:15:24 +0200 Subject: [PATCH] feat: HCaptcha Middleware --- .github/release-drafter-hcaptcha.yml | 50 +++++++++++++++++++ .../workflows/release-drafter-hcaptcha.yml | 19 +++++++ .github/workflows/test-hcaptcha.yml | 1 + README.md | 4 +- 4 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 .github/release-drafter-hcaptcha.yml create mode 100644 .github/workflows/release-drafter-hcaptcha.yml diff --git a/.github/release-drafter-hcaptcha.yml b/.github/release-drafter-hcaptcha.yml new file mode 100644 index 00000000..ac53ef19 --- /dev/null +++ b/.github/release-drafter-hcaptcha.yml @@ -0,0 +1,50 @@ +name-template: 'HCaptcha - v$RESOLVED_VERSION' +tag-template: 'hcaptcha/v$RESOLVED_VERSION' +tag-prefix: hcaptcha/v +include-paths: + - hcaptcha +categories: + - title: 'โ— Breaking Changes' + labels: + - 'โ— BreakingChange' + - title: '๐Ÿš€ New' + labels: + - 'โœ๏ธ Feature' + - title: '๐Ÿงน Updates' + labels: + - '๐Ÿงน Updates' + - '๐Ÿค– Dependencies' + - title: '๐Ÿ› Fixes' + labels: + - 'โ˜ข๏ธ Bug' + - title: '๐Ÿ“š Documentation' + labels: + - '๐Ÿ“’ Documentation' +change-template: '- $TITLE (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +exclude-contributors: + - dependabot + - dependabot[bot] +version-resolver: + major: + labels: + - 'major' + - 'โ— BreakingChange' + minor: + labels: + - 'minor' + - 'โœ๏ธ Feature' + patch: + labels: + - 'patch' + - '๐Ÿ“’ Documentation' + - 'โ˜ข๏ธ Bug' + - '๐Ÿค– Dependencies' + - '๐Ÿงน Updates' + default: patch +template: | + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...hcaptcha/v$RESOLVED_VERSION + + Thank you $CONTRIBUTORS for making this update possible. diff --git a/.github/workflows/release-drafter-hcaptcha.yml b/.github/workflows/release-drafter-hcaptcha.yml new file mode 100644 index 00000000..3c52f622 --- /dev/null +++ b/.github/workflows/release-drafter-hcaptcha.yml @@ -0,0 +1,19 @@ +name: Release Drafter HCaptcha +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + - main + paths: + - 'hcaptcha/**' +jobs: + draft_release_jwt: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: release-drafter/release-drafter@v6 + with: + config-name: release-drafter-hcaptcha.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-hcaptcha.yml b/.github/workflows/test-hcaptcha.yml index 070fa367..a5ee5acd 100644 --- a/.github/workflows/test-hcaptcha.yml +++ b/.github/workflows/test-hcaptcha.yml @@ -18,6 +18,7 @@ jobs: matrix: go-version: - 1.21.x + - 1.22.x steps: - name: Fetch Repository uses: actions/checkout@v4 diff --git a/README.md b/README.md index 746b8f82..96086331 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,9 @@ Repository for third party middlewares with dependencies. * [Fibersentry](./fibersentry/README.md) * [Fiberzap](./fiberzap/README.md) * [Fiberzerolog](./fiberzerolog/README.md) +* [HCaptcha](./hcaptcha/README.md) * [JWT](./jwt/README.md) -* [Loadshed](./loadshed/README.md) +* [Loadshed](./loadshed/README.md) * [NewRelic](./fibernewrelic/README.md) * [Open Policy Agent](./opafiber/README.md) * [Otelfiber (OpenTelemetry)](./otelfiber/README.md) @@ -34,4 +35,3 @@ Repository for third party middlewares with dependencies. * [Socket.io](./socketio/README.md) * [Swagger](./swagger/README.md) * [Websocket](./websocket/README.md) -* [HCaptcha](./hcaptcha/README.md)