GitHub PRs
Promptless monitors your GitHub repositories for pull requests. You can choose when documentation updates trigger: when a PR is opened or when it receives its first approval.
Trigger Modes
Section titled “Trigger Modes”GitHub PR triggers support two modes:
Opened (Default)
Section titled “Opened (Default)”Triggers when a pull request is opened. This works well for teams that want documentation suggestions ready alongside code changes, giving reviewers time to evaluate both.
First Approval
Section titled “First Approval”Triggers when a pull request receives its first approval from a reviewer. Use this mode when you want documentation updates to start only after code has been reviewed, so Promptless analyzes final changes rather than work in progress.
The first-approval mode only triggers once per PR—on the first approval. Subsequent approvals or re-approvals after requested changes do not trigger additional documentation updates.
How It Works
Section titled “How It Works”When a pull request event occurs in your monitored repositories (either opened or first approval, depending on your configuration):
- Automatic Detection: Promptless receives notification of the new PR
- Analysis: The system processes the code diff, PR title, and PR description to understand the context
- Relevance Assessment: Promptless determines if the changes require documentation updates
- Suggestion Creation: If relevant, Promptless creates documentation suggestions
Note
Information from PRs is processed in real-time and not stored by Promptless. The analysis happens only when the configured trigger event occurs.
Configuration
Section titled “Configuration”Configure GitHub PR triggers in your project settings:
- Select GitHub as your trigger source
- Choose the trigger mode: When PR opens (default) or After first approval
- Choose which repositories to monitor
- Optionally configure directory-specific triggers (see below)
- Set auto-publish preferences
Directory-Specific Triggers
Section titled “Directory-Specific Triggers”You can configure Promptless to only trigger when changes are made to specific directories within your repositories. This is particularly useful when you want to focus documentation updates on changes to certain parts of your codebase.
To set up directory-specific triggers:
- When creating or editing a project, select the GitHub trigger option
- Check the “Choose specific directories to trigger this project” option
- Enter the directory paths you want to monitor, separating multiple paths with commas
- Save your project configuration
When trigger directories are specified, only PRs that contain changes to those directories will be considered, and updates to other files will be ignored.
Repository Topics
Section titled “Repository Topics”If you have many repositories, you can use GitHub topics to control which ones trigger Promptless. This is especially helpful for organizations with dozens or hundreds of repos where only some need documentation automation.
-
Tag your repositories in GitHub: Add topics to the repositories you want Promptless to monitor (e.g., “docs-watch”, “promptless”). To add topics to a repository, go to the repository’s main page and click “Add topics” in the About section.
-
Configure your project: When creating or editing a GitHub project, check the “Trigger on repos with certain topics” option and enter the topic(s) you want to monitor. You can specify multiple topics, and Promptless will trigger on any repository that has at least one of those topics.
-
Manage through GitHub: To add a new repository to Promptless, tag it with the configured topic in GitHub. To remove a repository, remove the topic from the repository settings.
Learn more about GitHub repository topics in the GitHub documentation.
Auto-publish Mode
Section titled “Auto-publish Mode”When auto-publish is enabled for your project:
- Promptless automatically creates a new PR in your documentation repository with suggested changes
- The documentation PR is linked in a comment on the original code PR
Draft Pull Requests
Section titled “Draft Pull Requests”Warning
Promptless automatically skips draft pull requests. Documentation updates are only triggered when the pull request is marked as ready for review.
Setup Instructions
Section titled “Setup Instructions”To connect GitHub to Promptless, see the GitHub Integration setup guide.