1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-25 06:39:48 +03:00

933 Commits

Author SHA1 Message Date
William Desportes
d59788207f locales-contributors: add --update and pass shellcheck
The script takes options now: --revision, --minimum, --update and
--credits-file. The po files can still be given as arguments, they default to
all of them.

--update merges the generated entries into the Translators section of the
credits file instead of printing them, so the list can be refreshed without
editing by hand. The merge only ever adds: the entries the file already has are
kept as they are and in their order, and a generated entry is skipped when the
file already credits that address or that name, so a second run changes
nothing.

Sections the file does not have are inserted alphabetically, and the names the
po files use for a section the file names otherwise are mapped: Chinese
(Simplified Han script) to Chinese (China), Chinese (Traditional) to Chinese
(Taiwan), Khmer (Central) to Khmer. A name that only differs by a parenthetical
is matched on its base name. Only the Translators section is touched, the
"Documentation translators" list below it has its own source.

This is what makes the file maintainable without hand work, but it keeps the
hand-curated entries safe: the po files start in 2010, so a regeneration cannot
see the translators of the language files of the earlier versions, and Daniel
Hinostroza is one of them.

The tooling accounts are filtered out, and an account registered under a
placeholder name keeps the address alone, which is the Weblate account that
translated Croatian as "test".

Fixes the shellcheck findings so the script passes the shellcheck workflow:
the environment is read under set -u, the paths are quoted, and the usage text
is a single heredoc instead of being duplicated in the option parser.

Co-authored-by: DeepSeek <noreply@deepseek.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-10-23 12:58:42 +02:00
William Desportes
7b7809fa3a Fix locales-contributors never listing a contributor
git shortlog was called without a revision, so it read the commits from
stdin instead of walking the history, and it came back empty whenever
stdin was not a terminal, that is from cron or from a hook. It needs an
explicit revision, HEAD by default.

The grep on its output also kept only the authors with four digit commit
counts, which is at most one person per language, and the entries were
printed bare, without the indentation or the escaping the credits file
expects.

The script now takes the revision, a minimum number of commits and an
optional po file, skips the tooling accounts, and writes the entries
indented and escaped, ready to be curated into the credits.

The po directory is detected instead of hardcoded, so the same script
works on the branch that moved it to resources/po.

Note that no revision can list the translators of the language files that
predate the 2010 po generation, those have to be curated by hand, from the
ChangeLog and the commit messages.

Co-authored-by: DeepSeek <noreply@deepseek.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-10-23 12:54:28 +02:00
Liviu-Mihail Concioiu
ec35d89aec Sort files
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-10-09 09:36:12 +02:00
Liviu-Mihail Concioiu
35d195b871 Update create-release.sh
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-10-09 09:34:46 +02:00
Liviu-Mihail Concioiu
14608a46ec Update create-release.sh
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-08-18 19:30:28 +02:00
William Desportes
e0909b211b create-release.sh: publish version in daily snapshot JSON
The snapshot metadata JSON only carried date+commit, so consumers had no
way to know the target release number (e.g. 5.2.4) -- it lived only inside
the tarball. Emit the full snapshot version (VERSION+date.shorthash, e.g.
5.2.4+20260809.c90e048) so tooling such as Debian uscan can derive a correct,
self-updating package version without hardcoding or unpacking the tarball.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-09 17:47:20 +02:00
Liviu-Mihail Concioiu
dd6f753073 Update create-release.sh
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-07-10 17:12:06 +02:00
William Desportes
2f98fcdcf0 Merge #20370 - Update create-release.sh
Pull-request: #20370
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-07-10 00:57:30 +02:00
William Desportes
b89991087d Add .codecov.yml to release excludes
Codecov docs say only `codecov.yml` and `.codecov.yml` are valid
filenames. Only `codecov.yml` was caught before.

