GRM-114: fix: add approval step to auto-merge workflow using REVIEW_GITEA_TOKEN
Post-merge / detect-type (push) Successful in 1m6s
Post-merge / release (push) Successful in 1m13s
Post-merge / validate-commit-msg (push) Successful in 1m17s
Post-merge / vikunja (push) Successful in 1m18s
Post-merge / badges (push) Successful in 1m25s
Post-merge / configure-repo (push) Successful in 1m14s
Post-merge / sync-wiki (push) Successful in 1m56s
Post-merge / publish (push) Successful in 1m4s

This commit was merged in pull request #181.
This commit is contained in:
2026-06-28 14:54:53 +00:00
parent 0b3a76c550
commit cae66e0743
3 changed files with 35 additions and 20 deletions
+15
View File
@@ -250,6 +250,21 @@ jobs:
CI_GITEA_TOKEN: ${{ secrets.CI_GITEA_TOKEN }} CI_GITEA_TOKEN: ${{ secrets.CI_GITEA_TOKEN }}
CI_GITEA_USERNAME: ${{ vars.CI_GITEA_USERNAME }} CI_GITEA_USERNAME: ${{ vars.CI_GITEA_USERNAME }}
run: make setup-image EXTRAS=ci run: make setup-image EXTRAS=ci
- name: Post approval review
env:
CI_GITEA_TOKEN: ${{ secrets.REVIEW_GITEA_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
REPOSITORY: ${{ github.repository }}
PYTHONPATH: src
run: |
. .venv/bin/activate
python3 -m devx.ci.pr_review \
"$PR_NUMBER" \
"$REPOSITORY" \
--event APPROVE \
--checklist-confirmed \
--checklist-categories 1,2,3,4,5,6,7,8,9,10,11,12,13 \
--body "Auto-approved: all CI checks passed (quality, molecule, pr-review)."
- name: Squash merge with task ID - name: Squash merge with task ID
env: env:
CI_GITEA_TOKEN: ${{ secrets.CI_GITEA_TOKEN }} CI_GITEA_TOKEN: ${{ secrets.CI_GITEA_TOKEN }}
+3 -3
View File
@@ -1,7 +1,7 @@
collections: collections:
- name: community.general - name: community.general
version: ">=13.1.0" version: "==13.1.0"
- name: ansible.posix - name: ansible.posix
version: ">=2.2.0" version: "==2.2.0"
- name: community.docker - name: community.docker
version: ">=5.2.1" version: "==5.2.1"
+17 -17
View File
@@ -14,9 +14,9 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
] ]
dependencies = [ dependencies = [
"python-dotenv>=1.2.2", "python-dotenv==1.2.2",
"click>=8.4.2", "click==8.4.2",
"ansible>=14.1.0", "ansible==14.1.0",
] ]
[project.scripts] [project.scripts]
@@ -29,32 +29,32 @@ version = {attr = "gitea_runner_manager.__version__"}
# Minimal deps for CI scripts that only need click/dotenv # Minimal deps for CI scripts that only need click/dotenv
# (detect-changes, discover-runners, pr-review, sync-wiki, badges, etc.) # (detect-changes, discover-runners, pr-review, sync-wiki, badges, etc.)
ci = [ ci = [
"pytest>=9.1.1", "pytest==9.1.1",
"pytest-cov>=7.1.0", "pytest-cov==7.1.0",
"build>=1.5.0", "build==1.5.0",
"twine>=6.2.0", "twine==6.2.0",
# Reusable CI/CD and dev tools (auto-merge, pr-review, pre-push checks, etc.) # Reusable CI/CD and dev tools (auto-merge, pr-review, pre-push checks, etc.)
"devx>=0.26.0", "devx==0.26.1",
] ]
# Lint and type-checking tools (quality job) # Lint and type-checking tools (quality job)
lint = [ lint = [
"ruff>=0.15.20", "ruff==0.15.20",
"pyright>=1.1.411", "pyright==1.1.411",
"bandit>=1.9.4", "bandit==1.9.4",
"pip-audit>=2.10.1", "pip-audit==2.10.1",
"pre-commit>=4.6.0", "pre-commit==4.6.0",
"ansible-lint>=26.4.0", "ansible-lint==26.4.0",
] ]
# Molecule testing (molecule-tests job) # Molecule testing (molecule-tests job)
molecule = [ molecule = [
"molecule>=26.4.0", "molecule==26.4.0",
"molecule-docker>=2.1.0", "molecule-docker==2.1.0",
] ]
# Full dev environment (local development, includes everything) # Full dev environment (local development, includes everything)
dev = [ dev = [
"gitea-runner-manager[ci,lint,molecule]", "gitea-runner-manager[ci,lint,molecule]",
# Reusable CI/CD and dev tools (pre-push hooks, create-task, create-pr) # Reusable CI/CD and dev tools (pre-push hooks, create-task, create-pr)
"devx>=0.26.0", "devx==0.26.1",
# Non-Python dev dependency: checkmake (Makefile linter) # Non-Python dev dependency: checkmake (Makefile linter)
# Install via: go install github.com/checkmake/checkmake/cmd/checkmake@latest # Install via: go install github.com/checkmake/checkmake/cmd/checkmake@latest
] ]