Skip to content

Commit 8b292c0

Browse files
authored
Merge pull request #143 from RustyRory/dev
RELEASE 0.3.0
2 parents 4bf6777 + 3474692 commit 8b292c0

30 files changed

Lines changed: 481 additions & 323 deletions

File tree

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto eol=lf
2+
*.js text eol=lf
3+
*.ts text eol=lf
4+
*.tsx text eol=lf
5+
*.json text eol=lf
6+
*.md text eol=lf
7+
*.yml text eol=lf
8+
*.yaml text eol=lf

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
working-directory: saintBarthVolleyApp/backend
2929

3030
- name: 'Audit npm backend'
31-
run: npm audit --audit-level=high --omit=dev
31+
run: npm audit --audit-level=critical --omit=dev
3232
working-directory: saintBarthVolleyApp/backend
3333

3434
audit-frontend:
@@ -50,5 +50,5 @@ jobs:
5050
working-directory: saintBarthVolleyApp/frontend
5151

5252
- name: 'Audit npm frontend'
53-
run: npm audit --audit-level=high --omit=dev
53+
run: npm audit --audit-level=critical --omit=dev
5454
working-directory: saintBarthVolleyApp/frontend

.github/workflows/commit-message.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,29 @@ jobs:
2323
2424
git fetch origin $BASE_REF
2525
26-
REGEX="^(feat|fix|docs|chore|refactor|test|hotfix)\([a-z0-9_-]+\): Fixes #[0-9]+ - .+"
26+
# Commits avec numéro d'issue (feat, fix, hotfix, refactor, test)
27+
REGEX_ISSUE="^(feat|fix|hotfix|refactor|test)\([a-z0-9_-]+\): Fixes #[0-9]+ - .+"
28+
# Commits sans numéro d'issue autorisés (chore, docs, ci, fix(ci))
29+
REGEX_NO_ISSUE="^(chore|docs|ci|fix)\(ci\): .+|^(chore|docs)\([a-z0-9_-]+\): .+"
2730
2831
COMMITS=$(git log origin/$BASE_REF..HEAD --pretty=format:"%H")
2932
3033
INVALID=false
3134
3235
for COMMIT in $COMMITS; do
33-
MESSAGE=$(git log -1 --pretty=format:"%s" $COMMIT)
36+
MESSAGE=$(git log -1 --pretty=format:"%s" $COMMIT | sed 's/^[[:space:]]*//')
3437
35-
# Ignorer les commits de merge
36-
if [[ "$MESSAGE" =~ ^Merge\ ]]; then
38+
# Ignorer tous les commits de merge
39+
if [[ "$MESSAGE" =~ ^Merge ]]; then
3740
echo "⏭️ Commit de merge ignoré: $MESSAGE"
3841
continue
3942
fi
4043
41-
if ! [[ "$MESSAGE" =~ $REGEX ]]; then
44+
if [[ "$MESSAGE" =~ $REGEX_ISSUE ]] || [[ "$MESSAGE" =~ $REGEX_NO_ISSUE ]]; then
45+
echo "✅ Commit valide: $MESSAGE"
46+
else
4247
echo "❌ Commit invalide: $MESSAGE"
4348
INVALID=true
44-
else
45-
echo "✅ Commit valide: $MESSAGE"
4649
fi
4750
done
4851

.github/workflows/ticket.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
exit 0
2525
fi
2626
27-
# Regex pour le commit / titre PR : type(nom): Fixes #<num> - message
28-
if [[ "$PR_TITLE" =~ ^(feat|feature|fix|docs|chore|refactor|test|hotfix)\([a-zA-Z0-9_-]+\):\ Fixes\ \#[0-9]+\ -\ .+ ]]; then
27+
# Regex pour le titre PR : type(nom): Fixes #<num> - message
28+
TITLE_REGEX='^(feat|feature|fix|docs|chore|refactor|test|hotfix)\([a-zA-Z0-9_-]+\): Fixes #[0-9]+ - .+'
29+
if [[ "$PR_TITLE" =~ $TITLE_REGEX ]]; then
2930
echo "✅ Titre de PR valide avec référence au ticket"
3031
exit 0
3132
fi
3233
33-
# Regex pour le nom de branche : feature/123-description, fix/123-description, hotfix/123-description
34-
if [[ "$BRANCH_NAME" =~ ^(feature|fix|hotfix)/[0-9]+-.+ ]]; then
34+
# Regex pour le nom de branche : feat/123-description, feature/123-description, fix/123-description, hotfix/123-description
35+
if [[ "$BRANCH_NAME" =~ ^(feat|feature|fix|hotfix)/[0-9]+-.+ ]]; then
3536
echo "✅ Nom de branche valide avec référence au ticket"
3637
exit 0
3738
fi

saintBarthVolleyApp/backend/package-lock.json

Lines changed: 3 additions & 204 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

saintBarthVolleyApp/backend/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@
2323
"cors": "^2.8.5",
2424
"dotenv": "^17.2.3",
2525
"express": "^5.2.1",
26-
"gridfs-stream": "^1.1.1",
2726
"jsonwebtoken": "^9.0.3",
2827
"lodash.merge": "^4.6.2",
2928
"mongodb": "^7.1.1",
3029
"mongoose": "^9.1.5",
3130
"multer": "^2.1.1",
32-
"multer-gridfs-storage": "^5.0.2",
3331
"nodemailer": "^8.0.4",
3432
"puppeteer": "^24.37.1"
3533
},
7.41 KB
Loading

0 commit comments

Comments
 (0)