Search

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

Code
212

console.log("Reading processed posts from Gist...");
const response = await axios.get(
`https://api.github.com/gists/${GIST_CONFIG.gistId}`,
{
headers: {
const content = JSON.stringify([...processedPosts]);
await axios.patch(
`https://api.github.com/gists/${GIST_CONFIG.gistId}`,
{
files: {
}
const url = `https://api.github.com/graphql`;
const query = `
query {
// GitHub search API to find trending repositories
const query = encodeURIComponent("language:javascript language:typescript topic:react create
const response = await fetch(`https://api.github.com/search/repositories?q=${query}&sort=sta
headers: {
"Accept": "application/vnd.github.v3+json",
): Promise<GitHubSearchResponse> {
const url =
`https://api.github.com/search/repositories?q=topic:${topic}&sort=stars&order=desc&page=${pa
const headers: HeadersInit = {
// GitHub API client
export class GitHubClient {
private baseUrl = 'https://api.github.com';
private token: string;
while (hasMorePages) {
const url =
`https://api.github.com/repos/${owner}/${repo}/commits?since=${sinceISO}&until=${untilISO}
console.log(`Fetching page ${page}...`);
prNumber: number,
): Promise<GitHubPR | null> {
const url = `https://api.github.com/repos/${owner}/${repo}/pulls/${prNumber}`;
const response = await fetch(url, {
commitSha: string,
): Promise<GitHubPR[]> {
const url = `https://api.github.com/repos/${owner}/${repo}/commits/${commitSha}/pulls`;
const response = await fetch(url, {
// If we have a PR number, check for issues closed by the PR
if (prNumber) {
const prIssuesUrl = `https://api.github.com/repos/${owner}/${repo}/pulls/${prNumber}/commits
const prResponse = await fetch(prIssuesUrl, {
// Also check the timeline of the PR to find linked issues
if (prNumber) {
const timelineUrl = `https://api.github.com/repos/${owner}/${repo}/issues/${prNumber}/timeli
const timelineResponse = await fetch(timelineUrl, {
// 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, {

Vals

No vals found

Users

No users found

Docs

40
View more
No docs found