spryker-sdk/repository-cleaner
Composer 安装命令:
composer require spryker-sdk/repository-cleaner
包简介
Closes open PRs in the repository and removes all existing branches except the main one
README 文档
README
The U Repository Cleaner is a command-line tool designed to help clean up pull requests (PRs) and branches in a GitHub repository made by the Spryker Code Upgrader. It provides functionalities to filter and process open PRs based on specified conditions, such as whitelisted branches and PR creators. The tool is particularly useful for maintaining a clean repository by automating the removal of unnecessary PRs and branches.
Usage
To use the U Repository Cleaner, execute the following command in your terminal:
php bin/repoclean.php github-org repository-name whitelisted-branch1,whitelisted-branch2,whitelisted-branchN
Replace the placeholders with the actual values:
- github-org: The GitHub organization or username that owns the repository.
- repository-name: The name of the repository to clean.
- whitelisted-branch1,whitelisted-branch2,whitelisted-branchN: Comma-separated list of branch names that should be whitelisted and skipped during processing.
Features
- Fetches open pull requests in the specified repository.
- Filters and processes pull requests based on whitelisted branches.
- Removes pull requests and their associated branches if certain conditions are met.
- Supports automation of repository maintenance tasks.
Getting Started
-
Clone this repository to your local machine.
-
Install the required dependencies using Composer:
composer install
-
Configure the GitHub API credentials in the config/github.php file.
-
Run the command with the appropriate arguments to clean the repository.
Example
Assuming you want to clean a repository owned by the GitHub organization myorg, named my-repo, and you want to whitelist the branches master, main, and dev, you would execute the following command:
php bin/repoclean.php myorg my-repo master,main,dev
The tool will process the open PRs in the repository, skipping the whitelisted branches, and remove any PRs that do not meet the specified criteria.
Contributors Pavlo Maksymov pavlo.maksymov@spryker.com Spryker SDK Team Copilot ChatGpt
License
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to customize the README description further according to your project's specific details and requirements. Make sure to provide clear instructions for installation, configuration, and usage.
spryker-sdk/repository-cleaner 适用场景与选型建议
spryker-sdk/repository-cleaner 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 spryker-sdk/repository-cleaner 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 spryker-sdk/repository-cleaner 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-10-24