Push GitHub Developer Leads to OneSignal for Targeted Push Campaigns

Route GitHub developer buying signals to OneSignal to run targeted push notification campaigns. GitLeads captures dev intent and exports to OneSignal via webhook.

Published: May 6, 2026Updated: May 6, 20266 min read

Why Route GitHub Signals to OneSignal

OneSignal powers push notifications, in-app messages, and email campaigns for millions of apps. If you use OneSignal to engage your developer audience, GitLeads can feed it high-intent developer leads captured directly from GitHub activity.

Instead of blasting your entire list, you can create OneSignal segments seeded with developers who have recently signaled buying intent on GitHub — through stars, keyword mentions, or PR activity on relevant repos.

How the GitLeads → OneSignal Flow Works

GitLeads routes signals to OneSignal via its webhook output. The flow:

  1. Configure a GitLeads signal (repo stargazer or keyword)
  2. Set up a GitLeads webhook destination pointing to an n8n, Make, or Zapier workflow
  3. In the workflow, extract the developer email and signal metadata
  4. Use the OneSignal REST API to create or update a subscriber record
  5. Tag the subscriber with the signal type (e.g., "arkit-star", "detox-issue") for segmentation
  6. Launch a targeted push or in-app campaign to that segment

OneSignal API: Adding a Developer as a Subscriber

Use the OneSignal subscriptions API to upsert a developer captured by GitLeads:

// Webhook handler: GitLeads → OneSignal
// Receives GitLeads webhook payload and creates a OneSignal subscription

interface GitLeadsPayload {
  email: string;
  github_username: string;
  signal_type: 'stargazer' | 'keyword';
  signal_context: string;
  repo?: string;
  keyword?: string;
}

async function addToOneSignal(lead: GitLeadsPayload) {
  const appId = process.env.ONESIGNAL_APP_ID!;
  const apiKey = process.env.ONESIGNAL_API_KEY!;

  // Create or update subscriber (email channel)
  const response = await fetch('https://onesignal.com/api/v1/players', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Basic ${apiKey}`,
    },
    body: JSON.stringify({
      app_id: appId,
      channel_for_external_user_ids: 'email',
      identifier: lead.email,
      external_user_id: lead.github_username,
      tags: {
        signal_type: lead.signal_type,
        repo: lead.repo ?? '',
        keyword: lead.keyword ?? '',
        github_lead: 'true',
      },
    }),
  });

  const data = await response.json();
  return data.id; // OneSignal player ID
}

Segmenting GitHub Leads in OneSignal

Once GitHub leads are tagged in OneSignal, create dynamic segments based on the tags GitLeads provides:

  • Tag "signal_type = stargazer" — developers who starred a tracked repo
  • Tag "repo = appium/appium" — specifically Appium users
  • Tag "keyword = openxr" — developers mentioning OpenXR in GitHub discussions
  • Tag "github_lead = true" — all GitHub-sourced leads for aggregate reporting

Campaign Ideas for GitHub Developer Leads in OneSignal

With GitHub-sourced leads in OneSignal, your campaigns can be highly contextual:

  • Web push to developers who starred a competitor repo — "How we compare to [competitor]"
  • In-app message to keyword leads — "Saw you were discussing [keyword] on GitHub..."
  • Email campaign to AR/VR developers — "Build faster with our spatial computing SDK"
  • Re-engagement push when a previously quiet lead shows new GitHub activity
GitLeads captures developer buying signals from GitHub and routes enriched profiles to your tools via webhook. Combine with OneSignal to run highly targeted developer push campaigns. Start free at gitleads.app. Related: [push GitHub leads to HubSpot](/blog/push-github-leads-to-hubspot), [push GitHub leads to Slack](/blog/push-github-leads-to-slack), [GitHub intent data for B2B sales](/blog/github-intent-data-b2b-sales).

Want more like this? Get the weekly developer lead playbook.

No spam. 5 emails over 2 weeks. Unsubscribe anytime.

Related Articles

How to Find Leads on GitHub: The Complete Guide (2026)
10 min read
GitHub Leads vs LinkedIn Leads: When to Use Which (2026)
9 min read
GDPR Compliance for GitHub Lead Scraping: What You Must Know
8 min read