Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26115 from frappe/version-15-hotfix
chore: release v15
- Loading branch information
Showing
105 changed files
with
42,665 additions
and
763 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
set -e | ||
cd ~ || exit | ||
|
||
echo "Setting Up Bench..." | ||
|
||
pip install frappe-bench | ||
bench -v init frappe-bench --skip-assets --skip-redis-config-generation --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}" | ||
cd ./frappe-bench || exit | ||
|
||
echo "Generating POT file..." | ||
bench generate-pot-file --app frappe | ||
|
||
cd ./apps/frappe || exit | ||
|
||
echo "Configuring git user..." | ||
git config user.email "developers@erpnext.com" | ||
git config user.name "frappe-pr-bot" | ||
|
||
echo "Setting the correct git remote..." | ||
# Here, the git remote is a local file path by default. Let's change it to the upstream repo. | ||
git remote set-url upstream https://github.com/frappe/frappe.git | ||
|
||
echo "Creating a new branch..." | ||
isodate=$(date -u +"%Y-%m-%d") | ||
branch_name="pot_${BASE_BRANCH}_${isodate}" | ||
git checkout -b "${branch_name}" | ||
|
||
echo "Commiting changes..." | ||
git add . | ||
git commit -m "chore: update POT file" | ||
|
||
gh auth setup-git | ||
git push -u upstream "${branch_name}" | ||
|
||
echo "Creating a PR..." | ||
gh pr create --fill --base "${BASE_BRANCH}" --head "${branch_name}" -R frappe/frappe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This workflow is agnostic to branches. Only maintain on develop branch. | ||
# To add/remove branches just modify the matrix. | ||
|
||
name: Regenerate POT file (translatable strings) | ||
on: | ||
schedule: | ||
# 9:30 UTC => 3 PM IST Sunday | ||
- cron: "30 9 * * 0" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
regeneratee-pot-file: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: ["version-15-hotfix"] | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Run script to update POT file | ||
run: | | ||
bash ${GITHUB_WORKSPACE}/.github/helper/update_pot_file.sh | ||
env: | ||
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
BASE_BRANCH: ${{ matrix.branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
hooks.py,frappe.gettext.extractors.navbar.extract | ||
**/doctype/*/*.json,frappe.gettext.extractors.doctype.extract | ||
**/workspace/*/*.json,frappe.gettext.extractors.workspace.extract | ||
**/onboarding_step/*/*.json,frappe.gettext.extractors.onboarding_step.extract | ||
**/module_onboarding/*/*.json,frappe.gettext.extractors.module_onboarding.extract | ||
**/report/*/*.json,frappe.gettext.extractors.report.extract | ||
**.py,frappe.gettext.extractors.python.extract | ||
**.js,frappe.gettext.extractors.javascript.extract | ||
**.html,frappe.gettext.extractors.html_template.extract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
files: | ||
- source: /frappe/locale/main.pot | ||
translation: /frappe/locale/%two_letters_code%.po | ||
pull_request_title: "fix: sync translations from crowdin" | ||
pull_request_labels: | ||
- translation | ||
commit_message: "fix: %language% translations" | ||
append_commit_message: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.