Search

252 results found for api.github.com (1362ms)

Code
212

const perPage = Math.min(count, 100); // GitHub API max per page
const url = `https://api.github.com/repos/${repoPath}/stargazers?per_page=${perPage}`;
console.log(`Fetching stargazers from: ${url}`);
}
const url = `https://api.github.com/users/${username}`;
const response = await fetch(url, { headers });
// Step 1: Get user's most recently updated repositories
const reposApiCall = {
url: `https://api.github.com/users/${username}/repos?per_page=10&sort=pushed&direction=desc`
headers: { ...headers },
timestamp: new Date().toISOString()
const commitsApiCall = {
url: `https://api.github.com/repos/${repo.full_name}/commits?per_page=10&author=${user
headers: { ...headers },
timestamp: new Date().toISOString()
const response = await fetch(
`https://api.github.com/users/${username}/events/public?per_page=100`,
{ headers },
);
// Step 1: Get user's most recently updated repositories
const reposResponse = await fetch(
`https://api.github.com/users/${username}/repos?per_page=10&sort=pushed&direction=desc`,
{ headers },
);
const commitsResponse = await fetch(
`https://api.github.com/repos/${repo.full_name}/commits?per_page=10&author=${username}`,
{ headers },
);
while (true) {
const response = await fetch(
`https://api.github.com/repos/${repo}/issues?per_page=100&page=${currentPage}&state=open`
)
export async function getUserEmailFromCommits(username: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author:${username}`);
url.searchParams.set("sort", "author-date");
export async function getUserEmail(username: string) {
// Try looking up their email directly but most people don't have this set up
const response = await fetch(`https://api.github.com/users/${username}`);
const data = await response.json();
if (data.email) return data.email;
export async function getGithubUsernameFromCommits(email: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author-email:${email}`);
url.searchParams.set("sort", "author-date");
export async function getPopularGithubRepo(username: string) {
const response = await fetch(
`https://api.github.com/users/${username}/repos?sort=updated&per_page=100`,
);
const repos = await response.json();
// Get PR details
const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}`;
let response;
// Proceed with merge
const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}/merge`;
const response = await fetch(url, {
try {
const url = `https://api.github.com/repos/${repo}/pulls/${prNumber}`;
const response = await fetch(url, {
}
const url = `https://api.github.com/repos/${repo}/issues/${issueNumber}`;
const response = await fetch(url, {
try {
const url = `https://api.github.com/repos/${repo}/issues/${prNumber}/labels`;
const response = await fetch(url, {
try {
const url = `https://api.github.com/repos/${repo}/issues/${prNumber}/assignees`;
const response = await fetch(url, {
export async function getUserEmailFromCommits(username: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author:${username}`);
url.searchParams.set("sort", "author-date");
export async function getUserEmail(username: string) {
// Try looking up their email directly but most people don't have this set up
const response = await fetch(`https://api.github.com/users/${username}`);
const data = await response.json();
if (data.email) return data.email;
export async function getGithubUsernameFromCommits(email: string) {
const url = new URL("https://api.github.com/search/commits");
url.searchParams.set("q", `author-email:${email}`);
url.searchParams.set("sort", "author-date");
export async function getPopularGithubRepo(username: string) {
const response = await fetch(
`https://api.github.com/users/${username}/repos?sort=updated&per_page=100`,
);
const repos = await response.json();

Vals

No vals found

Users

No users found

Docs

40
View more
Create a Slack app. Section titled “Step 2: Create a Slack app” Go to Slack API and create a new app From Scratch. Name your app and select your workspace.
in ChatGPT Ask questions about this page. On Nov 1, 2024, we announced safer default API scopes for vals, which don’t include the val:write scope. Some users were not included
from any domain (*). Support common HTTP methods without additional configuration. Work with standard web APIs and frameworks. Handle preflight requests automatically. This default configuration is beneficial for development, allowing
"Hi", headers: { "X-Custom-Header": "xxx", }, }). ); This is also documented in our REST API, and supported in the SDK. Limitations. Section titled “Limitations” std/email is powered internally by
file: import { min } from "npm:lodash-es@4"; We highly recommend pinning imported modules because their APIs can change between versions and unexpectedly break your code. Lockfiles. Section titled “Lockfiles” When
doesn’t protect any data. It merely makes it impossible for anyone to trigger this public API endpoint without the password. The worst that could happen if this password leaks is
from "https://esm.town/v/stevekrouse/discordWebhook"; import Stripe from "npm:stripe"; const stripe = new Stripe( Deno.env.get("stripe_sk_customer_readonly") as string, { apiVersion: "2020-08-27", } ); function getStripeCustomer(customerId: string) { return stripe.customers.retrieve(customerId); } export let newStripeEvent =
found. In-scope domains. Section titled “In-scope domains” Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program. Out of
"https://esm.town/v/stevekrouse/fetchJSON?v=41"; export const getGithubStars = async (username: string) => { const user = await fetchJSON( `https://api.github.com/users/${username}`, ); let totalStars = 0; // Paginate the max number of pages per request.
url from req.url. // This is a no-op if nothing's changed. if (!isEndpointSet) { await bot.api.setWebhook(req.url, { secret_token: SECRET_TOKEN, }); isEndpointSet = true; } if (req.method === "POST") { return