Metadata-Version: 2.4
Name: pitboss
Version: 2026.10.21.9634
Summary: Sweep a project's pull requests, merge queue, worktrees and worker slots
Author-email: Moshe Zadka <moshez@zadka.club>
License: Permission is hereby granted, free of charge, to any person obtaining a
        copy of this software and associated documentation files (the "Software"),
        to deal in the Software without restriction, including without limitation the
        rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is furnished
        to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
        INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
        PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
        HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
        CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
        OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/dev-skill-up/pitboss
Requires-Python: >=3.12
Description-Content-Type: text/x-rst
Requires-Dist: gather
Requires-Dist: commander_data
Provides-Extra: tests
Requires-Dist: virtue; extra == "tests"
Requires-Dist: pyhamcrest; extra == "tests"
Requires-Dist: coverage; extra == "tests"
Provides-Extra: mypy
Requires-Dist: mypy; extra == "mypy"
Provides-Extra: lint
Requires-Dist: flake8; extra == "lint"
Requires-Dist: black; extra == "lint"
Requires-Dist: stolid; extra == "lint"
Requires-Dist: placard; extra == "lint"
Requires-Dist: pydoclint; extra == "lint"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Provides-Extra: skills
Requires-Dist: pyyaml; extra == "skills"

pitboss
=======

Sweep a project's pull requests, merge queue, local checkouts and worker
slots, and say what each calls for.

``pitboss`` reads the project's state from GitHub (through ``gh api``, with the
session's own authentication) and from the checkouts on the machine, and
prints one line per thing that needs a look. Every line that calls for an
action starts with a marker in capitals and says the action. Everything about
one project (its repositories, review format, models, labels, paths) lives in
that project's configuration file; ``pitboss`` itself names no project.

Commands
--------

==============================================  =====================================================
``pitboss sweep CONFIG``                        PRs, runner pressure, queue runs, stragglers,
                                                worktrees, reminders, slots. Exits 1 on a red or
                                                conflicted PR.
``pitboss pressure CONFIG``                     One line; exits 1 under runner pressure.
``pitboss cancel-stale-runs CONFIG``            Cancel superseded merge-queue runs (``--no-dry-run``).
``pitboss clean-worktrees CONFIG``              Remove finished worktrees (``--no-dry-run``).
``pitboss review-form CONFIG REPOSITORY``       The form a review comment there must take.
``pitboss slots ACTION CONFIG ...``             The worker-slot ledger, and what to start next.
==============================================  =====================================================

``CONFIG`` is a path, or a name looked up as ``.claude/pitboss/<name>.toml`` in
the current directory or a parent. ``doc/example.toml`` lists every key.

The sweep skill
---------------

The repository is also a Claude Code plugin marketplace with one plugin,
``pitboss``, whose ``sweep`` skill says when to run ``pitboss`` and what to do
about every line. A project enables it in its ``.claude/settings.json``:

.. code:: json

    {
      "extraKnownMarketplaces": {
        "pitboss": {"source": {"source": "github", "repo": "dev-skill-up/pitboss"}}
      },
      "enabledPlugins": {"pitboss@pitboss": true}
    }

``skill-zips/sweep.zip`` is the same skill for upload to claude.ai.

Development
-----------

``nox`` runs every check: ``tests`` (100% branch coverage), ``lint`` (black and
stolid), ``mypy``, ``docs``, ``skills`` (the skill's files, the markers against
the references, and ``skill-zips/``), ``dry_release``. The design, and how each
value specific to one project became configuration, is in ``doc/design.rst``.
