FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine

charmaine

GitHubIssuesToClay

Grab issues from GitHub repo, send them to Clay
Public
Like
GitHubIssuesToClay
Home
Code
5
README.md
clay.ts
github.ts
H
main.ts
test.ts
Branches
1
Pull requests
Remixes
2
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/15/2025
Viewing readonly version of main branch: v103
View latest version
README.md

GitHub Issues to Clay

Extract GitHub issue authors' emails and send them to Clay for enrichment.

This API fetches all issues from a GitHub repository, extracts unique author usernames, finds their email addresses, and sends the data to Clay for further enrichment.

Setup

  1. Remix this val

  2. Set GITHUB_TOKEN in this val's Environment variables on the left sidebar

    • GITHUB_TOKEN = GitHub personal access token with repo access
  3. Set up a Clay workbook with both a Webhook column (or use this template)

  4. Copy your Clay workbook's Webhook column URL

    CleanShot 2025-08-08 at 13.23.47@2x.png

  5. Set that as CLAY_WEBHOOK_URL in this val's Environment variables on the left sidebar

  6. Copy main.tsx's HTTP endpoint URL CleanShot 2025-08-08 at 16.22.25@2x 1.png

  7. In test.ts , replace "https://ghissuestoclay.val.run/" with your URL

  8. Try it out: click Run in test.ts

Input Parameters

  • githubRepo - Required - Repository in format "owner/repo"
  • clayWebhookUrl - Required - Your Clay webhook URL for data enrichment
  • githubToken - Required - GitHub Personal Access Token
  • limit - Optional - Maximum number of unique authors to process (default: 10)

Data Sent to Clay

Each record sent to Clay contains:

  • github_username - The GitHub username
  • email - The email address found for the user
  • source_repo - The repository the issues came from
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.