Skip to content

Commit ebc076f

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent 9c83f88 commit ebc076f

3 files changed

Lines changed: 35 additions & 51 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -75,46 +75,20 @@ body:
7575
label: How do you run Weblate?
7676
options:
7777
- ''
78-
- weblate.org service
7978
- Docker container
79+
- weblate.org service
8080
- PyPI module
8181
- Git checkout
8282
- Other
8383
validations:
8484
required: true
85-
- type: textarea
86-
id: versions
85+
- type: input
86+
id: version
87+
validations:
88+
required: true
8789
attributes:
88-
label: Weblate versions
89-
description: >
90-
Please paste the output of the
91-
[list_versions](https://docs.weblate.org/en/latest/admin/management.html#list-versions)
92-
command here.
93-
94-
Depending on the installation, these can be executed in a different
95-
way. Please consult [the management commands
96-
documentation](https://docs.weblate.org/en/latest/admin/management.html)
97-
for more details.
98-
99-
On pip-installed Weblate:
100-
101-
```
102-
weblate list_versions
103-
```
104-
105-
On Git checkout:
106-
107-
```
108-
./manage.py list_versions
109-
```
110-
111-
Using docker-compose-plugin:
112-
113-
```
114-
docker compose exec --user weblate weblate weblate list_versions
115-
```
116-
117-
This will properly render without any escaping.
90+
label: Weblate version
91+
description: What Weblate version do you use? You can usually figure this out at /about/ URL.
11892
- type: textarea
11993
id: checks
12094
attributes:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright © Michal Čihař <michal@weblate.org>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: pre-commit setup
6+
description: Prepare pre-commit environment
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
12+
with:
13+
path: |
14+
~/.cache/prek
15+
~/.cache/kingfisher
16+
key: ${{ runner.os }}-${{ runner.arch }}-prek-${{ hashFiles('.pre-commit-config.yaml') }}
17+
restore-keys: |
18+
${{ runner.os }}-${{ runner.arch }}-prek-
19+
- name: Setup Python
20+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
21+
with:
22+
python-version: '3.14'
23+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
24+
with:
25+
version: 0.11.11

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,13 @@ permissions:
1818

1919
jobs:
2020
pre-commit:
21-
runs-on: ubuntu-24.04
21+
runs-on: ubuntu-24.04-arm
2222

2323
steps:
24-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525
with:
2626
persist-credentials: false
27-
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
28-
with:
29-
path: |
30-
~/.cache/prek
31-
~/.cache/kingfisher
32-
key: ${{ runner.os }}-prek-${{ hashFiles('.pre-commit-config.yaml') }}
33-
restore-keys: |
34-
${{ runner.os }}-prek-
35-
- name: Setup Python
36-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
37-
with:
38-
python-version: '3.14'
39-
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
40-
with:
41-
version: 0.11.11
42-
enable-cache: false
27+
- uses: ./.github/actions/pre-commit-setup
4328
- name: detect method
4429
id: detect
4530
run: |

0 commit comments

Comments
 (0)