Skip to content

Commit 8708696

Browse files
authored
ci: uci/copy-templates (#27)
This PR adds automated GitHub Actions workflows for repository maintenance using the Unified CI system. ## Changes This PR introduces two GitHub Actions workflows: 1. **** - Automatically closes generated PRs on a daily schedule or via manual dispatch 2. **** - Automatically closes stale issues on a daily schedule or via manual dispatch Both workflows use reusable workflows from the `ipdxco/unified-github-workflows` repository, which provides centralized, maintainable CI/CD solutions. ## About ipdxco/unified-github-workflows The `ipdxco/unified-github-workflows` repository is part of Protocol Labs' Unified CI system, designed to streamline and standardize GitHub Actions workflows across multiple repositories. Key benefits include: - **Consistency**: Ensures identical workflow definitions across participating repositories - **Maintainability**: Centralized management means workflow updates are automatically propagated to all repositories - **Efficiency**: Reduces duplication and manual maintenance overhead - **Security**: Applies security best practices consistently across all repositories The Unified CI system allows Protocol Labs to effortlessly oversee GitHub Actions workflows throughout numerous organizations and hundreds of repositories, guaranteeing that code maintains the highest standards and undergoes thorough testing. ## Workflow Details Both workflows: - Run daily at midnight UTC via cron schedule (`0 0 * * *`) - Can be manually triggered via `workflow_dispatch` - Request minimal permissions (`issues: write` and `pull-requests: write`) - Use versioned reusable workflows (`@v1`) from the centralized repository This change improves repository hygiene by automatically managing stale issues and generated PRs, reducing manual maintenance burden for maintainers.
1 parent 2dad7b2 commit 8708696

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/generated-pr.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Close Generated PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
uses: ipdxco/unified-github-workflows/.github/workflows/reusable-generated-pr.yml@v1

.github/workflows/stale.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Close Stale Issues
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
uses: ipdxco/unified-github-workflows/.github/workflows/reusable-stale-issue.yml@v1

0 commit comments

Comments
 (0)