Skip to main content
Create Niteshift tasks directly from GitHub pull request comments. Comment /niteshift on a PR to start a task that fixes CI failures and addresses review feedback.

Command syntax

/niteshift [optional prompt]
PartDescription
/niteshiftRequired prefix
promptOptional additional instructions

Examples

/niteshift
Creates a task with the default /pr-fix-ci skill to fix CI failures and address review comments.
/niteshift fix the flaky test in user.spec.ts
Creates a task with specific instructions in addition to PR fixing.
/niteshift@staging
Targets the staging environment instead of production.

How it works

1

Comment detected

Niteshift webhook receives the comment event and validates:
  • Comment is on a pull request (not an issue)
  • Comment author is the PR author
  • User has a Niteshift account with the feature enabled
2

Task created

Niteshift creates a task linked to the PR:
  • Clones the PR branch
  • Makes PR context available to the agent
  • Activates the /pr-fix-ci skill
3

GitHub updated

Niteshift reacts to your comment with ๐Ÿ‘€ while processing, then:
  • Creates a check run on the PR
  • Posts a comment with the task URL
  • Reacts with ๐Ÿš€ on success
4

Agent works

The agent polls CI, fixes failures, and addresses review feedback. When complete, changes are ready for you to review and push.

Requirements

To use PR comments:
  1. GitHub App installed โ€” On the repositoryโ€™s account or organization
  2. Niteshift account โ€” Linked to your GitHub username
  3. Feature enabled โ€” PR commands are enabled for your account
  4. PR author โ€” Only the PR author can trigger tasks via comments

What the task does

Tasks created from PR comments automatically run the /pr-fix-ci skill:
  1. Wait for CI checks to complete (up to 20 minutes)
  2. Fetch failure logs from failed checks
  3. Fetch all PR review threads
  4. Categorize feedback based on your reactions
  5. Fix issues with minimal changes
  6. Reply to threads explaining what was done
See pr-fix skill for details on how feedback is categorized and addressed.

Check runs

Niteshift posts GitHub check runs to show task status:
CheckPurpose
Niteshift PreviewShows provisioning and task status
Niteshift FixesShows what was fixed after /pr-fix-ci completes
Click the check details to open the task in Niteshift.

Limitations

  • Only PR authors can trigger tasks (prevents spam)
  • One active task per PR
  • Tasks inherit the PR branch, not main
  • Changes must be manually pushed after review