A JavaScript toolkit for the GitHub API.
Questions tagged [octokit-js]
82 questions
0
votes
0 answers
Is there anyway to get the current state of job within the steps in github actions?
I have been working on the github actions and I need to send the message about the reason of failure on the external webhook. I tried to use the octokit rest js in the nodejs action, but Since the job isn't completed, I am unable to fetch the reason…

Chandan Gupta
- 452
- 4
- 15
0
votes
1 answer
Reject Pull Request creation request if PR message body validation fails
Is there a way we can reject the Pull Request creation if certain conditions fail ?
I am developing a GitHub App in nodejs and probot and would like to reject the pull request creation when the developer clicks on the "Create pull request" button if…

Asif Kamran Malick
- 2,409
- 3
- 25
- 47
0
votes
1 answer
How to download a github release by code, not by a CLI
I am making a bot that can grab a source.zip / source.targz from Github, then implement it into my app and new changes are applied, but I have not found a way to download a release because the @Octokit/Rest module I'm using only gets the release.…

SomePerson
- 1,171
- 4
- 16
- 45
0
votes
1 answer
How to use `request.js` by Octokit on browser?
I am a beginner with JavaScript. Even though I am directly running the examples on the readme, it doesn't work for me.
Here is a simple case where I try to get the number of my (user's) repositories.
I have the following html file (sans the api…

jar
- 2,646
- 1
- 22
- 47
0
votes
1 answer
NodeJS logging into Github with Octokit returns bad credentials
I am working on a project that is using Octokit to return data from the Github API. It is returning a 401 Bad Credentials and I am unsure of how to debug the problem.
In the documentation it says to separate the private key lines with '\n' and paste…

Robert Harbison
- 71
- 2
- 8
0
votes
1 answer
Is there a way to list a personal access token's scopes using Octokit/rest.js?
We use Octokit to automate some workflows at work, but most of the time the issues we have is that the users haven't set-up their personal access token correctly, with the right scopes.
We would like to have a check before the app runs, to check if…

Filipe
- 1
- 1
0
votes
1 answer
Not able to fetch user info using token : Octokit
I have created a chrome plugin to fetch the list of user, I am using Octokit
chrome.runtime.onMessage.addListener(getDataFromPopup);
function getDataFromPopup(message){
const apiUrl = message.apiUrl;
const apiToken = message.apiToken;
…

Nagendra Singh
- 577
- 1
- 7
- 24