Back to packages list

Vals using @octokit/core

Description from the NPM package:
Extendable client for GitHub's REST & GraphQL APIs
andy_blum avatar
createIssue
@andy_blum
script
Used to post issues back to github from website's UI for non-technical users.
adisbanda avatar
githubWebhookApproveSmallPRs
@adisbanda
http
An interactive, runnable TypeScript val by adisbanda
karfau avatar
githubWebhookApproveDependencyPRs
@karfau
script
A webhook to approve dependency PRs created by bots The webhook can be configured on the repo or on the org level it needs to have the Payload URL set to the "web endpoint" of the val ( ... -> Endpoints -> Copy web endpoint) it needs to POST a json payload it needs to receive the workflow_runs events it needs to have the webhookSecret configured to the same value as in val town secrets (line 7) (else response is 401: Not verified ) It will only approve if all of the following conditions are met: the event action is completed , the workflow_run.conclusion has to be success , and the event is related to exactly one pull request (else response is 202: Ignored (event) ) the PR is authored authored by one of the users listed in allowedAuthors (line 5) (else response is 202: Ignored (pr author) ) the githubApiToken configured in line 9 needs to have repo access to the related repository (else response is 50x: some error message ) a branch protection has to be configured that requires at least one review approval and at least one status check (else response is 202: Ignored (branch protection) ) the PR has auto-merge enabled (else response is 202: Ignored (pr status) ) the PR has any failing status checks (even if not required) (else response is 202: Ignored (pr checks) ) the current value for dryRun is false (line 3) (else response is 200: Would have been approved (dryRun) ) If it approves the PR, it leaves a comment pointing to the website of this val.
maas avatar
importGists
@maas
script
Imports Gists to Val Town Import your TypeScript and JavaScript to Val Town Authentication This function requires two keys: one from Github to get your gists, and one from Val Town to make the vals in your account: Github token: https://github.com/settings/tokens Val Town key: https://www.val.town/settings/api Usage You can use this function by calling it and passing your keys like so: @maas.importGists({ githubToken: @me.secrets.githubGists, valTownKey: @me.secrets.valtown, }); Example usage: https://www.val.town/v/maas.untitled_harlequinCrawdad
stevekrouse avatar
importGists
@stevekrouse
script
Imports Gists to Val Town Import your TypeScript and JavaScript to Val Town Authentication This function requires two keys: one from Github to get your gists, and one from Val Town to make the vals in your account: Github token: https://github.com/settings/tokens Val Town key: https://www.val.town/settings/api Usage You can use this function by calling it and passing your keys like so: @stevekrouse.importGists({ githubToken: @me.secrets.githubGists, valTownKey: @me.secrets.valtown, }); Example usage: https://www.val.town/v/stevekrouse.untitled_redAardvark Credits This val was almost entirely made by @maas . I just forked it and fixed a couple bugs.
augustohp avatar
ghAddAssigneesToAssignable
@augustohp
script
An interactive, runnable TypeScript val by augustohp
augustohp avatar
ghIssueFromNodeId
@augustohp
script
An interactive, runnable TypeScript val by augustohp
augustohp avatar
ghProjectColumnOfIssue
@augustohp
script
An interactive, runnable TypeScript val by augustohp
augustohp avatar
ghProjectFieldsFromIssue
@augustohp
script
* Given an issue (GraphQL's Node ID), lists all available * "fields" (from Projects V2) attached to it - without their * values. * * @example ghProjectFieldsFromIssue("I_kwDOJYe5Es5qSNa2", 2, "github_pat_yadayada")
onemanwenttomow avatar
getGithubTeamCommitHistories
@onemanwenttomow
script
An interactive, runnable TypeScript val by onemanwenttomow
onemanwenttomow avatar
getGithubUsersByTeam
@onemanwenttomow
script
An interactive, runnable TypeScript val by onemanwenttomow
vtdocs avatar
getGithubUserViaOctokit
@vtdocs
script
An interactive, runnable TypeScript val by vtdocs
vtdocs avatar
octokitExample
@vtdocs
script
An interactive, runnable TypeScript val by vtdocs
augustohp avatar
ghOrgRepos
@augustohp
script
An interactive, runnable TypeScript val by augustohp
1
Next