Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: canonical/data-platform-workflows
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v30.1.3
Choose a base ref
...
head repository: canonical/data-platform-workflows
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v30.2.0
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 4, 2025

  1. compatible: Add approve_renovate_pr.yaml (#289)

    Reduce required approvals on Renovate pull requests by 1
    
    Approved by @delgod
    carlcsaposs-canonical authored Mar 4, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    222c718 View commit details
Showing with 51 additions and 14 deletions.
  1. +22 −0 .github/workflows/approve_renovate_pr.md
  2. +14 −0 .github/workflows/approve_renovate_pr.yaml
  3. +15 −14 README.md
22 changes: 22 additions & 0 deletions .github/workflows/approve_renovate_pr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Workflow file: [approve_renovate_pr.yaml](approve_renovate_pr.yaml)

## Usage
Add `approve_renovate_pr.yaml` file to `.github/workflows/`

```yaml
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
name: Approve Renovate pull request

on:
pull_request:
types:
- opened

jobs:
approve-pr:
name: Approve Renovate pull request
uses: canonical/data-platform-workflows/.github/workflows/approve_renovate_pr.yaml@v0.0.0
permissions:
pull-requests: write # Needed to approve PR
```
14 changes: 14 additions & 0 deletions .github/workflows/approve_renovate_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
workflow_call:

jobs:
approve-pr:
name: Approve Renovate pull request
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.event.pull_request.user.id == 29139614 && github.event.pull_request.user.login == 'renovate[bot]' }}
steps:
- name: Approve pull request
run: gh pr --repo '${{ github.repository }}' review '${{ github.event.pull_request.number }}' --approve
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
## Usage
### Workflows
| Name | Description |
|----------------------------------------------------------------------------|----------------------------------------------------------------------------------|
| [lint.yaml](.github/workflows/lint.md) | Lint GitHub Actions workflows (`.github/workflows/`) and `tox run -e lint` |
| [build_snap.yaml](.github/workflows/build_snap.md) | Build snap |
| [build_rock.yaml](.github/workflows/build_rock.md) | Build rock |
| [build_charm.yaml](.github/workflows/build_charm.md) | Build charm |
| [release_snap.yaml](.github/workflows/release_snap.md) | Release snap to Snap Store |
| [release_rock.yaml](.github/workflows/release_rock.md) | Release rock to GitHub Container Registry |
| [release_charm.yaml](.github/workflows/release_charm.md) | Release charm to Charmhub |
| [_promote_charm.yaml](.github/workflows/_promote_charm.md) | **Experimental** `charmcraft promote`, update git tags, & generate release notes |
| [check_charm_pr.yaml](.github/workflows/check_charm_pr.md) | Check charm pull request has required labels for release notes |
| [sync_docs.yaml](.github/workflows/sync_docs.md) | Sync Discourse documentation to GitHub |
| [_update_bundle.yaml](.github/workflows/_update_bundle.md) | **Experimental** Update charm revisions in bundle |
| [integration_test_charm.yaml](.github/workflows/integration_test_charm.md) | **Deprecated** Integration test charm |
| Name | Description |
|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|
| [lint.yaml](.github/workflows/lint.md) | Lint GitHub Actions workflows (`.github/workflows/`) and `tox run -e lint` |
| [build_snap.yaml](.github/workflows/build_snap.md) | Build snap |
| [build_rock.yaml](.github/workflows/build_rock.md) | Build rock |
| [build_charm.yaml](.github/workflows/build_charm.md) | Build charm |
| [release_snap.yaml](.github/workflows/release_snap.md) | Release snap to Snap Store |
| [release_rock.yaml](.github/workflows/release_rock.md) | Release rock to GitHub Container Registry |
| [release_charm.yaml](.github/workflows/release_charm.md) | Release charm to Charmhub |
| [_promote_charm.yaml](.github/workflows/_promote_charm.md) | **Experimental** `charmcraft promote`, update git tags, & generate release notes |
| [check_charm_pr.yaml](.github/workflows/check_charm_pr.md) | Check charm pull request has required labels for release notes |
| [sync_docs.yaml](.github/workflows/sync_docs.md) | Sync Discourse documentation to GitHub |
| [approve_renovate_pr.yaml](.github/workflows/approve_renovate_pr.md) | Reduce required approvals on [Renovate](https://docs.renovatebot.com/) pull requests by 1 |
| [_update_bundle.yaml](.github/workflows/_update_bundle.md) | **Experimental** Update charm revisions in bundle |
| [integration_test_charm.yaml](.github/workflows/integration_test_charm.md) | **Deprecated** Integration test charm |

### Version
Recommendation: pin the latest version (e.g. `v1.0.0`) and use [Renovate](https://docs.renovatebot.com/) to stay up-to-date.