[FEAT] add workflow

This commit is contained in:
Edouard DUPIN 2024-11-06 16:08:03 +01:00
parent 9da5f589db
commit c06658d9bc
7 changed files with 60 additions and 28 deletions

3
.github/auto-assign.yml vendored Normal file
View File

@ -0,0 +1,3 @@
---
addAssignees: author
runOnDraft: true

View File

@ -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) "

14
.github/pr-title-checker-config.json vendored Normal file
View File

@ -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"
}
}

View File

@ -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 }}

13
.github/workflows/auto-assign.yml vendored Normal file
View File

@ -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'

View File

@ -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

22
.github/workflows/pr-title-checker.yml vendored Normal file
View File

@ -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