Skip to content

T7413: added pr mirror workflows #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
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
35 changes: 35 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- All PR should follow this template to allow a clean and transparent review -->
<!-- Text placed between these delimiters is considered a comment and is not rendered -->

## Change summary
<!--- Provide a general summary of your changes in the Title above -->

## Types of changes
<!---
What types of changes does your code introduce? Put an 'x' in all the boxes that apply.
NOTE: Markdown requires no leading or trailing whitespace inside the [ ] for checking
the box, please use [x]
-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes)
- [ ] Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
- [ ] Other (please describe):

## Related Task(s)
<!-- optional: Link to related other tasks on Phabricator. -->
<!-- * https://vyos.dev/Txxxx -->

## Related PR(s)
<!-- Link here any PRs in other repositories that are required by this PR -->

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
<!--- The entire development process is outlined here: https://docs.vyos.io/en/latest/contributing/development.html -->
- [ ] I have read the [**CONTRIBUTING**](https://github.com/vyos/vyos-1x/blob/current/CONTRIBUTING.md) document
- [ ] I have linked this PR to one or more Phabricator Task(s)
- [ ] My commit headlines contain a valid Task id
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
16 changes: 16 additions & 0 deletions .github/workflows/cleanup-mirror-pr-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Cleanup pr mirror branch

on:
pull_request:
types: [closed]
branches:
- current

permissions:
contents: write

jobs:
call-delete-branch:
if: github.repository_owner != 'vyos'
uses: vyos/.github/.github/workflows/cleanup-mirror-pr-branch.yml@current
secrets: inherit
21 changes: 21 additions & 0 deletions .github/workflows/mirror-pr-and-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create Mirror PR and Repo Sync
on:
workflow_dispatch:
inputs:
sync_branch:
description: 'branch to sync'
required: true
type: string

permissions:
pull-requests: write
contents: write

jobs:
call-mirror-pr-and-sync:
if: github.repository_owner != 'vyos'
uses: VyOS-Networks/vyos-reusable-workflows/.github/workflows/mirror-pr-and-sync.yml@main
with:
sync_branch: ${{ inputs.sync_branch }}
secrets:
PAT: ${{ secrets.PAT }}
13 changes: 13 additions & 0 deletions .github/workflows/trigger-pr-mirror-repo-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Trigger Mirror PR and Repo Sync
on:
pull_request_target:
types:
- closed
branches:
- current

jobs:
call-trigger-mirror-pr-repo-sync:
if: github.repository_owner == 'vyos' && github.event.pull_request.merged == true
uses: vyos/.github/.github/workflows/trigger-pr-mirror-repo-sync.yml@current
secrets: inherit