Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .claude/commands/submit-time.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Post a `@holdex pr submit-time` comment on a pull request to record time spent.

Check warning on line 1 in .claude/commands/submit-time.md

View workflow job for this annotation

GitHub Actions / checks

MD041

First line in file should be a level 1 heading

## Input

Time is provided as `$ARGUMENTS` (e.g. `2h30m`, `1h`, `45m`, `1.5h`).

If `$ARGUMENTS` is empty, ask the user for the time before proceeding.

Validate the format — accepted patterns: `15m`, `1h`, `2h30m`, `1.5h`. If the format is invalid, tell the user and stop.

Check warning on line 9 in .claude/commands/submit-time.md

View workflow job for this annotation

GitHub Actions / checks

MD013

Paragraph could be normalized to use line length of 80 characters

## Resolve the PR

Detect the current PR from the git worktree:

```bash
gh pr list --head "$(git branch --show-current)" --json number,url,title --limit 1
```

If no PR is found for the current branch, ask the user for the PR number or URL.

## Post the comment

```bash
gh pr comment <PR_URL> --body "@holdex pr submit-time $ARGUMENTS"
```

Confirm the comment was posted and show the PR URL.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Loading