Skip to content

Commit 5756438

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent ac1d32c commit 5756438

15 files changed

+91
-62
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
github: WeblateOrg
77
open_collective: weblate
88
liberapay: Weblate
9-
polar: WeblateOrg
109
custom: https://weblate.org/donate/

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,14 @@
1-
## Proposed changes
2-
31
<!--
4-
Describe the big picture of your changes here to communicate to the maintainers
5-
why we should accept this pull request. If it fixes a bug or resolves a feature
6-
request, be sure to link to that issue.
7-
-->
2+
♥ Thank you for submitting a pull request. ♥
83
9-
## Checklist
4+
We will review it in a timely manner, but please follow the CI checks to see
5+
any problems it might discover.
106
11-
<!--
12-
Put an `x` in the boxes that apply. You can also fill these out after creating
13-
the PR. If you're unsure about any of them, don't hesitate to ask. We're here to
14-
help! This is simply a reminder of what we are going to look for before merging
15-
your code.
16-
-->
7+
Want to make a perfect pull request?
178
18-
- [ ] Lint and unit tests pass locally with my changes.
19-
- [ ] I have added tests that prove my fix is effective or that my feature works.
20-
- [ ] I have added documentation to describe my feature.
21-
- [ ] I have squashed my commits into logic units.
22-
- [ ] I have described the changes in the commit messages.
23-
24-
## Other information
25-
26-
<!--
27-
Any other information that is important to this PR such as screenshots of how
28-
the component looks before and after the change.
9+
• Keep the pull request reasonably sized. Creating more pull request is sometimes better.
10+
• Describe what the pull request does and what issues it does address.
11+
• Ensure that lint and unit tests pass.
12+
• Add tests that prove that the fix is effective or that the new feature works.
13+
• Describe any new features or changed behavior in the documentation.
2914
-->

.github/renovate.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":dependencyDashboard",
6+
"helpers:pinGitHubActionDigests"
7+
],
28
"labels": [
39
"dependencies"
410
],
511
"rangeStrategy": "widen",
6-
"dependencyDashboard": true,
712
"automerge": true,
813
"automergeType": "pr",
914
"automergeStrategy": "rebase",
@@ -19,6 +24,11 @@
1924
"^requirements-.*\\.txt$"
2025
]
2126
},
27+
"pep723": {
28+
"fileMatch": [
29+
"^scripts/.*\\.py$"
30+
]
31+
},
2232
"packageRules": [
2333
{
2434
"matchDatasources": [
@@ -132,6 +142,17 @@
132142
"matchStrings": [
133143
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s+version: (?<currentValue>.*)\\s"
134144
]
145+
},
146+
{
147+
"customType": "regex",
148+
"fileMatch": [
149+
"^Dockerfile$"
150+
],
151+
"matchStrings": [
152+
"#\\s*renovate:\\s*?(repo=(?<repo>.*?))?\\s*?(release=(?<release>.*?))?\\s*depName=(?<depName>.*?)?\\sENV .*?_VERSION=\"(?<currentValue>.*)\""
153+
],
154+
"registryUrlTemplate": "{{#if repo }}{{repo}}{{else}}https://deb.debian.org/debian{{/if}}?{{#if release }}release={{release}}{{else}}suite=stable{{/if}}&components=main&binaryArch=amd64",
155+
"datasourceTemplate": "deb"
135156
}
136157
]
137158
}

.github/workflows/closing.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
issues:
1010
types: [closed]
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.issue.id }}
14+
cancel-in-progress: true
15+
1216
permissions:
1317
contents: read
1418

