Why Integration Matters
EnsureFix is only useful if it connects to the systems you already use. Most engineering teams have:
- A ticket system (Jira, Azure DevOps, GitHub Issues, Bitbucket)
- A VCS provider (GitHub, GitLab, Azure DevOps Git, Bitbucket)
- CI/CD pipelines (GitHub Actions, Azure Pipelines, GitLab CI)
EnsureFix needs to read from the first, write to the second, and monitor the third. Here's how to connect each provider.
Ticket System Integration
Jira Cloud
EnsureFix connects to Jira via OAuth 2.0 or API token:
- Generate an API token in Atlassian settings
- Configure the Jira project and board
- Set up a webhook for issue creation/update events
- Map Jira fields (summary → title, description → context, labels → tags)
Supported triggers: New issue, issue status change, issue labeled with specific tag
Azure DevOps
EnsureFix connects via Personal Access Token:
- Generate a PAT with Work Items (Read) scope
- Configure the organization, project, and team
- Set up a service hook for work item events
- Map Azure DevOps fields to the pipeline
Supported triggers: Work item created, state changed, tagged
GitHub Issues
EnsureFix connects via GitHub App or PAT:
- Install the GitHub App or generate a fine-grained PAT
- Configure repository and label filters
- Webhooks are automatic with the GitHub App
- Issues with specific labels trigger the pipeline
Supported triggers: Issue opened, labeled, assigned
Bitbucket
EnsureFix connects via App Password:
- Create an App Password with Issues (Read) scope
- Configure the workspace and repository
- Set up a webhook for issue events
VCS Provider Integration
GitHub
The recommended setup:
- Create a GitHub App or use deploy keys
- Grant permissions: Contents (Read/Write), Pull Requests (Read/Write)
- Configure branch protection rules compatible with bot pushes
- Set up the default branch and PR template
GitLab
- Create a Project Access Token or use deploy keys
- Grant Developer role minimum
- Configure protected branches to allow the bot
- Set up merge request templates
Azure DevOps Git
- Use the same PAT as ticket integration (with Code scope)
- Configure the repository and default branch
- Set up branch policies compatible with automated PRs
Bitbucket
- Use the same App Password with Repositories (Write) scope
- Configure repository and branch model
- Set up default reviewers for AI-generated PRs
Webhook Configuration
For real-time ticket processing, set up webhooks:
Webhook payload → Ticket ingestion → Priority queue → Worker processing
Most platforms support webhook secrets for payload verification. Always validate the webhook signature before processing.
Polling Fallback
If webhooks aren't available (firewall restrictions, on-premises), configure polling:
- Default interval: 60 seconds
- Configurable per ticket system
- Deduplication prevents reprocessing
Authentication Security
All credentials are encrypted at rest using AES-256-GCM:
- Encryption key stored as environment variable (64 hex chars)
- Credentials stored as
iv:authTag:ciphertextformat - Never logged, never exposed in API responses
- Connection test validates credentials before saving
Repository Configuration
Each repository can be independently configured:
- Auto-fix enabled/disabled — should the AI process tickets automatically?
- Branch naming convention — e.g.,
ai/ticket-{id} - Max files per run — limit the scope of AI changes
- Blocked paths — directories the AI should never modify
- Required approval — plan approval, diff approval, or both
- Commit policy — manual, auto, or conditional
CI/CD Integration
When EnsureFix opens a PR, your existing CI pipeline runs automatically. If CI fails:
- The CIFeedbackAgent analyzes the failure logs
- It identifies the root cause (test failure, lint error, build error)
- It generates a fix and pushes to the same branch
- CI runs again
This loop continues until CI passes or the maximum retry count is reached.
Best Practices
- Start with one repository — validate the integration before scaling
- Use dedicated bot accounts — don't use personal tokens for AI operations
- Set up notifications — get alerted when AI PRs are created
- Review the first 20 PRs manually — build confidence before enabling auto-merge
- Monitor costs — track token usage per repository to catch anomalies
Troubleshooting
| Issue | Cause | Fix |
|---|---|---|
| Webhook not triggering | Firewall or URL mismatch | Check webhook delivery logs in your provider |
| Authentication failed | Expired token or wrong scope | Regenerate token with correct permissions |
| PR creation fails | Branch protection rules | Allow bot account to push to protected branches |
| CI not running on PR | Missing trigger configuration | Ensure CI runs on the bot's branch pattern |
The integration setup typically takes 15-30 minutes per provider. Once configured, tickets flow automatically from your existing tools into EnsureFix's AI pipeline. To get started with EnsureFix, connect your first repository and let the agents handle the rest.
Ready to automate your tickets?
See ensurefix process a real ticket from your backlog in a live demo.
Request a Demo