GitHub Enterprise integration
For GitHub Enterprise Server and GitHub Enterprise Cloud users
If your organization uses GitHub Enterprise Server (self-hosted) or GitHub Enterprise Cloud with specific security requirements, you’ll need to create a custom GitHub App within your enterprise environment to integrate with Promptless.
Prerequisites
Section titled “Prerequisites”- GitHub Enterprise admin access to create and configure GitHub Apps
- Network access to Promptless endpoints (see IP whitelisting section)
- Ability to generate and securely store private keys and client secrets
Step 1: Register new GitHub App
Section titled “Step 1: Register new GitHub App”- Navigate to your GitHub Enterprise admin settings
- Go to “GitHub Apps” and click “New GitHub App”
- Fill in the basic app information:
Required app details
Section titled “Required app details”Fill in the following fields in your GitHub App configuration:
- GitHub App name (required): Enter a descriptive name like “Promptless Enterprise” or “Promptless (Your Company Name)”
- Description: Use: “Promptless keeps your technical guides up-to-date using AI.”
- Homepage URL (required):
https://gopromptless.ai
Step 2: Configure authentication URLs
Section titled “Step 2: Configure authentication URLs”Set up the callback and redirect URLs for proper authentication flow:
Authentication configuration
Section titled “Authentication configuration”Configure the following URLs in your GitHub App settings:
- Callback URL (required):
https://app.gopromptless.ai/integrations - Setup URL (Post installation) (required):
https://app.gopromptless.ai/integrations/github-redirect
Step 3: Configure webhook settings
Section titled “Step 3: Configure webhook settings”Set up webhooks to enable real-time communication between GitHub Enterprise and Promptless:
Webhook configuration
Section titled “Webhook configuration”Configure the following webhook settings in your GitHub App:
- Webhook URL (required):
https://api.gopromptless.ai/integrations/github/events - Webhook secret (optional): Leave this field empty or generate a secure secret if required by your security policies
- SSL verification (required): Enable SSL verification (recommended for security)
Step 4: Configure repository permissions
Section titled “Step 4: Configure repository permissions”Promptless requires specific repository permissions to function properly. Configure these permissions in your GitHub App settings:
Required repository permissions
Section titled “Required repository permissions”Configure the following permissions for your GitHub App:
Pull requests - read and write
Section titled “Pull requests - read and write”
This permission allows Promptless to:
- Read pull request content and metadata
- Create documentation update pull requests
- Add comments to pull requests for feedback
Contents - read and write
Section titled “Contents - read and write”
This permission allows Promptless to:
- Read repository files and documentation
- Create and update documentation files
- Access repository structure and content
Commit statuses - read only
Section titled “Commit statuses - read only”
This permission allows Promptless to:
- Read commit status information
- Understand the state of pull requests and commits
Webhooks - read and write
Section titled “Webhooks - read and write”
This permission allows Promptless to:
- Manage webhook configurations
- Receive real-time notifications of repository events
Step 5: Configure webhook events
Section titled “Step 5: Configure webhook events”Select the specific events that should trigger Promptless documentation updates:
Required webhook events
Section titled “Required webhook events”Select the following events to ensure Promptless receives all necessary notifications:
- Pull Request - Triggers when pull requests are opened, updated, or closed
- Pull Request Review - Triggers when pull request reviews are submitted
- Pull Request Review Thread - Triggers when review threads are created or updated
- Pull Request Review Comment - Triggers when individual review comments are made
- Push - Triggers when code is pushed to repositories
- Release - Triggers when releases are created or updated
- Repository - Triggers when repository settings change
Step 6: IP whitelisting
Section titled “Step 6: IP whitelisting”Add Promptless IP addresses to your network whitelist to ensure proper connectivity:
Promptless IP addresses
Section titled “Promptless IP addresses”Add the following IP addresses to your whitelist:
3.143.177.1033.131.121.2503.13.184.17518.223.104.40Step 7: Generate credentials
Section titled “Step 7: Generate credentials”After configuring all settings, generate the necessary credentials:
-
Generate Private Key.
- Scroll to the bottom of the GitHub App settings page
- Click “Generate a private key”
- Download and securely store the
.pemfile - This key will be needed for Promptless configuration
-
Generate Client Secret.
- In the “Client secrets” section, click “Generate a new client secret”
- Copy and securely store the generated secret
- This secret will be needed for OAuth authentication
-
Note the App ID.
- Find the “App ID” at the top of the settings page
- Record this ID as it will be needed for configuration
Step 8: Install the app
Section titled “Step 8: Install the app”- After creating the GitHub App, install it to your organization or specific repositories
- Choose which repositories Promptless should have access to
- Complete the installation process
Step 9: Connect your GitHub Enterprise integration
Section titled “Step 9: Connect your GitHub Enterprise integration”After configuring your GitHub Enterprise integration, you’ll need to connect it in your Promptless dashboard.
Complete the connection
Section titled “Complete the connection”To establish the connection:
- Log into your Promptless dashboard at app.gopromptless.ai
- Navigate to the Integrations page
- Locate the GitHub Enterprise integration tile
- Click Connect GitHub Enterprise to establish the connection
The connection process will authenticate with your GitHub Enterprise instance using the configuration that was set up by the Promptless team. Once connected, you’ll see confirmation that your GitHub Enterprise integration is active and ready to use.
Troubleshooting
Section titled “Troubleshooting”Webhook Delivery Issues
- Verify IP addresses are whitelisted
- Check that the webhook URL is accessible from your GitHub Enterprise instance
- Ensure SSL verification settings match your security requirements
- Review GitHub Enterprise logs for webhook delivery errors
Authentication Problems
- Verify all URLs are correctly configured
- Ensure the private key and client secret are valid
- Check that the App ID matches your created GitHub App
- Confirm the installation was completed successfully
Permission Errors
- Review that all required repository permissions are granted
- Ensure the app is installed to the correct repositories
- Verify that webhook events are properly configured
- Check that users have appropriate access to repositories
Support
Section titled “Support”For assistance with GitHub Enterprise setup, contact:
- Email: hello@gopromptless.ai
- Support: help@gopromptless.ai
The Promptless team can provide guidance on configuration, troubleshooting, and best practices for GitHub Enterprise integrations.