Commit graph

690 commits

Author SHA1 Message Date
99e45725bf CLOSE: #0 Remove unused repository configuration files 2026-08-19 10:09:22 +05:30
5137541350 CLOSE: #0 Remove upstream GitHub workflows 2026-08-19 10:06:36 +05:30
dependabot[bot]
5a41ffd8b2
Bump mdeweerd/logToCheckStyle from 2026.7.1 to 2026.8.2 (#39565)
Bumps [mdeweerd/logToCheckStyle](https://github.com/mdeweerd/logtocheckstyle) from 2026.7.1 to 2026.8.2.
- [Commits](https://github.com/mdeweerd/logtocheckstyle/compare/v2026.7.1...v2026.8.2)

---
updated-dependencies:
- dependency-name: mdeweerd/logToCheckStyle
  dependency-version: 2026.8.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-19 01:16:46 +02:00
Laurent Destailleur
16c6898390 Rename script 2026-08-15 14:23:03 +02:00
Laurent Destailleur
a221a7bbad Merge branch '24.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-08-14 20:32:30 +02:00
Laurent Destailleur
dc96d8d720 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 24.0 2026-08-14 20:32:03 +02:00
Frédéric FRANCE
592128018b
Update ci-checkfilesetlock.yml (#39525) 2026-08-14 20:31:46 +02:00
Frédéric FRANCE
e746e56126
FIX: Exclude deleted files from the PHPStan/Phan changed-files CI script
get_changed_php.sh listed every file the GitHub PR-files API reports,
including ones with status "removed" — deleted files no longer exist
on disk, so passing them to phpstan/phan made the CI job fail trying
to analyse a missing path. Any PR deleting PHP files hits this, not
specific to one branch; exposed here since this PR removes 79 files.
2026-08-12 07:10:32 +02:00
Laurent Destailleur
f2baa10140
Revert "/imports/index.php wrongly shows access refused (#39379)" (#39386)
This reverts commit 9d4844009f.
2026-08-04 22:23:57 +02:00
bomuux
9d4844009f
/imports/index.php wrongly shows access refused (#39379)
htdocs/imports/index.php wrongly shows access refused when both modules import an export enabled but user only have rights on one of them.
2026-08-04 16:18:47 +02:00
Laurent Destailleur
da0e7185db Doc 2026-08-01 00:21:12 +02:00
MDW
8b7dab1c2d
Qual: Fix PHPStan for 23.0 + pre-commit backports (#39192) 2026-07-16 11:29:42 +02:00
Laurent Destailleur
5348161945 Revert "Try to restore ci like before"
This reverts commit a4993a5ec4.
2026-07-16 00:44:45 +02:00
Laurent Destailleur
a4993a5ec4 Try to restore ci like before 2026-07-16 00:42:08 +02:00
Laurent Destailleur
349c283a4a Backport ci optimizations 2026-07-15 01:22:24 +02:00
Laurent Destailleur
79242074f5 Backport ci optimizations 2026-07-15 01:20:38 +02:00
MDW
03319e88c9
Qual: Improve some CodingPhpTest notices with line numbers (#39176)
* Qual: Improve a notice with line numbers

* Qual: Fix PHPStan ci when no files are to be analyzed
2026-07-15 00:38:28 +02:00
MDW
9ecec7b248
Qual: Update logToCheckStyle (now extracts PHP Lint error msg) (#39169)
# Qual: Update logToCheckStyle (now extracts PHP Lint error msg)

logToCheckStyle  was updated to extract PHP Lint (php -l) errors.
So they will show in the summary report and as annotations.
2026-07-14 13:50:39 +02:00
Laurent Destailleur
94517cbda6 Remove field never used 2026-07-13 15:44:57 +02:00
Laurent Destailleur
80ace0d0cb Complete template issue 2026-07-13 10:50:17 +02:00
MDW
ee3875eb4e
Qual: Fix french comments and improve detector (#39026)
* Qual: Generate phan specific changed php files list

# Qual: Generate phan specific changed php files list

Uses multiple parts of the Phan configuration to select and exclude files
for phan analysis.

* avoid catching special characters in regexes as indicators of french

* Qual: Translate french to english
2026-07-01 12:26:51 +02:00
MDW
7cb6f8253c
Ignore changed files as phan does to avoid PR notices (#39023)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-06-30 16:51:19 +02:00
dependabot[bot]
841c859227
Bump actions/cache from 5 to 6 (#39008)
Bumps [actions/cache](https://github.com/actions/cache) from 5 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-29 19:27:30 +02:00
Frédéric FRANCE
488637132f
Update LanguageOfCommentsSniff.php (#38731)
* Update LanguageOfCommentsSniff.php

* Update actions_builddoc.inc.php

* fix

* Update LanguageOfCommentsSniff.php

* Update LanguageOfCommentsSniff.php

* exclude copyright lines

* translate comments

* translate comments

* translate comments

* fix CI

* fix CI
2026-06-28 03:50:31 +02:00
Laurent Destailleur
2319324297 ci 2026-06-27 17:46:26 +02:00
Laurent Destailleur
f6e30de95e Fix phpstan 2026-06-27 17:41:22 +02:00
Laurent Destailleur
c826dee769 Log ci 2026-06-27 17:17:58 +02:00
Frédéric FRANCE
8b00cb2a61
fix CI (#38858)
* fix CI

* Update get_changed_php.sh

* Update blockedlog.class.php

* Update blockedlog.class.php
2026-06-25 21:27:35 +02:00
Laurent Destailleur
65c54a02b8 Doc 2026-06-25 03:35:23 +02:00
Laurent Destailleur
88ab55ee34 Doc 2026-06-25 03:25:11 +02:00
Laurent Destailleur
f15e53dbae Clean ci scripts 2026-06-25 02:52:04 +02:00
dependabot[bot]
4ca83e992f
Bump actions/checkout from 6 to 7 (#38954)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-22 13:16:31 +02:00
MDW
c72056ae34
Qual: Correct language detection in moderation workflow (#38681)
# Qual: Correct language detection in moderation workflow

Fix "TypeError: franc is not a function"
- Converting language detection to an async function
- Adding Scottish language detection (locally, an English sentence was detected as Scottish)

Co-authored-by: Alexandre SPANGARO <alexandre.spangaro@gmail.com>
2026-06-11 09:34:27 +02:00
MDW
29b60cd552
Fix: Update comment moderation logic (#38451)
# Fix: Update comment moderation logic

Inspired by #38450 to help fix/complete the moderation script,
this updates the moderation script to:

- Add language detection for non-English comments
- Implement profanity filtering
- Check for off-topic content
- Improve forbidden link detection
- Add owner exemption logic
- Enhance error handling and logging
- Add a message indicating why the comment was deleted.

*To configure the moderation lists:*

- Go to repository Settings > Secrets > Actions
- Add `MODERATION_PROFANITY` secret containing a JSON array of terms
- Add `MODERATION_OFFTOPIC` secret containing a JSON array of phrases
- Example format for each: `["term1","term2","term3"]`

Resources for priming the PROFANITY and OFFTOPIC lists:
- https://www.cs.cmu.edu/~biglou/resources/ (first link)
- https://github.com/OOPSpam/spam-words/blob/main/spam-words-EN.txt

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-06-10 21:15:32 +02:00
hansemschnokeloch
a4ebce9e59
fix moderation workflow (#38487) 2026-06-10 19:21:46 +02:00
Laurent Destailleur
de50b86d1a Enhance CI 2026-06-09 12:02:16 +02:00
Laurent Destailleur
b068db3ed4 CI 2026-06-05 00:03:22 +02:00
Laurent Destailleur
a72a397f39 CI 2026-06-05 00:00:41 +02:00
Laurent Destailleur
cb8a4f8ed4 CI 2026-06-04 23:48:47 +02:00
Laurent Destailleur
da5af6dc16 Enhance CI 2026-06-04 22:52:03 +02:00
dependabot[bot]
78d1189ba7
Bump actions/github-script from 7 to 9 (#38319)
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 9.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v9)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-21 22:01:06 +02:00
MDW
18b7fa0fd4
FIX: Add Ghostscript installation and caching for Windows CI (#38325)
* Exclude doctemplates as DB dependencies

* FIX: Add Ghostscript installation and caching for Windows CI

# FIX: Add Ghostscript installation and caching for Windows CI

Ghostscript is necessary for one of the tests that converts an image into a PDF.
This commit adds the necessary steps to install Ghostscript and cache it for the Windows CI workflow.
2026-05-18 19:44:48 +02:00
Laurent Destailleur
df26fb849a Add github action script 2026-05-11 21:14:39 +02:00
Laurent Destailleur
e2b7286998 Doc 2026-05-11 20:54:03 +02:00
MDW
349a657ce1
Qual: Upgrade php version to run phan, add ast (#38143)
* Qual: Upgrade php version to run phan, add ast

* Qual: Fix PhanPluginUnknownClosureReturnType

* Fix: Correct shebang

* Qual: Ignore deprecated xml_set_object notice
2026-05-10 03:22:08 +02:00
hansemschnokeloch
535e24e28f
Update Transifex link in CONTRIBUTING.md (#38109) 2026-05-06 22:32:21 +02:00
Laurent Destailleur
b15add41f8 Clean CI file not used 2026-04-20 18:50:14 +02:00
MDW
7070d22cac
Qual: Set cs2pr version to downloadable release (#37929) 2026-04-18 23:29:40 +02:00
Laurent Destailleur
7913ae6c1c Try to clean github actions 2026-04-13 16:39:06 +02:00
Laurent Destailleur
c3aaaf3cfb Fix ci file 2026-04-13 16:32:49 +02:00