diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 389a4c3..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Close stale issues and PRs - -on: - workflow_call: - -jobs: - stale: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 - with: - days-before-issue-stale: 30 # Marks issues as stale after 30 days of inactivity - days-before-issue-close: 7 # Closes stale issues after an additional 7 days - stale-issue-label: "stale" - stale-issue-message: "This issue has been automatically marked as stale due to inactivity." - days-before-pr-stale: 60 # Marks PRs as stale after 60 days of inactivity - days-before-pr-close: 14 # Closes stale PRs after an additional 14 days - stale-pr-label: "stale" - stale-pr-message: "This pull request has been automatically marked as stale due to inactivity." diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 062c2b4..6421b42 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -6,6 +6,5 @@ "propose-safe-multisig-tx": "1.1.2", "publish-npm": "1.7.1", "release-please": "2.2.1", - "rust-build": "3.0.0", - "stale": "1.0.1" + "rust-build": "3.0.0" } diff --git a/README.md b/README.md index dc403d5..1738b2f 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,6 @@ Builds, tests and analyses a Gradle-based Java project. Runs the unit tests and Provides a standardized workflow for building, testing, and publishing Rust packages with intelligent caching and comprehensive artifact management. Optimized for Rust projects of all sizes. -### ๐Ÿงน [Stale Issues and PRs](./stale) - -Automatically identifies and closes stale issues and pull requests to maintain a clean and focused repository. Helps your team concentrate on active work items and reduces maintenance overhead. - ### ๐Ÿ›ก๏ธ [Safe Multisig Transaction Proposer](./propose-safe-multisig-tx) Automates the process of proposing transactions to a Safe multi-signature wallet (Gnosis Safe). Features smart chain detection, comprehensive validation, and secure transaction handling for blockchain operations. diff --git a/release-please-config.json b/release-please-config.json index ae92cb1..9b912d5 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -40,10 +40,6 @@ "rust-build": { "component": "rust-build", "extra-label": "rust-build" - }, - "stale": { - "component": "stale", - "extra-label": "stale" } } } diff --git a/stale/CHANGELOG.md b/stale/CHANGELOG.md deleted file mode 100644 index b06fb4e..0000000 --- a/stale/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Changelog - -## [1.0.1](https://github.com/iExecBlockchainComputing/github-actions-workflows/compare/stale-v1.0.0...stale-v1.0.1) (2026-09-04) - - -### Bug Fixes - -* pin third-party GitHub Actions to commit SHA ([#136](https://github.com/iExecBlockchainComputing/github-actions-workflows/issues/136)) ([a69a256](https://github.com/iExecBlockchainComputing/github-actions-workflows/commit/a69a25679b7d47df1256596f1fc9df0fdc38a8a8)) - -## 1.0.0 (2025-03-14) - - -### Features - -* **stale:** add stale ([#15](https://github.com/iExecBlockchainComputing/github-actions-workflows/issues/15)) ([3891c0f](https://github.com/iExecBlockchainComputing/github-actions-workflows/commit/3891c0f02e51699d9992cb277d2d62185bd48dfb)) diff --git a/stale/README.md b/stale/README.md deleted file mode 100644 index cfc3322..0000000 --- a/stale/README.md +++ /dev/null @@ -1,96 +0,0 @@ -# ๐Ÿงน Stale Issues and PRs Workflow - -## ๐Ÿ” Overview -This reusable GitHub Actions workflow automatically identifies and closes stale issues and pull requests. It helps maintain a clean, focused repository by addressing inactive contributions that might otherwise be forgotten. By automating this maintenance task, your team can concentrate on active development while ensuring nothing falls through the cracks. - -## โœจ Features -- ๐Ÿท๏ธ Automatically marks issues as stale after a configurable period of inactivity -- ๐Ÿ“ Automatically marks pull requests as stale after a configurable period of inactivity -- ๐Ÿ”„ Closes stale issues and PRs if no activity occurs after being marked as stale -- ๐Ÿ”– Adds a "stale" label to identified items for easy filtering and visibility -- ๐Ÿ’ฌ Adds customizable messages to stale items to guide contributors -- โฑ๏ธ Different timeframes for issues vs. pull requests to match workflow needs -- ๐Ÿ” Exempt specific issues/PRs with labels like "no-stale" or "pinned" - -## โš™๏ธ Default Configuration -The workflow uses the following carefully tuned default settings: - -| Setting | Issues | Pull Requests | -|---------|--------|---------------| -| Days before marking as stale | 30 | 60 | -| Days before closing after being marked stale | 7 | 14 | -| Label applied | "stale" | "stale" | -| Message | "This issue has been automatically marked as stale due to inactivity." | "This pull request has been automatically marked as stale due to inactivity." | - -## ๐Ÿ›ก๏ธ Permissions -The workflow requires the following permissions: -- `issues: write` - To label and close stale issues -- `pull-requests: write` - To label and close stale pull requests - -## ๐Ÿ’ป Example Usage - -```yaml -name: Handle Stale Issues and PRs - -on: - schedule: - - cron: '0 0 * * *' # Run daily at midnight - -jobs: - stale: - uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/stale.yml@stale-v1.0.0 -``` - -## ๐Ÿ”ง Advanced Configuration Example - -```yaml -name: Custom Stale Management - -on: - schedule: - - cron: '30 1 * * *' # Run at 1:30 AM daily - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v8 - with: - # Custom configuration for issues - days-before-issue-stale: 45 - days-before-issue-close: 10 - stale-issue-label: 'inactive' - stale-issue-message: 'This issue has been marked as inactive due to 45 days of no activity.' - close-issue-message: 'This issue has been closed due to continued inactivity. Please reopen if needed.' - - # Custom configuration for PRs - days-before-pr-stale: 30 - days-before-pr-close: 7 - stale-pr-label: 'stale-pr' - stale-pr-message: 'This PR has been inactive for 30 days and is marked as stale.' - - # Exempt certain issues/PRs - exempt-issue-labels: 'pinned,security,bug' - exempt-pr-labels: 'wip,reviewing' - - # Limit operations - operations-per-run: 100 -``` - -## ๐Ÿ› ๏ธ Customization -This workflow uses the [actions/stale](https://github.com/actions/stale) action internally. If you need to customize the behavior beyond the default settings, you can create your own workflow that directly uses the actions/stale action with your preferred configuration as shown in the advanced example above. - -## ๐ŸŒŸ Benefits -- ๐Ÿงผ Reduces repository clutter by automatically managing inactive items -- ๐Ÿš€ Encourages active participation and follow-up from contributors -- ๐Ÿค– Automatically manages abandoned issues and PRs without manual intervention -- ๐ŸŽฏ Helps maintainers focus on active contributions rather than stale work -- ๐Ÿ“Š Improves project metrics by reflecting actual active work -- โณ Saves maintainer time by automating routine repository maintenance -- ๐Ÿ”„ Creates a continuous feedback loop for contributors - -## ๐Ÿ“‹ Best Practices -- Consider announcing your stale policy in your contributing guidelines -- Review closed items periodically to ensure important issues weren't closed prematurely -- Adjust timeframes based on your project's activity level and contributor base -- Use exempt labels for long-term issues that shouldn't be closed automatically diff --git a/stale/version.txt b/stale/version.txt deleted file mode 100644 index 7dea76e..0000000 --- a/stale/version.txt +++ /dev/null @@ -1 +0,0 @@ -1.0.1 diff --git a/stale/workflow-sha256 b/stale/workflow-sha256 deleted file mode 100644 index 4f32bab..0000000 --- a/stale/workflow-sha256 +++ /dev/null @@ -1 +0,0 @@ -28cbda1ec67a165c2bea5b6c83c4a50fdfa26f67852c47bc6dbeb84e31afd1f8