You can find your GitHub app credentials in your GitHub Developer Account.You’ll need the following information to set up your GitHub App with Paragon Connect:
Under Integrations > Connected Integrations > GitHub > App Configuration > Configure, fill out your credentials from your developer app in their respective sections:
Client ID: Found under Settings > Developer settings > {YOUR APP} > Client ID on your GitHub App page.
Client Secret: Found under Settings > Developer settings > {YOUR APP} > Client Secret on your GitHub App page.
Leaving the Client ID and Client Secret blank will use Paragon development keys.
Once your users have connected their GitHub account, you can use the Paragon SDK to access the GitHub API on behalf of connected users.See the GitHub REST API documentation for their full API reference.Any GitHub API endpoints can be accessed with the Paragon SDK as shown in this example.
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration// Authenticate the userparagon.authenticate(<ProjectId>, <UserToken>);// Get issues associated with a repositoryparagon.request("github", "/repos/{owner}/{repo}/issues", { method: "GET"});// Create a comment on an issueparagon.request("github", "/repos/{owner}/{repo}/issues/{issue_number}/comments", { method: "POST", body: { body: "Looks good to me!" }});// Specify labels for an issueparagon.request("github", "/repos/{owner}/{repo}/issues/{issue_number}/labels", { method: "PUT", body: { labels: [ 'bug', 'enhancement' ] }});
Once your GitHub account is connected, you can add steps to perform the following actions:
Create Issue
Update Issue
Get Issue by Number
Lock Issue
Search Issue
Create Release
Update Release
Get Release by ID
Get Release by Tag Name
Delete Release
You can also use the GitHub Request step to access any of GitHub’s API endpoints without the authentication piece.When creating or updating issues in GitHub, you can reference data from previous steps by typing {{ to invoke the variable menu.
Webhook triggers can be used to run workflows based on events in your users’ GitHub account. For example, you might want to trigger a workflow whenever new issues are created in GitHub to sync your users’ GitHub issues to your application in real-time.You can find the full list of Webhook Triggers for GitHub below: