PHPackages                             spryker-sdk/repository-cleaner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. spryker-sdk/repository-cleaner

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

spryker-sdk/repository-cleaner
==============================

Closes open PRs in the repository and removes all existing branches except the main one

00PHP

Since Oct 24Pushed 2y ago2 watchersCompare

[ Source](https://github.com/spryker-sdk/repo-cleaner)[ Packagist](https://packagist.org/packages/spryker-sdk/repository-cleaner)[ RSS](/packages/spryker-sdk-repository-cleaner/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

U Repository Cleaner
====================

[](#u-repository-cleaner)

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
=====

[](#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
========

[](#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
===============

[](#getting-started)

1. Clone this repository to your local machine.
2. Install the required dependencies using Composer:

    ```
    composer install
    ```
3. Configure the GitHub API credentials in the config/github.php file.
4. Run the command with the appropriate arguments to clean the repository.

Example
=======

[](#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 Spryker SDK Team Copilot ChatGpt

License
=======

[](#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.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10738957?v=4)[Spryker Bot](/maintainers/spryker-bot)[@spryker-bot](https://github.com/spryker-bot)

---

Top Contributors

[![pavelmaksimov25](https://avatars.githubusercontent.com/u/82393959?v=4)](https://github.com/pavelmaksimov25 "pavelmaksimov25 (13 commits)")[![DmytroKlymanSpryker](https://avatars.githubusercontent.com/u/111562890?v=4)](https://github.com/DmytroKlymanSpryker "DmytroKlymanSpryker (1 commits)")

### Embed Badge

![Health badge](/badges/spryker-sdk-repository-cleaner/health.svg)

```
[![Health](https://phpackages.com/badges/spryker-sdk-repository-cleaner/health.svg)](https://phpackages.com/packages/spryker-sdk-repository-cleaner)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
