updated 9 months ago
GitHub is a web-based repository manager that lets teams collaborate on code. It also lets you duplicate the code to safely create and edit new projects, then merge finished code into existing projects.
In this article, we will learn:
Why Integrate GitHub with Stackby?
Interesting! Why integrate with Stackby when you can actually go to GitHub to check out your project code details. So you log in and need to access different pages when you want to check details (issues, commits, changes, etc.) related to your project code management. And even then you cannot create reports as GitHub doesn't provide you with that facility.
That is exactly where Stackby steps in. Stackby, helps you manage all your GitHub details and data on a single platform. When you integrate GitHub with Stackby, you can automatically bring your project code management details and do away with manual entry.
Easily see commits, issues, changes made by your team without having to visit multiple pages on GitHub. Need a report? Just sort and filter the relevant data, and the data is ready to download as a CSV file report.
That's project code management made easy and time-saving for you, especially if you are managing a big product development team or multiple projects at a time.
How to Integrate GitHub?
Integrating GitHub to Stackby can be done in 5 simple steps. Let's check them out:
You must have a Personal Access Token or API Key to integrate so go to your Console Menu on the top right side of the platform.
Click on Settings → Developer → Settings → Personal Access token → Generate a personal access token (or copy the one you already made).
Fill in the necessary details and generate a new token. Now, let's get back to Stackby.
Go to Your Account in Stackby and click on Workspace settings (the one where you want to pull in the data) and then to API Configuration in the Workspace. Add a new integration for GitHub, paste your API key and save.
You have now integrated GitHub with Stackby. The next steps are about pulling the relevant data from GitHub to Stackby.
The Next Steps...
Now that you have set up the integration, here is how you can pull in your project details:
Create a stack in the Workspace or go to the stack, and keep the first column or any column as the reference (here it will be the Owner's Name, Repository Name or Sha Commit ID).
In the second column, connect to the GitHub API and rename the column, select "API" as the column property and choose GitHub as the API and within that Select a GitHub Service and then Select the Owner's Name column to reference.
Add in the Owner's Name details in the first/primary column, click on the refresh arrow and the API will work on the stack. The data will start filling in the consecutive columns (decide which data you want to access by selecting it from our data explorer). Make sure you change the column names and property beforehand; repeat with other columns.
Available API Functions
Get User Details Get user details by specifying GitHub Owner and Repository Reference: Owner's Name Output: Get users' GitHub profile information Get Single Commit Details Get Collaborators list by specifying GitHub Owner and Repository Reference: Owner's Name, Repository Name and Sha Commit ID Output: Returns the contents of a single commit reference Note: You must have "Read" access for the repository to use this endpoint.
You can create as many personal access tokens as you like from your GitHub profile.
GitHub User Metrics: Bring particular GitHub public developer metrics in real-time to track your hiring prospects or follow your favourite developers.