Automate GitHub Profile & Contribution Insights with n8n
detail.loadingPreview
Leverage n8n to automatically fetch and surface detailed GitHub user profiles and contribution insights directly to your team's Slack channel. This workflow streamlines access to valuable developer information.
About This Workflow
This n8n workflow empowers you to gain immediate insights into your developers' GitHub activity. By triggering a webhook, it queries the GitHub GraphQL API to retrieve user details, including name, company, location, and avatar. It then meticulously analyzes the user's recent pull requests and commits to extract unique, non-GitHub-generated email addresses associated with their contributions. The processed information is elegantly formatted and sent directly to a designated Slack channel, providing a centralized and easily accessible hub for developer profile and contribution data.
Key Features
- Real-time GitHub Data: Automatically fetch user profiles and recent pull request/commit data.
- Intelligent Email Extraction: Filters out generic GitHub
noreplyemails to reveal genuine contribution addresses. - Seamless Slack Integration: Delivers formatted insights directly to your team's communication channel.
- Customizable Webhook Trigger: Easily integrate with various external systems to initiate the workflow.
How To Use
- Set up the Webhook Node: Configure the
Webhooknode to receive incoming POST requests. Note the webhook URL that n8n generates. - Configure the GraphQL Node:
- Replace
<Personal Token>in theAuthorizationheader with your GitHub Personal Access Token (ensure it has the necessary scopes forread:userandread:orgif applicable). - The
queryis pre-configured to fetch user details and pull request commit authors. Theloginis dynamically set by the username from the webhook body.
- Replace
- Customize the Function Node: The
Functionnode is pre-written to process the GraphQL response, extract relevant emails, and filter out GitHub'snoreplyaddresses. You can adjust the regular expressions if needed. - Configure the Slack Node:
- Connect your Slack OAuth2 credentials.
- The
channelis dynamically set from the webhook body. - The
attachmentsare pre-configured to display the fetched GitHub user details and the processed email list. Customize these further as required.
Apps Used
Workflow JSON
{
"id": "c439aa59-713e-4d03-9157-49d268d6ddae",
"name": "Automate GitHub Profile & Contribution Insights with n8n",
"nodes": 15,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: c439aa59-713e...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.