Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1d93e92
fix(auto-approve): add checkout step to fix 'not a git repository' error
polasudo Nov 13, 2025
70f3673
test: temporarily enable workflow for polasudo to test functionality
polasudo Nov 13, 2025
01c7274
test: add fix/auto-approve-bot to eligible patterns for testing
polasudo Nov 13, 2025
0e64ff1
fix(auto-approve): add issues:write permission for label management
polasudo Nov 13, 2025
0256cbe
fix(auto-approve): use pull_request_target for proper permissions
polasudo Nov 13, 2025
60947f9
Fix auto-approve workflow: use REST API for adding labels instead of …
polasudo Nov 13, 2025
ebb8f8d
test: trigger workflow re-run
polasudo Nov 13, 2025
5677567
test: remove trigger file
polasudo Nov 13, 2025
d0bb13b
test: temporarily disable user condition to test workflow
polasudo Nov 13, 2025
16674c7
fix(auto-approve): use pull_request_target and add issues:write permi…
polasudo Nov 13, 2025
270a44e
fix(auto-approve): add fix/auto-approve-bot pattern for testing
polasudo Nov 13, 2025
e93f545
feat(auto-approve): add push trigger for faster testing feedback
polasudo Nov 13, 2025
0fcff2e
test: trigger workflow rerun
polasudo Nov 13, 2025
6d46628
test: simplify push logging to debug workflow triggering
polasudo Nov 13, 2025
07abe2f
test: add temporary PR labeling simulation for fork testing
polasudo Nov 13, 2025
c11b854
test: enable real PR labeling on push events for testing
polasudo Nov 13, 2025
5bd21f5
test: target PR #1 in fork for labeling test
polasudo Nov 13, 2025
8c484b7
test: target PR #2 for labeling demonstration
polasudo Nov 13, 2025
c503bab
feat: clean up auto-approve workflow for production use
polasudo Nov 13, 2025
94c81e6
test: temporarily allow polasudo for final workflow testing
polasudo Nov 13, 2025
44715fd
feat: finalize auto-approve workflow for production
polasudo Nov 13, 2025
ce1f10f
chore(catalog migration): move all the packages to the overlays repo …
nickboldt Nov 13, 2025
4d725bd
Merge branch 'main' into fix/auto-approve-bot
polasudo Nov 13, 2025
73e4974
test: trigger workflow to demonstrate PR #2 labeling
polasudo Nov 14, 2025
d91d40b
Delete test-workflow-final.md
polasudo Nov 14, 2025
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
12 changes: 7 additions & 5 deletions .github/workflows/auto-approve-bot-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ name: Auto-Approve Bot PRs
# - Adds lgtm and approved labels if not present

on:
pull_request:
pull_request_target:
types: [opened, reopened, labeled, ready_for_review]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
auto-approve:
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
# Define branch patterns that are eligible for auto-approval
# Add more patterns as needed
ELIGIBLE_PATTERNS=(
"^chore/automated-.*" # Automated chore tasks, such as version bumps, base image bumps, or RPM lock file version bumps
"^chore/automated-.*"
)

ELIGIBLE=false
Expand All @@ -76,16 +77,17 @@ jobs:
if: steps.check-eligibility.outputs.eligible == 'true'
run: |
# Add the required labels if not already present
gh pr edit ${{ github.event.pull_request.number }} --add-label "lgtm,approved"
gh pr edit ${{ github.event.pull_request.number }} --add-label "lgtm,approved" --repo ${{ github.repository }}

# Auto-approve the PR
gh pr review ${{ github.event.pull_request.number }} \
--approve \
--body "**Auto-Approved**

This PR has been automatically approved (rhdh-bot branch).
This PR has been automatically approved by the auto-approve workflow.

**Labels Added:** \`lgtm\`, \`approved\`
**Labels Added:** \`lgtm\`, \`approved\`" \
--repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

46 changes: 0 additions & 46 deletions catalog-entities/marketplace/packages/apic-backstage-plugin.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading