Перейти к содержимому

Как искать проекты на github

  • автор:

GitHub Search Tips – How to Search Issues, Repos, and More Effectively on GitHub

Hillary Nyakundi

Hillary Nyakundi

GitHub Search Tips – How to Search Issues, Repos, and More Effectively on GitHub

When I was a beginner to open-source contributions, one of my greatest challenge was finding the correct projects/issues to work on.

For the longest time I relied on resources curated by different writers on the internet (which were good, by the way). But I always wanted to find a way around this problem – a way I could search for and track projects that were right for my skill set.

Let’s agree on one thing: unlike Google, searching GitHub is not easy. But as a developer, chances are that you’ll interacting with GitHub or Gitlab on a daily basis.

Now the question isn’t what you use these version control systems for, but how you are using them. Just like mastering Google search skills is essential for any regular internet user, I believe it’s also essential for developers to learn how to effectively search GitHub.

In this article we are going to take a look at different techniques you can use to correctly search GitHub. You’ll learn how to search through:

  • Issues and Pull Requests
  • Repositories
  • Users
  • Topics

And more. Let’s get started.

GitHub Search Queries

In order to find detailed information about something on the internet, you need to have the correct searching skills. It’s not any different with GitHub – to find detailed info you can utilize common filter, sort, and searching techniques to easily find specific issues and pull requests of a given project.

Even though you have multiple resources listed on the internet for different projects, the main problem comes in when you want to do a search by yourself. How do you get started? Which keywords should you use to find the correct results?

Most maintainers tend to label their projects with issues, which makes it easier for contributors to find suitable projects. Listed below are some of the tricks that might help you out when you are using GitHub.

How to Search Issues and Pull Requests on GitHub

One of the most common ways of finding projects to contribute to is by searching through issues and related PRs. Here are some tricks you can use to easily find reliable answers:

  1. is:issue is:open label:beginner — This particular query will list all projects with issues that are open and labeled beginner .
  2. is:issue is:open label:easy — This will list all open issues that are labeled easy .
  3. is:issue is:open label:first-timers-only — This lists all open issues that welcome first-timer contributions.
  4. is:issue is:open label:good-first-bug — This lists projects with open issues labeled good-first-bug , to attract contributors to work on them.
  5. is:issue is:open label:»good first issue» — This will list all open issues with the label good first issue , meaning it is good for place for beginners to get started.
  6. is:issue is:open label:starter — This lists all open issues from across GitHub that are labeled starte r.
  7. is:issue is:open label:up-for-grabs — This lists open issues that are ready to be worked on if you have the necessary skills.
  8. no:project type:issue is:open — This will list all open issues that are not assigned to a specific project.
  9. no:milestone type:issue is:open — Many times, projects are tracked with milestones. But if you want to find issues that are not tracked, this search query will list those projects for you.
  10. no:label type:issue is:open — This lists all open issues that are not labeled.
  11. is:issue is:open no:assignee — This shows all open issues that have not yet been assigned to a person.

How to Search Repositories

By default, to make a search you will type the repository name in the search bar and voilà! You get some search results.

But the chances of you landing on the exact repo you intended are very low.

Let’s look at some ways you can narrow down your search:

How to Find by Name, Description/README

A thing to note when you search by Name and description of the README file is that your search phrase should begin with the in qualifier. This makes it possible to search «inside» what you are looking for.

Example

Using in:name . Let’s say you are looking for resources to learn more about Data Science. In this case, you can use the command Data Science in:name which will list repositories with Data Science in the repository name.

Using in:description . If you want to find repositories with a ceratin description, for example repositories where the term «freeCodeCamp» is included in the descriptionm, our search will be: freecodecamp in:description

Using in:readme . You use this to search through a README of a file for a certain phrase. If we want to find repositories where the term freecodecamp is included in the README, our search will be: freecodecamp in:readme .

Using in:topic . You use this to find if a certain phrase or word is labeled in the topics. For example to find all repositories where freecodecamp is listed in the topic, our search will be: freecodecamp in:topic

You can also combine multiple search queries to further narrow down the search.

