Skip to main content

Setup

After installing Codestodian in Slack, you'll need to connect it to your GitHub account to enable code review functionality. From within Slack, open the Codestodian App. On the home page of the app, you will be presented with the following page:

Home view of Codestodian App in Slack

Press the Connect to GitHub button on the homepage to begin the process to connect Codestodian to your GitHub Cloud account. Once you press this button, your browser will navigate to the following page once you have selected the GitHub organisation to install Codestodian onto:

Codestodian GitHub App installation page

The permissions required by Codestodian are detailed below.

Repository Permissions
ScopePermissionAccess LevelNotes
RepositoryActionsRead-onlyWorkflows, workflow runs, artifacts
RepositoryAdministrationRead-onlyRepo settings/teams/collaborators
RepositoryChecksRead-onlyCheck runs/suites
RepositoryCode scanning alertsRead-onlyView/manage code scanning alerts
RepositoryCommit statusesRead-onlyCommit status API
RepositoryContentsRead-onlyRepo contents/branches/commits/releases
RepositoryDependabot alertsRead-onlyRetrieve Dependabot alerts
RepositoryDeploymentsRead-onlyDeployments + deployment statuses
RepositoryIssuesRead and writeIssues + comments/labels/milestones
RepositoryMetadataRead-onlyMandatory (can't be changed)
RepositoryPull requestsRead and writePRs + PR comments/labels/merges
RepositoryWebhooksRead-onlyPost-receive hooks
Organisation Permissions
ScopePermissionAccess LevelNotes
OrganizationAdministrationRead-onlyManage access to the org
OrganizationMembersRead-onlyOrg members + teams
OrganizationWebhooksRead and writeOrg webhooks
Account Permissions
ScopePermissionAccess LevelNotes
User(none selected)No user-scoped permissions currently requested

After installing, the application will create a webhook on the organisation so that it can receive events from GitHub. The webhooks cover the following event categories:

CI / Build / Code Quality Events
EventWhat it sendsWhy it's useful
Check runIndividual check execution lifecycleDetect CI results per job
Check suiteGrouped checks lifecycleTrack overall CI status
Code scanning alertSecurity/code scanning updatesSurface security alerts in Slack
Dependabot alertDependency vulnerabilitiesNotify engineers of risks
Deployment statusDeployment progress updatesReport environments/builds
StatusCommit status updatesCI state changes
Workflow jobIndividual Actions job updatesFine-grained pipeline insight
Workflow runWorkflow lifecycle eventsTrigger summaries when builds finish
Collaboration / Team Activity Events
EventWhat it sendsWhy it's useful
IssuesIssue lifecycle changesTrack work activity
Pull requestPR lifecycle changesMain driver of PR summaries
Pull request reviewReview submissionsDetect approvals/changes
Pull request review commentInline PR commentsReview context awareness
MemberRepo collaborator changesTeam visibility
MembershipTeam membership changesOrg/team awareness
TeamTeam updatesMaintain mapping of teams
Team addTeam added to repoPermission context
OrganizationOrg changes + member invitesOrg-level visibility
Repository / Git Activity Events
EventWhat it sendsWhy it's useful
PushGit push eventsDetect new commits instantly

After completing the installation on GitHub Cloud, congratulations! You are ready to use Codestodian.