Closed sayanee closed 8 years ago
Is it working now? 😍
@winston hhmmm doesn't seem to provide an API to search by location of organisations https://developer.github.com/v3/orgs/. I'm thinking whether a static list of organisations is good. Need to investigate a little more. :thought_balloon:
eh? how come i closed it? sorry it was wrongly closed :sob:
eh? how come i closed it? sorry it was wrongly closed
Ah haha I thought you solved it. Actually I was trying to find the code in webuild that does this. Can you point me to the file?
thank you @winston!
The current code that searches for repositories based on some criteria is here
We also used to have static list of users features and that feature could be brought back to list organisations this time. Here's the full code at that point of history, the static file and the relevant function that adds the static list of users to all users.
The functions goes like this:
function insertWhiteList(searchedUsers,whitelistUsers){
whitelistUsers.forEach(function(whitelistUser) {
var found = searchedUsers.filter(function(searchedUser){
return searchedUser.login === whitelistUser.login;
});
if (found.length === 0) {
//console.log("adding.. ", whitelistUser.login);
searchedUsers.push(whitelistUser);
}
});
return searchedUsers;
}
Does this help? https://api.github.com/search/users?q=type:org+location:Singapore
:heart_eyes: yeah we found it!! Awesome will query it with your API query now. Dynamic API query is always better for magical discovery than static.
:bow:
I am actually interested to see which are the local companies that are actively giving back to open source (whatever language it is). They deserve a medal. :trophy:
LOL Yes more medals and chocolates :candy:
:shipit:
:chocolate_bar:
Before:
After:
type
which can be a User
or Organization
:clap: :heart_eyes:
:chocolate_bar: :ship: :shipit: :candy: :trophy: Shipped to production :tada:
E.g. Location is
Singapore
, Star >50
https://github.com/jollygoodcode/dasherizecc @winston