How to Find by Stars, Forks

You can also search for a repository based on how many stars and forks the project has. This makes it easier for you to know how popular the project is.

Examples

Using stars:n . If you search for a repository with 1000 stars, then your search query will be stars:1000 . This will list repositories with exactly 1000 stars.

Using forks:n . This specifies the number of forks a repository should have. If you want find repositories that have less than 100 forks, your search will be: forks:<100 .

The good thing is that you can always use relational operators like < , > , <= , >= & .. to help you further narrow your search.

How to Find by Language

Another cool way to search through GitHub is by language. This helps you filter out repositories to a specific language.

Example:

  • Using language:LANGUAGE . For example if you want to find repositories written in PHP, your search will be: language:PHP
How to Find by Organization Name

You can also search repositories/projects that are maintained or created by a specific organization. For this you need to begin your search with the keyword org. followed by the organization name.

For example if you search org:freecodecamp it will list repositories that match freeCodeCamp.

How to Find by Date

If you want your results based on a specific date, you can search using one of these keywords: created , updated , merged and closed . These keywords should be accompanied by date in the format YYYY-MM-DD .

Example:

  • Using keyword:YYYY-MM-DD . Take an instance where we want to make a search of all repositories with the word freeCodeCamp that were created after 2022-10-01. Then our search will be: freecodecamp created:>2022-10-01

You can also use < , > , >= and <= to search for dates after, before and on the specified date. To search within a range you can use . .

How to Find by License

Licenses are very important when you are are looking for a project to contribute to. Different licenses give different rights as to what a contributor can do or can not do.

To make it easier for you to find projects with right licenses you need to have a good understanding of licenses. You can read more about them here.

Example:

  • Using license:LICENSE_KEYWORD . This is a good way to search for projects with specific licenses. To search projects with the MIT license, for instance, you would do license:MIT .
How to Find by Visibility

You can also conduct your search in terms of the visibility of the repository. In this case you can either use public or private. This will match issues and PRs that are either in a public or private repository, respectively.

Examples:

  • Using is:public . This will show a list of public repositories. Let’s take an isntance where we want to search all public repositories owned by freeCodCamp. Then our search will be: is:public org:freecodecamp .
  • Using is:private . This query is meant to lists all private repositories under the given search query.

Conclusion

Even though we have covered many search queries here, you can always be creative to further narrow your search by combining multiple parameters together.

For additional resources and more search parameters, you can always refer to the GitHub Docs or make use of Advanced GitHub Search. These methods will always come in handy as they offer more filering options.

There are a ton of search parameters you can use to make your daily activity around GitHub easier. Hopefully this will help you use the platform more easily and effectively.

Поиск по GitHub: как найти репозитории, нужный код или разработчика?

Правильный поиск по GitHub поможет вам найти нужного разработчика или нужный репозиторий с кодом. GitHub — это один из тех сервисов, которы е не нужно представлять людям, хоть немного связанным с программированием. Эт о ресурс, на котором каждый программист просто обязан иметь аккаунт, потому что большинство современных компаний , прежде чем нанимать к себе разработчика , проверяют его профиль на GitHub. Если в профиле «есть что посмотреть» и на самом ресурсе программист проявлял активность, то это приносит ему много плюсов в резюме.

Н а сегодняшний день на GitHub зарегистрировано более 35 миллионов аккаунтов, поэтому поиск нужного программиста именно по этому сервису более чем оправдан. Плюс ко всем у G itHub — это огромная площадка, где разработчики размещают код своих работающих приложений, которые распространяются по свободной лицензии. То ест ь G itHub — это огромное хранилище исходников, поэтому поиск нужного кода или репозитория п о этому ресурс у т оже более чем оправдан.

Поиск кода или разработчика по GitHub

Искать разработчика или нужный код можно разными путями. Например , разработчиков можно искать на специализированных сайтах по поиску работы, таких как hh.ru. Когда нужен код, можно воспользоваться специальным форумом или попросить помощи у других программистов. Но и в том и в другом случае очень правильно будет вести поиск по GitHub, ведь это один их тех ресурсов, где сконцентрированы лучшие программистские умы.

