Overview
The GitHub connector automatically opens GitHub Issues when Lescopr detects a new incident or bug, and closes them once the issue is resolved.
It authenticates via a Personal Access Token (PAT) with repo scope and interacts with any repository you own or have write access to.
Key features:
- Automatic issue creation with configurable labels
- Auto-close on incident resolution
- Custom label and assignee mapping
Setup
Go to Settings → Connectors → GitHub in your Lescopr dashboard and enter your credentials. The access token requires at least the repo scope to create and close issues.
Lescopr Dashboard → Settings → Connectors → GitHub
bash
Repository owner: your-org-or-username
Repository name: your-repo
Access token: ghp_xxxxxxxxxxxxxxxxxxxx # PAT with repo scopeEvents & notifications
Lescopr triggers the following GitHub actions based on lifecycle events:
- Incident created → New issue opened with
lescoprandincidentlabels - Bug report created → New issue opened with
bugand severity labels - Incident resolved → Issue is automatically closed
- Incident acknowledged → Assignee is updated