diff --git a/.github/auto-assign.yml b/.github/auto-assign.yml new file mode 100644 index 0000000..1f988e6 --- /dev/null +++ b/.github/auto-assign.yml @@ -0,0 +1,3 @@ +--- +addAssignees: author +runOnDraft: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f17f51b..fec9e65 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,12 +1,9 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - +--- version: 2 updates: - - package-ecosystem: "" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: "weekly" - + interval: "daily" + commit-message: + prefix: "[DEV-OPS] (dependabot) " diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json new file mode 100644 index 0000000..b73ca3d --- /dev/null +++ b/.github/pr-title-checker-config.json @@ -0,0 +1,14 @@ +{ + "CHECKS": { + "regexp": "\\[(API,)?(API|DEV-OPS|DOC|FEAT|FIX|FIX\\-CI|STYLE)\\]( \\([A-Za-z0-9.\\-/_]+\\))? [A-Za-z0-9 ,.'\\-!/_]+$" + }, + "LABEL": { + "color": "EEEEEE", + "name": "title needs formatting" + }, + "MESSAGES": { + "failure": "Failing CI test", + "notice": "Title of the PR MUST respect format: [{TYPE}] clear description without typos in english\n with {TYPE}:\n * [API] Change API that permit to access on the application (un-compatibility only). This one can specifically added with [API,{TYPE}]\n * [DEV-OPS] Update automatic build system, method to deliver application/packages, ...\n * [DOC] Update or add some documentation.\n * [FEAT] Develop a new feature\n * [FIX] When fixing issue\n * [FIX-CI] When the CI fail to build and we apply a correction to set it work again.\n * [STYLE] Update of the style tools/checker, or add/remove rules.\n Examples:\n [FEAT] My beautiful feature\n [API,FIX] Change API to fix typo\n [FIX] (module) Correct part of ...", + "success": "All OK" + } +} diff --git a/.github/workflows/assign-pr-author.yml b/.github/workflows/assign-pr-author.yml deleted file mode 100644 index 907e54d..0000000 --- a/.github/workflows/assign-pr-author.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: "Assign PR Author as Assignee" - -"on": - pull_request: - types: [opened, ready_for_review, reopened] - -jobs: - assign-pr-author-as-assignee: - runs-on: ubuntu-latest - steps: - - name: "Assign Author as Assignee" - uses: itsOliverBott/assign-pr-author-as-assignee@latest - with: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..376a560 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,13 @@ +--- +name: 'Auto Assign' +"on": + pull_request: + types: [opened] + +jobs: + add-assignee: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v2.0.0 + with: + configuration-path: '.github/auto-assign.yml' diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9b7f5ec..0cc7531 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,15 +10,13 @@ name: Java CI with Maven on: push: - branches: [ "develop" ] + branches: + - develop pull_request: - branches: [ "develop" ] jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Set up JDK 17 diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml new file mode 100644 index 0000000..658597d --- /dev/null +++ b/.github/workflows/pr-title-checker.yml @@ -0,0 +1,22 @@ +--- +name: "PR Title Checker" + +on: + pull_request: + types: + - opened + - edited + - synchronize + - ready_for_review + - reopened + - labeled + - unlabeled + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: thehanimo/pr-title-checker@v1.4.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + pass_on_octokit_error: false