Skip to content

GitHub Commits

Promptless can monitor direct commits to your default branches for documentation updates. This is useful for teams that merge changes directly without pull requests, or when you want to capture documentation needs from hotfixes and emergency changes.

When a commit is pushed directly to a monitored branch:

  1. Commit Detection: Promptless receives notification of the new commit
  2. Analysis: The system processes the code diff and commit message to understand the changes
  3. Relevance Assessment: Promptless determines if the changes require documentation updates
  4. Suggestion Creation: If relevant, Promptless creates documentation suggestions

Configure GitHub commit triggers in your project settings:

  1. Select GitHub as your trigger source
  2. Choose “GitHub Commits” as the trigger type
  3. Select which repositories and branches to monitor
  4. Optionally configure directory-specific triggers
  5. Set auto-publish preferences
GitHub commit trigger configuration showing directory options

Similar to PR triggers, you can configure Promptless to only trigger on commits that affect specific directories. This is particularly useful for monitoring changelog directories or specific feature areas.

When trigger directories are specified, only commits that contain changes to those directories will trigger documentation updates.

GitHub commit triggers are especially useful for:

  • Changelog Monitoring: Automatically update documentation when changelog files are modified
  • Hotfix Documentation: Capture documentation needs from emergency fixes that bypass the normal PR process
  • Direct-to-Main Workflows: Support teams that commit directly to main branches
  • Automated Updates: Trigger documentation updates from automated commit processes

Automatically merge documentation PRs into the default branch as soon as they’re created.

Auto-merge requires auto-publish to also be enabled.

Auto-merge is useful for:

  • Internal documentation: When documentation PRs don’t require human review
  • High-confidence workflows: Teams that want full automation
  • Changelog-driven updates: When you want changelog updates to publish immediately

Enable auto-merge in your project settings by checking “Automatically merge Promptless suggestions into the default branch.” This option is only available for commit triggers.

Project settings showing auto-publish and auto-merge checkboxes

To connect GitHub to Promptless, see the GitHub Integration setup guide.