https://docs.codecov.com/docs/codecov-yaml

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-07-10 00:56:48 +02:00
William Desportes
e2819fe195 Exclude .phpstorm.meta.php from release tarballs
This is a PhpStorm helper file that vendor packages ship to provide
IDE autocomplete to library consumers. It's useless in a phpMyAdmin
release tarball (which is a final product, not a library).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-07-10 00:56:48 +02:00
William Desportes
0a9362668c Update the list of release excludes
Catch dev/tooling files that have appeared in vendor dists in recent
years and were not yet flagged: AGENTS.md/CLAUDE.md (case-insensitive),
UPGRADING.md, UPGRADE.md, UPGRADE-*.md, SECURITY.md, .gitlab-ci.yml,
.tool-versions, .phive/, .phpdoc/, vendor/*/guides/, vendor/*/benchmark/,
vendor/*/benchmarks/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-07-10 00:56:47 +02:00
Liviu-Mihail Concioiu
8881b2574d Update create-release.sh
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-07-09 23:42:45 +02:00
Maurício Meneghini Fauth
5f9fb3ca87 Update Yarn dependencies
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-04-28 16:35:05 -03:00
William Desportes
ca0510b0c6 Cleanup the list of vendor files to remove
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-03-05 11:14:49 +01:00
William Desportes
66df368053 Exclude one dev file from the release
Ref: https://github.com/webmozarts/assert/pull/333

Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-03-05 11:10:45 +01:00
William Desportes
9cf2981078 Fix typos in create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-03-05 11:10:37 +01:00
William Desportes
2c33c5d13d Update the list of release excludes
See: https://github.com/code-lts/doctum/blob/main/scripts/phar-generator-script.php

Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-03-05 10:28:38 +01:00
Liviu-Mihail Concioiu
5060169e19 Add support for bacon-qr-code v3 (#19837)
* Add support for bacon-qr-code v3

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix #2

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Quote packages

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

* Fix

Co-authored-by: Maximilian Krög <maxi_kroeg@web.de>

* Fix

Co-authored-by: William Desportes <williamdes@wdes.fr>

* Add quotes to the package version

* Fix again

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>

---------

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
Co-authored-by: Maximilian Krög <maxi_kroeg@web.de>
Co-authored-by: William Desportes <williamdes@wdes.fr>
2025-09-09 20:04:47 -03:00
Maurício Meneghini Fauth
4cea383ece Fix thecodingmachine/safe deprecations using a fork
Forces Composer to use a fork of thecodingmachine/safe to fix its PHP
8.4 deprecations.

https://github.com/MauricioFauth/thecodingmachine-safe/compare/v1.3.3...v1-php8.4

- Fixes https://github.com/phpmyadmin/phpmyadmin/issues/19404

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-04-24 18:42:46 -03:00
William Desportes
1634264816 Improving the signing message and compression signing in create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-12-17 23:16:30 +01:00
William Desportes
81cf7f260c Add --kits and --no-sign options to create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-12-17 22:32:29 +01:00
William Desportes
198bcdede0 Move version check before branch like the param order should be, on create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-12-17 22:14:51 +01:00
William Desportes
f23d46e378 Add --revision-info and document --daily on create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-12-17 22:14:50 +01:00
William Desportes
0e7c4d6431 Add --compressions option to create-release.sh and update example
Signed-off-by: William Desportes <williamdes@wdes.fr>
2024-12-17 22:14:44 +01:00
Maurício Meneghini Fauth
e9f6993553 Remove phpseclib cleanup from create-release script
It was removed in 5.2.0.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-09-23 19:49:04 -03:00
Maurício Meneghini Fauth
ec54e14c1c Update create-release.sh with files to be excluded
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-09-20 22:28:19 -03:00
Maurício Meneghini Fauth
44ab18a38a Fix scripts/check-release-excludes.sh
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-13 12:26:15 -03:00
Maurício Meneghini Fauth
033c26e115 Remove Jenkins build.xml
Jenkins builds are not working for a long time.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-10-16 23:49:04 -03:00
William Desportes
d30f76646c Fix the RELEASE-DATE- file for snapshots
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-08-08 13:02:54 +02:00
William Desportes
34922bace5 Update create-release.sh
Ref: https://github.com/DASPRiD/Enum/pull/14

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-05-29 11:37:58 +02:00
William Desportes
45c4152c4a Output the version of sphinx-build in create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:48:27 +01:00
William Desportes
3ca687a35c Fix folder management and building kits in create-release.sh
Fixes 67e18b7354 where it was a bit wrong

+ typo fix

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:46:08 +01:00
William Desportes
67e18b7354 Fix copy action in create-release.sh
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:17:54 +01:00
William Desportes
c914900c05 Fix the snapshot version generation
And fix my mistakes

For the same reasons as f503b10dc3

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 13:00:17 +01:00
William Desportes
f503b10dc3 Fix #18109 - release script for CI versions
Fixes: #18109

The issue was that roave/security-advisories did block any versions before 5.2.1. So I extended 5.2+ci to 5.2.1+ci

Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-02-19 12:48:32 +01:00
William Desportes
13bdc6026c Add new files to check release excludes
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-01-17 16:59:34 +04:00
William Desportes
e5205692bb Remove rector-migrate-0.7.php from "vendor/thecodingmachine/safe"
Signed-off-by: William Desportes <williamdes@wdes.fr>
2023-01-17 16:24:37 +04:00
Maurício Meneghini Fauth
f143d2a709 Add support for Web Authentication API
Adds a two factor authentication plugin that supports FIDO2/WebAuthn
security keys.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-01-16 18:20:05 -03:00
William Desportes
a08f2567b5 Add --no-interaction and --dev on create_phpunit_sandbox function to create a release
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-12-07 13:07:22 +01:00
William Desportes
12b76bb46f Fix #17842 - Use jquery.validate.min.js (24 KB) instead of jquery.validate.js (50 KB)
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-10-29 14:59:05 +02:00
William Desportes
64e273f305 Fix sync script not using the right openlayers version
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-10-28 00:31:21 +02:00
William Desportes
29c54c250e Use jquery-migrate.min.js (14kB) instead of jquery-migrate.min.js (31kB)
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-10-26 17:28:09 +02:00
William Desportes
3d6a198598 Fix CI version to have a valid composer.json
```
Failed to update composer.json with a valid format, reverting to the original content. Please report an issue to us with details (command you run and a copy of your composer.json).
  version : Does not match the regex pattern ^v?\d+(\.\d+){0,3}|^dev-
```

Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-29 13:59:06 +02:00
William Desportes
2fff5f48bc Add a security to check if all files present in the autoload class map can be found and re-generate the class map
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-29 13:47:25 +02:00
William Desportes
01724139b2 Add the version to composer.json at release build time
Ref: https://github.com/Roave/SecurityAdvisories/issues/76
Fixes: https://github.com/phpmyadmin/phpmyadmin/issues/17661

Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-29 13:18:20 +02:00
William Desportes
4e08ffdc77 Add a comment when building a kit starts on the release script
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-28 19:58:58 +02:00
William Desportes
9477d1d748 Fixup removing 'po' folder in the english kit
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-28 19:58:42 +02:00
William Desportes
eac7356f4c Remove rm "-f" argument as it hides errors on the release script
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-28 19:58:35 +02:00
William Desportes
a267ba3dde Add comments to the release script
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-28 19:58:26 +02:00
William Desportes
94f0d931cd Remove rm for '.jshintrc' removed afterwards for all non dev kits
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-09-10 14:18:52 +02:00