Feature/issue 1094 weblate block - #1161
Conversation
affba80 to
447931f
Compare
|
Hi everyone, this is ready for review. To resolve #1094, I've added a new GitHub Actions workflow ( Implementation details:
Testing & Evidence: |
|
It looks ok, but the only files that need to be checked for changes that affect translation are in |
| jobs: | ||
| check-weblate: | ||
| name: Evaluate Weblate PR Status | ||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
Use the ARM version. It's probably more energy efficient. Checkout the main repo.
| REPO: ${{ github.repository }} | ||
| run: | | ||
| # The exact username of the Weblate bot (e.g., 'weblate', 'app/weblate') | ||
| # You may need to check a previous Weblate PR to confirm the exact author name. |
|
|
||
| echo "Checking $REPO for open PRs from $WEBLATE_AUTHOR..." | ||
|
|
||
| # Query GitHub API for open PRs from the bot, output as JSON, and count the array length |
Short description of changes
Adds a new GitHub Actions workflow (
check-weblate-prs.yml) that triggers on pull requests modifying English documentation. It uses the GitHub CLI to query if there are any open PRs authored by the Weblate bot. If an active Weblate PR is found, the workflow intentionally fails the status check to block the merge and prevent po4a translation conflicts.Context: Fixes an issue? Related issues
Fixes #1094
Status of this Pull Request
Working implementation (Draft / Testing pipeline execution).
What is missing until this pull request can be merged?
Because I am a first-time contributor, a maintainer will likely need to click "Approve and run" on the Actions tab so the CI pipeline can execute. I want to verify that the Bash script correctly identifies the exact Weblate bot author name used in this repository before marking this as ready for review.
Does this need translation?
NO.
Checklist