forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,848 changed files
with
122,620 additions
and
93,668 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
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,67 @@ | ||
# When Crowdin creates a pull request from the crowdin-service-branch branch, | ||
# run `yarn i18n:extract` and commit the changed grafana.json files back into the PR | ||
# to reformat crowdin's changes to prevent conflicts with our CI checks. | ||
|
||
name: Fix Crowdin I18n files | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'public/locales/*/grafana.json' | ||
branches: | ||
- main # Only run on pull requests *target* main (will be merged into main) | ||
|
||
jobs: | ||
fix-files: | ||
# Only run on pull requests *from* the crowdin-service-branch branch | ||
if: github.head_ref == 'crowdin-service-branch' | ||
|
||
name: Fix files | ||
runs-on: ubuntu-latest | ||
|
||
|
||
permissions: | ||
contents: write # needed to commit changes back into the PR | ||
pull-requests: write # needed to update PR description | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.9.0 | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Extract I18n files | ||
run: yarn i18n:extract | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 | ||
with: | ||
commit_message: "Github Action: Auto-fix i18n files" | ||
file_pattern: public/locales/*/grafana.json | ||
|
||
- name: Update PR description | ||
uses: devindford/Append_PR_Comment@32dd2619cd96ac8da9907c416c992fe265233ca8 # v1.1.3 | ||
if: ${{ ! contains(github.event.pull_request.body, 'Steps for merging') }} | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
body-update-action: prefix | ||
body-template: | | ||
:robot: Automatic sync of translations from Crowdin. | ||
Steps for merging: | ||
1. Wait for the "Github Action: Auto-fix i18n files" commit that may be required for CI to pass. | ||
2. A quick sanity check of the changes and approve. Things to look out for: | ||
- No changes to the English strings. The source of truth is already in the main branch, NOT Crowdin. | ||
- Translations maybe be removed if the English phrase was removed, but there should not be many of these | ||
- Anything else that looks 'funky'. Ask if you're not sure. | ||
3. Approve & (Auto-)merge. :tada: | ||
If there's a conflict, close the pull request and **delete the branch**. Crowdin will recreate the pull request eventually. | ||
Remember, the longer this pull request is open, the more likely it is that it'll get conflicts. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,26 +2,18 @@ name: Update `make docs` procedure | |
on: | ||
schedule: | ||
- cron: '0 7 * * 1-5' | ||
workflow_dispatch: | ||
jobs: | ||
main: | ||
if: github.repository == 'grafana/grafana' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Update procedure | ||
run: | | ||
curl -s -Lo docs/docs.mk https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/docs.mk | ||
curl -s -Lo docs/make-docs https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/make-docs | ||
if git diff --exit-code; then exit 0; fi | ||
BRANCH="$(date +%Y-%m-%d)/update-make-docs" | ||
git checkout -b "${BRANCH}" | ||
git add . | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "grafanabot" | ||
git commit -m "Update \`make docs\` procedure" | ||
git push -v origin "refs/heads/${BRANCH}" | ||
gh pr create --fill --label no-changelog --label --no-backport --label type/docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
- uses: grafana/writers-toolkit/update-make-docs@update-make-docs/v1 | ||
with: | ||
pr_options: > | ||
--label 'backport v10.0.x' | ||
--label 'backport v10.1.x' | ||
--label 'backport v10.2.x' | ||
--label no-changelog | ||
--label type/docs |
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
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.