import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { Octokit } from "https://cdn.skypack.dev/@octokit/rest";
/*
@param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"github">,
owner: string,
repo: string,
) {
const octokit = new Octokit({ auth: gh_auth.token });
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by adam186 609 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
/*
@param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"github">,
owner: string,
repo: string,
) {
const octokit = new Octokit({ auth: gh_auth.token });
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by adam186 609 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
/*
@param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"github">,
owner: string,
repo: string,
) {
const octokit = new Octokit(gh_auth);
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by adam186 609 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/index.ts";
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
/*
@param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"github">,
owner: string,
repo: string,
) {
const octokit = new Octokit(gh_auth);
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by adam186 611 days ago
import * as wmill from "https://deno.land/x/windmill@v1.12.0/index.ts";
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
/*
@param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"github">,
owner: string,
repo: string,
) {
const octokit = new Octokit(gh_auth);
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by adam186 646 days ago
import * as wmill from "https://deno.land/x/windmill@v1.12.0/index.ts";
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
/*
@param: {wmill.Resource<"github">} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"github">,
owner: string,
repo: string,
) {
const octokit = new Octokit(gh_auth);
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by rossmccrann 860 days ago
import * as wmill from "https://deno.land/x/windmill@v1.12.0/index.ts";
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
/*
@param: {wmill.Resource} gh_auth - Resource containing Github Auth API Key
example:
{
auth: github_api_key
}
*/
export async function main(
gh_auth: wmill.Resource<"c_github_auth">,
owner: string,
repo: string,
) {
const octokit = new Octokit(gh_auth);
const response = await octokit.rest.repos.get({
owner,
repo,
});
var repo_list = {};
const arr = response.data;
repo_list[arr.name] = arr.stargazers_count;
return repo_list;
}
Submitted by rossmccrann 890 days ago