Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Files in `sync/files/` are pushed through a pull request to every non archived r
Files in `sync/files-public/` are pushed the same way to public repositories only, and removed from private ones.
After each successful run of the automatic tag workflow, the synced `open-xml-update-pr.yml` workflow opens a pull request copying the `<version>` block of the matching tag's plugin XML (`plugin.xml` or `<plugin_key>.xml`) to the default branch, with the `GLPI_PROJECT_BOT` GitHub App, which needs the pull requests write permission; the pull request is assigned to the author of the merged pull request that bumped the version.
Issues labelled `need feedback` are closed by the stale workflow after 44 days without activity; the synced `need-feedback.yml` workflow removes the label when the issue author comments.
Pull requests modifying translation files (`locales/*.po` or `locales/*.mo`) are closed by the synced `locales-guard.yml` workflow when the repository has a `.tx/config` file, since Transifex overwrites them; the `i18n-updates*` branches of the translation sync are allowed.
Repository settings in `sync/settings.json` (any field of the [update a repository](https://docs.github.com/rest/repos/repos#update-a-repository) API) are applied directly to the same repositories, along with release immutability, Dependabot alerts and security updates, and private vulnerability reporting, secret scanning and push protection (public repositories only).
The protection of the default branch and of `X.Y/bugfixes` branches is aligned on `sync/branch-protection.json` (body of the [update branch protection](https://docs.github.com/rest/branches/branch-protection#update-branch-protection) API).
Labels in `sync/labels.json` (`name`, `color` and `description`) are created, or updated when their color or description differs; other labels of the repositories are kept.
Expand Down
17 changes: 17 additions & 0 deletions sync/files/.github/workflows/locales-guard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Locales guard"

on:
pull_request_target:
types:
- "opened"
- "reopened"
- "synchronize"

jobs:
transifex-locales-guard:
name: "Locales guard"
if: github.repository == 'pluginsGLPI/{PLUGIN}'
permissions:
contents: "read"
pull-requests: "write"
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-locales-guard.yml@v1"