Questions tagged [github-api]

An API used to retrieve information about data on GitHub.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Trying to fetch an image via GitHub api [duplicate]

I'm trying to fetch an image via the GitHub api and it consistently shows as a placeholder image. My component looks like this: import React, { useEffect } from "react"; import { useState } ...
Jey the Count's user avatar
0 votes
1 answer
12 views

Is there an API to filter out list of PRs from a folder within a mono repository in GitHub?

I have a main repository “mainrepo” and it has multiple folders (one of them is “subfolder3” but I need a list of PRs within a folder inside the main repository. I tried using GET /repos/{owner}/{repo}...
user22671656's user avatar
0 votes
0 answers
21 views

Not able to create organisation repository using a fine grained token

I have created a fine grained token and set the organisation as owner of the token, also included the Repositories: Administration permission to the token. After getting approval from the organisation ...
Levi's user avatar
  • 79
0 votes
0 answers
7 views

Is it possible to customize a repo's creation date in Github?

I'm trying to push some old projects of mine to Github, and I'd like to associate them with some approximate creation dates. I know how to backdate the commits, but it is driving me crazy that I can't ...
A.S.'s user avatar
  • 111
0 votes
0 answers
20 views

upload a folder to git via powershell while maintaining folder structure

I am trying to write a script that uploads a folder to GitHub while preserving its directory structure. Instead of uploading the folder's files to a single repository, I want to create new ...
SZDnoah's user avatar
0 votes
0 answers
9 views

Cancel workflows before archiving repo in GitHub

Aim: I want to archive repo Problem: from time to time, thera are active actions and they can stuck and endlessly keep running after archivation. Found solution: Steps GitHub takes to cancel a ...
Wit's user avatar
  • 3
1 vote
2 answers
144 views
+50

Create reviewers for environments in github repository

The below powershell works and helps create environment test_mont under repo variables # Define the owner, repository, environment, token, and reviewer variables $owner = "knowyrtech" # The ...
Ashar's user avatar
  • 2,922
-1 votes
0 answers
24 views

When creating a POST request in the insomnia program, the error "Not found"

I need to create POST requests in the insomnia program using the endpoint /repos/{owner}/{repo}/contents/{path}, but after entering all the data, it gives a "Not found" error, how to fix it? ...
Riw's user avatar
  • 1
0 votes
0 answers
21 views

Getting "Resource not accessible by integration" when accessing GitHub environment secrets via API

I'm trying to list environment secrets in my GitHub repository using the GitHub REST API. However, I consistently receive the following error: Reference Environment Secrets: { "message": &...
Mojtaba Khooryani's user avatar
2 votes
0 answers
32 views

Github API to upload images

how to add image to GitHub using GitHub API ? ( using GitHub API to remotely upload the images ) i tried the code below and it is working absolutely fine url = new URL("https://api.github.com/...
Daksh Rawal's user avatar
0 votes
1 answer
16 views

How to get scopes info from a GitHub OAuth access token to perform incremental authorization

When performing authorization with the GitHub OAuth API, users are redirected back to a certain application with a temporary code parameter The temporary code parameter can be exchanged for a access ...
Laura Beatris's user avatar
0 votes
0 answers
12 views

Using String Interpolation and Fetch() to Make a Search Form Communicate with an API [duplicate]

I have an issue with my program where I'm trying to use the github api to get github user information by searching for the users name. Some of the errors I'm getting repeatedly include: Access to ...
Hamza 's user avatar
0 votes
0 answers
21 views

Unable to re-request a check run using the GitHub API

So I list all check runs from a specific ref using, and select the first one, then ask for a re-run (the check run failed): const result = await octokit.checks.listForRef({ owner: organization....
acoudouy's user avatar
  • 160
0 votes
0 answers
22 views

Getting not authorized error in Eclipse while trying to clone a Git repository using GitHub

I have created a Java project in my Eclipse and I want to upload that to GitHub. I created a new repository in GitHub. I copied the repository URL and, using Clone Git Repository, I tried to upload my ...
Pazhani_Kumar's user avatar
0 votes
0 answers
20 views

Automate the workflow between user input in webpage UI and GitHub Codespaces VScode terminal

There is a CLI tool(https://www.npmjs.com/package/mcdev/v/3.0.0) which I use regularly and it is a very useful tool. This tool is only available as CLI and does not have any UI . So far I was using ...
New Developer's user avatar
1 vote
1 answer
63 views

Can we set default values for inputs on demand in your workflow file set for Github Issue

Below is my github actions ISSUE_TEMPLATE that seeks input from user. name: GH Action details description: GH Issue form title: "GH Action details" assignees: - my-devops labels: - ...
Ashar's user avatar
  • 2,922
0 votes
0 answers
12 views

Is there a way to retrieve all events where a admin of an Github repo bypassed a branch protection rule, of any rule at all?

I'm currently working on auditing the administrative activities within a specific GitHub repository, particularly any instances where branch protection rules might have been bypassed. Is there a ...
guilhermecgs's user avatar
  • 2,921
0 votes
1 answer
35 views

Is there a way to add comment(multiple-line) to GitHub PR using CURL command

I am trying put comment to GitHub PR using curl command but as my comment has multiple lines, it is failing to do so and throwing error: "message": "Problems parsing JSON", Here ...
uni's user avatar
  • 170
-2 votes
1 answer
18 views

Using GraphQL to list all tags of a FFmpeg and search for releases

I'm trying to use GraphQL to get all tags of FFmpeg and later get the downloadUrl of each tag release. In the GraphQL Explorer, I used the following query: query { repository(owner: "FFmpeg&...
user22555810's user avatar
1 vote
1 answer
39 views

Trouble Fetching GitHub Pull Requests by Date Range in Java Using OkHttp

I'm working on a Java program to retrieve pull requests from a GitHub repository within a specified date range using OkHttp and the GitHub API. However, I'm encountering issues where the code doesn't ...
Lungelo Thabethe's user avatar
2 votes
0 answers
24 views

Github API Etags are invalidated because token has expired and causing spike in API limit

Context about setup: We are working with GitHub Apps, the App hook is running Gunicorn workers using flask, and Jenkins/Airflow or other services running checks in background that are resource ...
Rishav Sidhu's user avatar
0 votes
1 answer
11 views

Getting recent changes for generating release notes on github enterprise

I'm on a older github enterprise server (3.2). Developer usually commit to develop, but some hot fixes can happen on master as well. Each time when we deploy, we generate a github release. Up until ...
Christian's user avatar
  • 6,981
0 votes
1 answer
23 views

Use GitHub to change visibility of ghcr.io package

I have published a number of Docker images to ghcr.io. They are all private. I want to make them public. I do not want to do this by hand because 1) there are 100+ and 2) As I add more images I want ...
mkst's user avatar
  • 565
0 votes
0 answers
25 views

How do I fix my docker-compose.yml file that is unable to load schema from 'https://raw.githubusercontent.com/compose-spec/compose-spec/

I am fairly new to docker. I use the latest versions of Python, Django, and Docker. I have been working on this project for two weeks now, I already created the docker-compose.yml file and have built ...
theocode's user avatar
1 vote
1 answer
39 views

How to access a private repository using a GitHub App with OAuth?

My goal is to be able to list and access private repositories of a user. For this, I've set up a GitHub App to perform some tasks as an app. I have also enabled the OAuth capability of my app. I want ...
Daniel Stephens's user avatar
1 vote
1 answer
26 views

Using Github Actions REST API, how to correlate reruns to the original run similar to the UI?

I'm trying to get all recent runs in my repo on a specific branch. I then want to be able to correlate them. Example Lets say I have 5 runs(01,02,03,04,05), 01-03 are fresh runs, 04 is rerun of 01 and ...
EcksDy's user avatar
  • 1,299
0 votes
1 answer
29 views

How to obtain information about the IP address of the user who made commit to the github repository

It it possible to obtain the IP address of the user who made a commit in the github repo? I'm trying the commits API call, but it doesn't contain any information about that. curl --request GET --url &...
DmitrySemenov's user avatar
0 votes
0 answers
33 views

Electron auto-updater error: Unable to find latest version on GitHub (ERR_SSL_PROTOCOL_ERROR)

I've been trying to pass some configuration for 2 days for this error to stop happening, I really appreciate it if anyone has any idea or possible solution... I am developing an application that will ...
Brayan Vinicius Jordan's user avatar
0 votes
0 answers
22 views

How can a user select databricks job id's for job migration through github actions

I'm working on a Github actions workflow where databricks jobs are supposed to migrated one environment to higer environment. During this process, we make api call to the databricks workspace and list ...
monika azure's user avatar
0 votes
0 answers
48 views

Authenticate to Github from an AzureDevOps GitHub-InstallationToken service connection

Azure DevOps online. I have a GitHub service connection of type "GitHub-InstallationToken". I'm trying to use this endpoint to authenticate to GitHub from a custom release task. Unlike ...
Seva Alekseyev's user avatar
0 votes
0 answers
17 views

i want to call a github rest api endpoint from within ado pipelines task

i want to call a github rest api endpoint from within ado pipelines task. but its failing with 'bad credentials' error. How can i go about resolving this - task: Bash@3 inputs: ...
user22503298's user avatar
-1 votes
0 answers
14 views

Github npm registry

I've a repostiry on github, the owner of the repo is an organization. I've created a package form it, when I try to download it, it gives me an error saying I've the npmrc file setup and I'm using a ...
Hamza Abbas's user avatar
0 votes
1 answer
40 views

Save a base64 Data URL of an image as image using Github API in javascript

I have a base64 Data URL of a webp image in the format data:image/webp;base64,R0lGODdhAQABAPAAAP8AAAAAACwAAAAAAQABAAACAkQBADs= I want to commit it to github using the API in the format of a webp image....
learntheropes's user avatar
0 votes
0 answers
34 views

Using Python request with GitHub API fails with Bad credentials

I been trying to generate a Token for self-hosted machines using the GitHub-API for my Org. Using Curl it works as expected from GitHubs doc curl -L \ -X POST \ -H "Accept: application/vnd....
Tomas Berger's user avatar
0 votes
0 answers
14 views

Missing PR from GitHub API

I'm trying to find the PR associated with a commit in node-saml/node-saml. I know there is an associated PR because I worked on it, and the description of the commit clearly says it was a merged pull ...
cjbarth's user avatar
  • 4,211
0 votes
0 answers
21 views

Octokit PUT request to replace topics from GitHub actions is throwing 403

I am trying to update the GitHub repo topics from GitHub workflow. I am using node.js file and Ocktokit as follows github-action - name: touchup env: TOKEN: ${{ secrets.GITHUB_TOKEN }} ...
Mayank Kumar Chaudhari's user avatar
0 votes
1 answer
46 views

Why would the github API return empty list of projects for repo/owner?

When I'm calling the github API through the Octokit npm package or by a simple rest call I'll get an empty array back but a 200 success. The repo in question is private and the projects in there are ...
FelixD's user avatar
  • 75
0 votes
0 answers
32 views

Triggering github actions workflow from JIRA Board

I have GitHub actions pipeline i want to execute that pipeline from JIRA board whenever status change or when we comment on it. I found that GitHub providing repository dispatch event with that we can ...
Srikanth 's user avatar
0 votes
0 answers
38 views

How to remove the alerts of dependabot under security tab in github

enter image description here In github under the security tab there is a Dependabot column . There are more security alerts in that column. In order to fix the alerts we need to increase the version ...
Keerthan's user avatar
1 vote
1 answer
78 views

How to generate a JWT token for a GitHub App using client id and client secret using bash

I've created a GitHub application and have the application's client-secret and client-id. I'd like to be able to use this new application to simply authenticate to GitHub. In order to do so, I need to ...
Vismark Juarez's user avatar
3 votes
1 answer
96 views

How to compare Github API hash with a local file hash?

I'm trying to compare the hash of local files with the hash from the GitHub API; I have created test.txt and uploaded it to my repo, when I call compute_sha1_hash on test.txt: ...
Jabu's user avatar
  • 63
0 votes
0 answers
23 views

Create a review comment for a PR with Github api with error: "pull_request_review_thread.end_commit_oid is not part of the pull request"

I try to create a review comment for a pull request with Github api in Github action but I get this error: "pull_request_review_thread.end_commit_oid is not part of the pull request" URL: ...
Mohammad Bazrafkan's user avatar
0 votes
1 answer
40 views

How to get the download link of all files in a repo?

With the following command, I'm able to get download_url for the files on my GitHub repo, but it doesn't include files that are inside folders: curl -H "Authorization: token ghp_..." -H &...
Jabu's user avatar
  • 63
0 votes
0 answers
20 views

Access github Api without user Authentication

I have usecase to check my remote github repo has latest release tag from my terminal tool but the tool doesn't need any user authentication for github access. I don't want to store the pat token from ...
Amalan T's user avatar
0 votes
0 answers
13 views

Extract pull requests from Github API from specific date

I need a github API pull request URL that extracts pulls from a specific date period. I could extract complete data but i only need filtered data based on updated_at field (tried filtering with ...
user avatar
0 votes
1 answer
26 views

Download the latest relase file with token from private repo

I want to download files from my private repository using python. What should I do? I tried something like this, but it doesn't work. I also allowed everything in the token for testing, I get error ...
Teccno's user avatar
  • 1
-2 votes
1 answer
32 views

How to list all Python repositories created after September 2022 based on the number of stars? [closed]

I'm looking for a way to fetch a list of all Python repositories on GitHub that were created after September 2022, sorted by their star count. I would like to obtain this list programmatically, ...
Exploring's user avatar
  • 2,535
0 votes
0 answers
17 views

Is there a Github API to list issues with logical OR of labels?

The API call to list issues by labels by default return issues with all mentioned labels included, ie. logical AND of labels. For example: curl https://api.github.com/orgs/ORG/issues?labels=bug,ui,@...
Emmanuel Jojy's user avatar
0 votes
0 answers
36 views

Quarkus: Implementing a resource server with external authorization server

I am currently building a REST API for a web app that I'd like to put behind some authentication to ensure that the user only sees what they are supposed to see (e.g. their organization). However, I ...
Michael Burgstaller's user avatar
2 votes
2 answers
41 views

Github API: Getting different result every call. Trying to pull the most starred python repositories

I am a newer programmer and I am trying to call the Github API to get a list of the most starred python projects, ordered by number of stars. Every time I run the program, rerunning the request, I am ...
EscA's user avatar
  • 21

1
2 3 4 5
75