Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/closing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ permissions:
contents: read

jobs:
issueClosed:
issue-closed:
permissions:
contents: read # for actions/checkout
issues: write # for gh issue comment
runs-on: ubuntu-slim
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
runs-on: ubuntu-slim
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Dependency Review
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
8 changes: 4 additions & 4 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ on:
issues:
types: [labeled]

permissions:
contents: read
permissions: {}

jobs:
issueLabeled:
issue-labeled:
if: ${{ ! github.event.issue.pull_request && github.event.label.name == 'good first issue' }}
permissions:
contents: read # for actions/checkout
issues: write # for gh issue comment
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Add good first issue comment
if: ${{ github.event.label.name == 'good first issue' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name: Pre-commit check
on:
push:
branches-ignore:
- copilot/**
- codex/**
- renovate/**
- weblate
- dependabot/**
Expand All @@ -21,7 +23,7 @@ jobs:
runs-on: ubuntu-24.04-arm

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/pre-commit-setup
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,20 @@
# SPDX-License-Identifier: CC0-1.0

# This file is maintained in https://github.com/WeblateOrg/meta/

name: Pull request automation

on: # zizmor: ignore[dangerous-triggers]
pull_request_target:
types: opened

permissions:
contents: read
permissions: {}

jobs:
weblate_automerge:
weblate-automerge:
runs-on: ubuntu-slim
name: Weblate automerge
if: github.actor == 'weblate'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Enable Pull Request Automerge
run: gh pr merge --rebase --auto "$PR_NUMBER"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore repository context for gh pr merge

With the checkout step removed, this job now invokes gh pr merge from an empty Actions workspace and only passes a PR number; the GitHub CLI manual says gh pr merge can select a different repository with --repo, and GH_REPO is the env var for commands that otherwise operate on a local repository. Since this workflow does not set GH_REPO/--repo, Weblate PRs opened by weblate will fail before enabling auto-merge instead of inferring the repo from the checked-out git remote.

Useful? React with 👍 / 👎.

env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
- name: pydistcheck
run: uvx pydistcheck --inspect dist/*
- name: pyroma
run: uvx --with pip pyroma dist/*.tar.gz
run: uvx pyroma dist/*.tar.gz
- name: check-wheel-contents
run: uvx check-wheel-contents dist/*.whl
- name: check-manifest
run: uvx --with pip check-manifest -v
run: uvx check-manifest -v

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
Loading