Github Search API - exclude repositories with language:null - github-api

I'm trying to get repositories from Github that use a language. Any repository with language:null must me excluded.
Is there a way to do this ?
Here's why've tried but not working
https://api.github.com/search/repositories?q=stars:>=500+-language:null&sort=stars&order=desc&per_page=100

Related

How do you separate jekyll site content and code into separate branches?

Hi I am using jekyll hosted on github oages and I would like to separate the content and code of my site into separate branches so:
It is more organised.
If I want to change some code in the site experimentally I can create A new branch based of the code branch and I don't have to worry about updating its contents when I create new blogs in my main code branch.
I have done some research someone mentioned using gem files to store the code but creating a jekyll theme and distributing it with ruby gem seems a daunting task since I don't even know the gem programming language.
Any thoughts? And thanks in advance.
What you want is a CI solution.
Github Action should be a good choice to you since you are using Github Pages.
To simplify the process, you could leverage jekyll-deploy-action.
It also makes the plugins those are not on the Github Safe List works on Github Pages.
To achieve this, just follow the usage doc.
Should have said this earlier but I found a solution to the problem you can actually set a them variable in you _config.yml so it pilots to a GitHub repo
To seperate the (markdown) content from the (template) code you should use/create a theme.

How to resore Github repo from archive using Octokit

I have archive from github migration API. How can I restore it in different repo using Nodejs and Octokit?
Apparently GitHub's REST API does not support 'un-archiving' repositories but, apparently it is possible to do it with GraphQL API as pointed in this post in GitHub Community.
Remember Octokit has a GraphQL API client for browsers and Node
About unarchiving it in a different repository I'm not sure if it would be possible. Maybe you could take a look into this Octoherd copy-repository utility (by #gr2m, the creator of Octokit)

Looking for source code for Crafter Deployer 2.5.3

I have an instance of crafter running with crafter-studio-publishing-receiver-2.5.3-aio.jar, I need to locate the source code for the jar file.
Is this the right repository
What is the significance of the word "legacy" in the name of the project?
You can find the source code here:
https://github.com/craftercms/legacy-deployer
The specific version can be found by checking the manifest of the jar.
- unzip the jar
- open ./META-INF/MANIFEST.MF
- locate the property Implementation-Build: 87c84d58313b2bcbdca306de69758320aee174d0
This value can be placed in github to get the exact code you are looking for.
Example:
https://github.com/craftercms/legacy-deployer/blob/87c84d58313b2bcbdca306de69758320aee174d0/cstudio-publishing-receiver-zip/pom.xml
The reason we renamed the project "legacy-deployer" in github is that with Crafter 3.x we are moving to a new deployment system. Without going too deep on this: The new system is based on Git pulls, as you can imagine, this approach has many benefits. It will support the same concepts (callbacks etc) as the now "legacy" deployer.

download the code of a particular tag of a git repo using Node

I want to download the source code of a private git repo hosted on github for only a particular tag. As far as I can tell there's an option of using git clone --depth=1. I suppose this is the answer on how to use tags with this.
Now I want to do it in a Node.js script. I checked the NodeGit package which uses libgit2. The problem is libgit2 doesn't support passing depth parameter.
So I am stuck with the last option of using child-process which I don't want to do, as it looks like a workaround. Is there any other way of achieving this?

Query for Namespace Projects via GitLab API

I would like to query the GitLab API for projects contained within a namespace. From the API documentation it looks like there is not a way to do this. Anyone have a workaround?
I am using:
https://gitlab/api/v3/projects/all?private_token={private_token}
and tried using the search parameter but it seems that is just for project names. I suppose I could put a prefix or suffix on each project name but I really don't want to. The projects API documentation is located # https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md
If it is not possible maybe a feature request is in order?
For gitLab API V4 try this http://gitlab.yourOrg.com/api/v4/groups/your_namespace/projects?per_page=100&page=1&private_token={private_token}
It seems that you are leaving out the Groups (namespace) part from the URL.

Resources