Skip to content

discussion-status-promoter

by official

Discussion

Determine if discussion status should be promoted based on voting

discussion utility orchestrated-discussions
# discussion-status-promoter

Determine if discussion status should be promoted based on voting.

## Installation

This is a CmdForge tool. Install it using:

```bash
cmdforge install discussion-status-promoter
```

## Usage

This tool analyzes voting data from a discussion and determines whether the discussion status should be promoted to the next phase.

```bash
# Basic usage with voting data
echo '{"votes": {"approve": 3, "reject": 0}}' | discussion-status-promoter

# With custom current status
echo '{"votes": {"approve": 2, "reject": 1}}' | discussion-status-promoter --current-status OPEN

# With custom phase
echo '{"votes": {"approve": 3, "reject": 0}}' | discussion-status-promoter --current-phase initial_feedback
```

## Arguments

| Flag | Variable | Default | Description |
|------|----------|---------|-------------|
| `--current-status` | `current_status` | `OPEN` | Current discussion status |
| `--current-phase` | `current_phase` | `initial_feedback` | Current discussion phase |

## How It Works

1. **Code Step**: Analyzes the voting data from stdin along with the current status and phase, then determines if the discussion should be promoted to the next status based on voting thresholds and rules.

The tool outputs a JSON response indicating whether promotion should occur and the recommended next status.

## Dependencies

None

No reviews yet.

Issues

No issues reported for this tool.