正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Projects

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

Query fields

The following fields are required: Namespace

FieldName (and alias)Operators
Archived onlyarchivedOnly=, !=
Group / Namespacenamespace, group=
Has code coveragehasCodeCoverage=, !=
Has vulnerabilitieshasVulnerabilities=, !=
Include archivedincludeArchived=, !=
Include subgroupsincludeSubgroups=, !=
Issues enabledissuesEnabled=, !=
Merge requests enabledmergeRequestsEnabled=, !=

Archived only

Description: Filter to show only archived projects.

Allowed value types: Boolean (either true or false)

Notes:

  • Cannot be used together with includeArchived.

Group / Namespace

Description: Specify the group namespace to query projects from. This field is required. You can use either namespace or group as the field name.

Allowed value types: String

Has code coverage

Description: Filter projects by whether they have code coverage reports.

Allowed value types: Boolean (either true or false)

Has vulnerabilities

Description: Filter projects by whether they have security vulnerabilities.

Allowed value types: Boolean (either true or false)

Include archived

Description: Include archived projects in the results.

Allowed value types: Boolean (either true or false)

Notes:

  • Cannot be used together with archivedOnly.
  • By default, archived projects are not included.

Include subgroups

Description: Whether to include projects from subgroups.

Allowed value types: Boolean (either true or false)

Notes:

  • This field can only be used with the namespace or group field.
  • Defaults to true when a namespace or group is specified.

Issues enabled

Description: Filter projects by whether they have issues enabled.

Allowed value types: Boolean (either true or false)

Merge requests enabled

Description: Filter projects by whether they have merge requests enabled.

Allowed value types: Boolean (either true or false)

Display fields

FieldName (and alias)Description
ArchivedarchivedDisplay whether the project is archived
Duo features enabledduoFeaturesEnabledDisplay whether Duo features are enabled
ForkedforkedDisplay whether the project is a fork
Forks countforksCountDisplay the number of forks
Full pathfullPathDisplay the full path of the project
GroupgroupDisplay the group the project belongs to
IDidDisplay the project ID
Issues enabledissuesEnabledDisplay whether issues are enabled
Last activitylastActivity, lastActivityAtDisplay when the project was last active
Merge requests enabledmergeRequestsEnabledDisplay whether merge requests are enabled
NamenameDisplay the project name
Open issues countopenIssuesCountDisplay the number of open issues
Open merge requests countopenMergeRequestsCountDisplay the number of open merge requests
PathpathDisplay the project path
Secret push protection enabledsecretPushProtectionEnabledDisplay whether secret push protection is enabled
Star countstarCountDisplay the number of stars
VisibilityvisibilityDisplay the project visibility level
Web URLwebUrlDisplay the web URL of the project

Sort fields

FieldName (and alias)Description
Full pathfullPathSort by full path
Last activitylastActivity, lastActivityAtSort by last activity date
PathpathSort by path

Notes:

  • lastActivity only supports descending (desc) sort order.

Examples:

  • List all projects in the gitlab-org group sorted by path:

    ```glql
    display: table
    fields: name, fullPath, starCount, openIssuesCount
    sort: path asc
    query: type = Project and group = "gitlab-org"
    ```
  • List all projects in the gitlab-org group sorted by most recently active:

    ```glql
    display: table
    fields: name, fullPath, lastActivity
    sort: lastActivity desc
    query: type = Project and group = "gitlab-org"
    ```