Поиск кода или репозитория по GitHub

  • in:name — поиск по имени репозитория, то есть искомые слова буд у т искаться в наименовании репозиториев;

  • in:description — поиск по описанию репозит о ри я н а совпадение указанных слов поиска именно в описании;

  • in:readme — поиск по файлам README;

  • repo:owner/name — поиск по точному совпадению имени репозитория.

  • по размеру репозитория;

  • по количеству подписчиков;

  • по количеству вилок;

  • по количеству звезд;

  • по дате создания;

  • по дате последнего обновления;

  • по используемому языку программирования;

  • по теме;

  • по количеству тем;

  • по лицензии;

  • по видимости репозитория;

  • по наличию проблем с репозиторием;

  • по возможности оказать спонсорскую помощь;

  • и др.

Поиск разработчиков по GitHub

  1. Поиск по ключевым словам. К примеру, если вам необходим python-разработчик, то введите в поиске слово «python».

  2. Поиск по языкам программирования, которым и должен обладать искомый разработчик. Введите в поисковой строке любой язык программирования , и GitHub выдаст вам результат.

  3. П оиск по технологиям. Работает так же, как и с языками программирования : просто введите название необходимого фреймворка, который не является самостоятельным языком программирования.

  4. Искать по активности программиста. Обычно этот вид поиска осуществляют, когда уже нашли список потенциальных кандидатов, допустим , по языку программировани я . Далее в качестве фильтра можно отсеять тех, кто давно не проявлял активность на GitHub.

Заключение

Поиск нужного кода или разработчика по GitHub — это логично е действие , п отому что подобных специализированных площадок для программистов не так много. Вернее , они есть, но они не такого уровня, как GitHub.

С поиском кода вроде все ясно, поэтому сложностей возникнуть не должно. Тем более раз вы ищите код, то вы в не м к ак миниму м р азбираетесь. Сложнее с поиском разработчиков, потому что на GitHub очень много «пустышек», которые просто будут отнимать у вас время.

Мы будем очень благодарны

если под понравившемся материалом Вы нажмёте одну из кнопок социальных сетей и поделитесь с друзьями.

Русские Блоги

Навыки расширенного поиска на Github для программистов

Нажмите выше " Школа программирования ", выберите как" Установить звезду ”

Качественные изделия с доставкой немедленно!

Автор: Juefei

juejin.im/post/5e3d01c56fb9a07c91100801

У многих мелких партнеров часто возникает такая путаница. Я прочитал много технических учебных документов, книг и даже видео. Я хочу попрактиковаться, поэтому я открыл GitHub и хотел найти проект с открытым исходным кодом, чтобы изучить и получить практический опыт в этом проекте. . В это время многие мелкие партнеры столкнутся с проблемой: «Я не могу искать, как мне это найти?», И в конце концов сможет только сдаться.

Я считаю, что прочитав эту статью, вы сможете узнать, как точно искать проекты на GitHub.

Компонент проекта с открытым исходным кодом

Прежде чем прояснить ситуацию, давайте сначала разберемся, каковы компоненты проекта с открытым исходным кодом:

name: название проекта

description: краткое описание проекта

Исходный код проекта

README.md: Знакомство с деталями проекта

В дополнение к этим элементам, количество звезд и ответвлений самого проекта также является критерием для оценки популярности проекта с открытым исходным кодом, а также очень важным критерием поиска. Кроме того, мы также должны обратить внимание на дату последнего обновления этого проекта, потому что чем активнее проект, тем чаще он будет обновляться.

Вышеупомянутые элементы — это некоторые из ключевых моментов, на которые следует обращать внимание при поиске.

Как искать

Так как же искать?

Предположим, мы хотим найти React сейчас, я считаю, что большинство мелких партнеров напрямую вводят в поле поиска: «React», а затем нажимают Enter, вы обнаружите, что ситуация выглядит следующим образом:

