Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
regula-bot committed Dec 12, 2024
2 parents 7c87265 + ae73e50 commit b91f12f
Show file tree
Hide file tree
Showing 45 changed files with 3,654 additions and 136 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/back-merge-handler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Back Merge handler

on:
push:
branches:
- master
- stable

jobs:
pr_master_to_stable:
runs-on: ubuntu-latest
if: github.ref_name == 'master'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check if PR exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
--json baseRefName,headRefName \
--jq '
map(select(.baseRefName == "stable" and .headRefName == "master"))
| length
')
if ((prs > 0)); then
echo "Pull Request already exists"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Check if stable is ahead
run: |
commits=$(git rev-list origin/stable..origin/master --count)
if ((commits == 0)); then
echo "No diffs was found between branches"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Create Pull Request
if: env.SKIP != 'true'
run: gh pr create -B stable -H master --title '[GitHub Actions] Merge master -> stable' --label back-merge --body 'Autogenerated Pull Request for `back-merge` triggered by Github Actions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pr_stable_to_develop:
runs-on: ubuntu-latest
if: github.ref_name == 'stable'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check if PR exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
--json baseRefName,headRefName \
--jq '
map(select(.baseRefName == "develop" and .headRefName == "stable"))
| length
')
if ((prs > 0)); then
echo "Pull Request already exists"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Check if stable is ahead
run: |
commits=$(git rev-list origin/develop..origin/stable --count)
if ((commits == 0)); then
echo "No diffs was found between branches"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Create Pull Request
if: env.SKIP != 'true'
run: gh pr create -B develop -H stable --title '[GitHub Actions] Merge stable -> develop' --label back-merge --body 'Autogenerated Pull Request for `back-merge` triggered by Github Actions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
# List of paths (space separated) to ignore
# Supports PATTERNS
# EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml'
EXCLUDE_PATHS: ''
EXCLUDE_PATHS: 'client/generator-templates src/main/generated'
# List of rules (space separated) to ignore
# EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id'
# See https://github.com/semgrep/semgrep-rules for rules registry
Expand Down
6 changes: 5 additions & 1 deletion client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ src/main/generated/com/regula/documentreader/webclient/ProgressResponseBody.java
src/main/generated/com/regula/documentreader/webclient/ServerConfiguration.java
src/main/generated/com/regula/documentreader/webclient/ServerVariable.java
src/main/generated/com/regula/documentreader/webclient/StringUtil.java
src/main/generated/com/regula/documentreader/webclient/api/DefaultApi.java
src/main/generated/com/regula/documentreader/webclient/api/HealthcheckApi.java
src/main/generated/com/regula/documentreader/webclient/api/ProcessApi.java
src/main/generated/com/regula/documentreader/webclient/api/TransactionApi.java
src/main/generated/com/regula/documentreader/webclient/auth/ApiKeyAuth.java
Expand All @@ -26,6 +26,7 @@ src/main/generated/com/regula/documentreader/webclient/model/AuthenticityCheckRe
src/main/generated/com/regula/documentreader/webclient/model/AuthenticityResult.java
src/main/generated/com/regula/documentreader/webclient/model/BcPDF417INFO.java
src/main/generated/com/regula/documentreader/webclient/model/BcROIDETECT.java
src/main/generated/com/regula/documentreader/webclient/model/ByteArrayResult.java
src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentType.java
src/main/generated/com/regula/documentreader/webclient/model/ChosenDocumentTypeResult.java
src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueComparison.java
Expand All @@ -43,6 +44,7 @@ src/main/generated/com/regula/documentreader/webclient/model/DocumentPositionRes
src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidates.java
src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesList.java
src/main/generated/com/regula/documentreader/webclient/model/DocumentTypesCandidatesResult.java
src/main/generated/com/regula/documentreader/webclient/model/DocumentsDatabase.java
src/main/generated/com/regula/documentreader/webclient/model/EncryptedRCLResult.java
src/main/generated/com/regula/documentreader/webclient/model/FDSIDList.java
src/main/generated/com/regula/documentreader/webclient/model/FaceApi.java
Expand All @@ -52,6 +54,8 @@ src/main/generated/com/regula/documentreader/webclient/model/GetTransactionsByTa
src/main/generated/com/regula/documentreader/webclient/model/GraphicField.java
src/main/generated/com/regula/documentreader/webclient/model/GraphicFieldsList.java
src/main/generated/com/regula/documentreader/webclient/model/GraphicsResult.java
src/main/generated/com/regula/documentreader/webclient/model/Healthcheck.java
src/main/generated/com/regula/documentreader/webclient/model/HealthcheckDocumentsDatabase.java
src/main/generated/com/regula/documentreader/webclient/model/IdentResult.java
src/main/generated/com/regula/documentreader/webclient/model/ImageData.java
src/main/generated/com/regula/documentreader/webclient/model/ImageQA.java
Expand Down
2 changes: 1 addition & 1 deletion client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
implementation("com.squareup.okhttp3:logging-interceptor:3.14.7")
implementation("com.google.code.gson:gson:2.8.6")
implementation("io.gsonfire:gson-fire:1.8.4")
implementation("org.threeten:threetenbp:1.6.9")
implementation("org.threeten:threetenbp:1.7.0")
implementation("io.swagger:swagger-annotations:1.5.24")
implementation("javax.annotation:javax.annotation-api:1.3.2")
implementation("com.google.code.findbugs:jsr305:3.0.2")
Expand Down
Loading

0 comments on commit b91f12f

Please sign in to comment.