0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Tips]GitHubのコード検索でarchiveされてないリポジトリだけを検索する

Posted at

前使った時にリポジトリ検索と指定が違うことで詰まったので備忘録。

自分はGitHubで、所属する組織のアーカイブされてないリポジトリを対象にコード検索を利用することがあります。
リポジトリ検索なら archived:trueもしくはarchived:falseで絞り込むことができますが。コード検索ではできません。
以下の画像のようにThe archived qualifier is not supported when searching code. というエラーメッセージがでます。

image.png

ではどうするのかというと、コード検索では is:archivedを使うことでarchiveされたリポジトリのみを対象にすることができます。
(画像のelasticsearch-definitive-guideexamplesはarchiveされたリポジトリです)

image.png

逆にarchiveされてないリポジトリのみを調べたい場合は NOT is:archivedを使います。

image.png

同じリポジトリがアーカイブされているかどうかの絞り込みですが、検索対象が何かで指定方法が変わるので気を付けましょう。

REF

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?