@@ -20,11 +24,15 @@ jobs:
2024
runs-on: ubuntu-24.04
2125
steps:
2226
- name: Add closed question comment
23-
uses: peter-evans/create-or-update-comment@v4
27+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
2428
if: |
2529
github.actor != 'renovate[bot]' &&
2630
github.event.issue.state_reason == 'completed' &&
27-
(contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'wontfix')) || join(github.event.issue.labels.*.name) == ''
31+
(
32+
contains(github.event.issue.labels.*.name, 'question') &&
33+
! contains(github.event.issue.labels.*.name, 'duplicate') &&
34+
! contains(github.event.issue.labels.*.name, 'wontfix')
35+
) || join(github.event.issue.labels.*.name) == ''
2836
with:
2937
token: ${{ secrets.GITHUB_TOKEN }}
3038
issue-number: ${{ github.event.issue.number }}
@@ -34,7 +42,7 @@ jobs:
3442
* In case you see a similar problem, please open a separate issue.
3543
* If you are happy with the outcome, don’t hesitate to support Weblate by making a [donation](https://weblate.org/donate/).
3644
- name: Add closed issue comment
37-
uses: peter-evans/create-or-update-comment@v4
45+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
3846
if: |
3947
github.actor != 'renovate[bot]' &&
4048
github.event.issue.state_reason == 'completed' &&

.github/workflows/docker.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,32 @@ jobs:
2020
packages: write
2121
runs-on: ubuntu-24.04
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424

2525
- name: Set up QEMU
26-
uses: docker/setup-qemu-action@v3
26+
uses: docker/setup-qemu-action@5964de0df58d5ad28b04d8fe2e6b80ad47105b91 # v3.5.0
2727

2828
- name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v3
29+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
3030

3131
- name: Login to Docker Hub
3232
if: github.event_name != 'pull_request'
33-
uses: docker/login-action@v3
33+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
3434
with:
3535
username: ${{ secrets.DOCKERHUB_USERNAME }}
3636
password: ${{ secrets.DOCKERHUB_TOKEN }}
3737

3838
- name: Login to GHCR
3939
if: github.event_name != 'pull_request'
40-
uses: docker/login-action@v3
40+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
4141
with:
4242
registry: ghcr.io
4343
username: ${{ github.repository_owner }}
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545

4646
- name: Docker meta
4747
id: meta
48-
uses: docker/metadata-action@v5
48+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
4949
with:
5050
# list of Docker images to use as base name for tags
5151
images: |
@@ -63,11 +63,13 @@ jobs:
6363
type=sha,format=long
6464
6565
- name: Build and push
66-
uses: docker/build-push-action@v6
66+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
6767
with:
6868
push: ${{ github.event_name != 'pull_request' }}
6969
tags: ${{ steps.meta.outputs.tags }}
7070
labels: ${{ steps.meta.outputs.labels }}
7171
platforms: linux/amd64,linux/arm64
7272
cache-from: type=gha
7373
cache-to: type=gha,mode=max
74+
permissions:
75+
contents: read

.github/workflows/hadolint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
runs-on: ubuntu-24.04
2323

2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- uses: hadolint/[email protected]

.github/workflows/label-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Sync labels
2222
runs-on: ubuntu-24.04
2323
steps:
24-
- uses: actions/checkout@v4
25-
- uses: srealmoreno/label-sync-action@v2
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- uses: srealmoreno/label-sync-action@850ba5cef2b25e56c6c420c4feed0319294682fd # v2.0.0
2626
with:
2727
clean-labels: true

.github/workflows/labels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-24.04
2121
steps:
2222
- name: Add backlog comment
23-
uses: peter-evans/create-or-update-comment@v4
23+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
2424
if: ${{ github.event.label.name == 'backlog' }}
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}
@@ -33,7 +33,7 @@ jobs:
3333
In case you need this feature soon, please consider helping
3434
or push it by [funding the development](https://weblate.org/support/).
3535
- name: Add undecided comment
36-
uses: peter-evans/create-or-update-comment@v4
36+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
3737
if: ${{ github.event.label.name == 'undecided' }}
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
@@ -46,7 +46,7 @@ jobs:
4646
4747
Please try to clarify the use case or consider proposing something more generic to make it useful to more users.
4848
- name: Add question comment
49-
uses: peter-evans/create-or-update-comment@v4
49+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
5050
if: ${{ github.event.label.name == 'question' }}
5151
with:
5252
token: ${{ secrets.GITHUB_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
6363
6464
In case your question is already answered, [making a donation](https://weblate.org/donate/) is the right way to say thank you!
6565
- name: Add translate-toolkit comment
66-
uses: peter-evans/create-or-update-comment@v4
66+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
6767
if: ${{ github.event.label.name == 'translate-toolkit' }}
6868
with:
6969
token: ${{ secrets.GITHUB_TOKEN }}
@@ -72,7 +72,7 @@ jobs:
7272
The issue you've reported needs to be addressed in the [translate-toolkit](https://github.com/translate/translate/).
7373
Please file the issue there, and include links to any relevant specifications about the formats (if applicable).
7474
- name: Add good first issue comment
75-
uses: peter-evans/create-or-update-comment@v4
75+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
7676
if: ${{ github.event.label.name == 'good first issue' }}
7777
with:
7878
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-commit.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ name: Pre-commit check
88
on:
99
push:
1010
branches-ignore:
11-
- deepsource-fix-**
1211
- renovate/**
1312
- weblate
1413
pull_request:
@@ -21,27 +20,27 @@ jobs:
2120
runs-on: ubuntu-24.04
2221

2322
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/cache@v4
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
2625
with:
2726
path: ~/.cache/pre-commit
2827
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
2928
- name: Setup Python
30-
uses: actions/setup-python@v5
29+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
3130
with:
3231
python-version: '3.13'
33-
- uses: astral-sh/setup-uv@v5
32+
- uses: astral-sh/setup-uv@1edb52594c857e2b5b13128931090f0640537287 # v5.3.0
3433
- name: detect method
3534
id: detect
3635
run: |
3736
if test -f requirements-lint.txt ; then
38-
echo "method=requirements" >> $GITHUB_OUTPUT
37+
echo "method=requirements" >> "$GITHUB_OUTPUT"
3938
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
40-
echo "method=pep735" >> $GITHUB_OUTPUT
39+
echo "method=pep735" >> "$GITHUB_OUTPUT"
4140
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
42-
echo "method=pyproject" >> $GITHUB_OUTPUT
41+
echo "method=pyproject" >> "$GITHUB_OUTPUT"
4342
else
44-
echo "method=uvx" >> $GITHUB_OUTPUT
43+
echo "method=uvx" >> "$GITHUB_OUTPUT"
4544
fi
4645
- name: pre-commit (PEP 735)
4746
if: steps.detect.outputs.method == 'pep735'
@@ -60,7 +59,7 @@ jobs:
6059
run: uv pip install --system -r requirements-lint.txt
6160
- name: Install dependencies
6261
if: steps.detect.outputs.method == 'pyproject'
63-
run: uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
62+
run: uv pip install --system "$(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)"
6463
- name: pre-commit (installed)
6564
if: steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
6665
run: pre-commit run --all

.github/workflows/pull_requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Weblate automerge
2323
if: github.actor == 'weblate'
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: Enable Pull Request Automerge
2727
run: gh pr merge --rebase --auto "${{ github.event.pull_request.number }}"
2828
env:

0 commit comments

Comments
 (0)