Результаты поиска покажут много проектов с открытым исходным кодом, из-за чего вы ошеломлены и не сможете начать. Многие друзья сдались после поиска на этом этапе, потому что проектов слишком много, и они не могут найти, как найти проекты с открытым исходным кодом, которые их интересуют. Поиск очень неточный. Итак, давайте изучим чуть более точный метод поиска.

в соответствии с name искать

Найдите проекты, которые содержат React в названии проекта:

Получите следующие результаты:

Как видите, все эти результаты поиска — это проекты с ключевым словом React в названии проекта, но проектов по-прежнему много.

Теперь давайте ограничим

Например, я могу точно указать звездное число проекта больше 5000+:

Результаты поиска становятся более точными мгновенно, и теперь на выбор доступно всего 114 элементов. Конечно, мы обычно не устанавливаем количество звезд так высоко, как правило, установка 1000 почти такая же.

Таким же образом мы можем искать по количеству вилок:

Вы обнаружите, что результаты становятся все более точными!

в соответствии с README Искать

Найдите в README.md проекты, содержащие React:

Результатов так много, поэтому давайте ограничим количество звездочек и вилок:

Результаты поиска были точными сразу до 90. В этот раз вы перейдете к выбору проекта, это станет намного проще.

в соответствии с descriptin искать

Предположим, теперь мы хотим узнать о проектах микросервисов, мы ищем проекты, которые содержат микросервисы в описании проекта:

Результатов так много, что мы добавим несколько условий фильтрации:

language: python означает, что мы ограничиваем язык питоном, посмотрим, как это получится:

Результаты поиска намного точнее.

Если в этих проектах мы хотим найти проекты, которые были обновлены недавно, то есть время обновления является самым последним, мы можем сделать это:

нажата:> 2020-01-01 означает, что мы ограничили время последнего обновления проекта до 2020-01-01, давайте посмотрим, каков результат:

Результатов поиска всего 8, и эти проекты относятся к наиболее активным, так что меня больше не запутает.

подводить итоги

Ладно, подведем итоги. Мы хотим вести точный поиск, не более чем добавление условий фильтрации.

in: name xxx // поиск по названию проекта

in: readme xxx // поиск по README

in: description xxx // поиск по описанию

Итак, здесь мы можем добавить условия фильтрации

stars:> xxx // количество звезд больше, чем xxx

forks:> 3000 // Количество вилок больше xxx

language: xxx // язык программирования xxx

нажато:> ГГГГ-ММ-ДД // Время последнего обновления больше, чем ГГГГ-ММ-ДД

Выше приведены несколько советов по точному поиску проектов на GitHub, надеюсь, это поможет вам!

Github Code Search

Github has just released the first preview version of its new search engine to look up code in your repositories. It’s called “Github Code Search” and provides a fuzzy-like search experience for your content on Github repositories. It crawls the repos and returns results that show the matching code lines.

As I noted, the service is currently in preview. I’m lucky to be one of the testers, but at the time of reading this article, Github Code Search might already be available to the general public.

Finding code among repos

The most basic yet also most powerful feature of Github Code Search is that you can just provide a query string and the engine will show you the relevant matches among all public repositories. Yes, you’ve read that correctly: the search returns results from not only your repositories, but all public ones by default.

All you have to do is enter the search parameter and hit enter on your keyboard. The next view will render all matches.

Of course, you can limit the search to only inspect your account’s content. This can either be done by using the prefix “owner:” to your query or by selecting your account from the left dropdown button in the search bar.

If you define the scope via the dropdown button to your account, the results get also rendered inline as a list, which is really nice for doing quick searches without changing the page.

Github’s custom query language

A more advanced feature of Github Code Search is the ability to precisely define the scope of the search via regular expressions, file paths as well as boolean operators. All together they allow you to write queries in a simple but quite efficient language.

As this is only the first iteration of the service, I’m sure Github Code Search will become much more powerful in the future. After using it for some time during the preview phase I can already say that it will be one of the most used features on Github.

I also think that Github Code Search can evolve into a competitor to Stack Overflow when it comes to searching for code snippets or templates — a feature that might already be covered by Github Copilot.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *