1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getProjectMergeRequests
GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi

gitlab.getProjectMergeRequests

Explore with Pulumi AI

gitlab logo
GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi

    The gitlab.getProjectMergeRequests data source retrieves information about a list of merge requests related to a specific project.

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const exampleOne = gitlab.getProjectMergeRequests({
        project: "123",
        targetBranch: "main",
        wip: "yes",
    });
    const exampleTwo = gitlab.getProjectMergeRequests({
        project: "company/group/project1",
        authorId: 5,
        createdAfter: "2024-07-25T12:00:00Z",
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example_one = gitlab.get_project_merge_requests(project="123",
        target_branch="main",
        wip="yes")
    example_two = gitlab.get_project_merge_requests(project="company/group/project1",
        author_id=5,
        created_after="2024-07-25T12:00:00Z")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v9/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gitlab.GetProjectMergeRequests(ctx, &gitlab.GetProjectMergeRequestsArgs{
    			Project:      "123",
    			TargetBranch: pulumi.StringRef("main"),
    			Wip:          pulumi.StringRef("yes"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = gitlab.GetProjectMergeRequests(ctx, &gitlab.GetProjectMergeRequestsArgs{
    			Project:      "company/group/project1",
    			AuthorId:     pulumi.IntRef(5),
    			CreatedAfter: pulumi.StringRef("2024-07-25T12:00:00Z"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleOne = GitLab.GetProjectMergeRequests.Invoke(new()
        {
            Project = "123",
            TargetBranch = "main",
            Wip = "yes",
        });
    
        var exampleTwo = GitLab.GetProjectMergeRequests.Invoke(new()
        {
            Project = "company/group/project1",
            AuthorId = 5,
            CreatedAfter = "2024-07-25T12:00:00Z",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.GitlabFunctions;
    import com.pulumi.gitlab.inputs.GetProjectMergeRequestsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleOne = GitlabFunctions.getProjectMergeRequests(GetProjectMergeRequestsArgs.builder()
                .project("123")
                .targetBranch("main")
                .wip("yes")
                .build());
    
            final var exampleTwo = GitlabFunctions.getProjectMergeRequests(GetProjectMergeRequestsArgs.builder()
                .project("company/group/project1")
                .authorId(5)
                .createdAfter("2024-07-25T12:00:00Z")
                .build());
    
        }
    }
    
    variables:
      exampleOne:
        fn::invoke:
          function: gitlab:getProjectMergeRequests
          arguments:
            project: '123'
            targetBranch: main
            wip: yes
      exampleTwo:
        fn::invoke:
          function: gitlab:getProjectMergeRequests
          arguments:
            project: company/group/project1
            authorId: 5
            createdAfter: 2024-07-25T12:00:00Z
    

    Using getProjectMergeRequests

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProjectMergeRequests(args: GetProjectMergeRequestsArgs, opts?: InvokeOptions): Promise<GetProjectMergeRequestsResult>
    function getProjectMergeRequestsOutput(args: GetProjectMergeRequestsOutputArgs, opts?: InvokeOptions): Output<GetProjectMergeRequestsResult>
    def get_project_merge_requests(author_id: Optional[int] = None,
                                   author_username: Optional[str] = None,
                                   created_after: Optional[str] = None,
                                   created_before: Optional[str] = None,
                                   iids: Optional[Sequence[int]] = None,
                                   milestone: Optional[str] = None,
                                   my_reaction_emoji: Optional[str] = None,
                                   order_by: Optional[str] = None,
                                   project: Optional[str] = None,
                                   reviewer_username: Optional[str] = None,
                                   scope: Optional[str] = None,
                                   search: Optional[str] = None,
                                   sort: Optional[str] = None,
                                   source_branch: Optional[str] = None,
                                   state: Optional[str] = None,
                                   target_branch: Optional[str] = None,
                                   updated_after: Optional[str] = None,
                                   updated_before: Optional[str] = None,
                                   wip: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetProjectMergeRequestsResult
    def get_project_merge_requests_output(author_id: Optional[pulumi.Input[int]] = None,
                                   author_username: Optional[pulumi.Input[str]] = None,
                                   created_after: Optional[pulumi.Input[str]] = None,
                                   created_before: Optional[pulumi.Input[str]] = None,
                                   iids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                                   milestone: Optional[pulumi.Input[str]] = None,
                                   my_reaction_emoji: Optional[pulumi.Input[str]] = None,
                                   order_by: Optional[pulumi.Input[str]] = None,
                                   project: Optional[pulumi.Input[str]] = None,
                                   reviewer_username: Optional[pulumi.Input[str]] = None,
                                   scope: Optional[pulumi.Input[str]] = None,
                                   search: Optional[pulumi.Input[str]] = None,
                                   sort: Optional[pulumi.Input[str]] = None,
                                   source_branch: Optional[pulumi.Input[str]] = None,
                                   state: Optional[pulumi.Input[str]] = None,
                                   target_branch: Optional[pulumi.Input[str]] = None,
                                   updated_after: Optional[pulumi.Input[str]] = None,
                                   updated_before: Optional[pulumi.Input[str]] = None,
                                   wip: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetProjectMergeRequestsResult]
    func GetProjectMergeRequests(ctx *Context, args *GetProjectMergeRequestsArgs, opts ...InvokeOption) (*GetProjectMergeRequestsResult, error)
    func GetProjectMergeRequestsOutput(ctx *Context, args *GetProjectMergeRequestsOutputArgs, opts ...InvokeOption) GetProjectMergeRequestsResultOutput

    > Note: This function is named GetProjectMergeRequests in the Go SDK.

    public static class GetProjectMergeRequests 
    {
        public static Task<GetProjectMergeRequestsResult> InvokeAsync(GetProjectMergeRequestsArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectMergeRequestsResult> Invoke(GetProjectMergeRequestsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectMergeRequestsResult> getProjectMergeRequests(GetProjectMergeRequestsArgs args, InvokeOptions options)
    public static Output<GetProjectMergeRequestsResult> getProjectMergeRequests(GetProjectMergeRequestsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gitlab:index/getProjectMergeRequests:getProjectMergeRequests
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Project string
    The ID or path of the project.
    AuthorId int
    Return merge requests created by the given user ID.
    AuthorUsername string
    Return merge requests created by the given username.
    CreatedAfter string
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    CreatedBefore string
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Iids List<int>
    The unique internal IDs of the merge requests.
    Milestone string
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    MyReactionEmoji string
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    OrderBy string
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    ReviewerUsername string
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    Scope string
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    Search string
    Search merge requests against their title or description.
    Sort string
    Return requests sorted in asc or desc order. Default is desc.
    SourceBranch string
    Return merge requests with the given source branch.
    State string
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    TargetBranch string
    Return merge requests with the given target branch.
    UpdatedAfter string
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    UpdatedBefore string
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Wip string
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    Project string
    The ID or path of the project.
    AuthorId int
    Return merge requests created by the given user ID.
    AuthorUsername string
    Return merge requests created by the given username.
    CreatedAfter string
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    CreatedBefore string
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Iids []int
    The unique internal IDs of the merge requests.
    Milestone string
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    MyReactionEmoji string
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    OrderBy string
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    ReviewerUsername string
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    Scope string
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    Search string
    Search merge requests against their title or description.
    Sort string
    Return requests sorted in asc or desc order. Default is desc.
    SourceBranch string
    Return merge requests with the given source branch.
    State string
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    TargetBranch string
    Return merge requests with the given target branch.
    UpdatedAfter string
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    UpdatedBefore string
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Wip string
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    project String
    The ID or path of the project.
    authorId Integer
    Return merge requests created by the given user ID.
    authorUsername String
    Return merge requests created by the given username.
    createdAfter String
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    createdBefore String
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids List<Integer>
    The unique internal IDs of the merge requests.
    milestone String
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    myReactionEmoji String
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    orderBy String
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewerUsername String
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope String
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search String
    Search merge requests against their title or description.
    sort String
    Return requests sorted in asc or desc order. Default is desc.
    sourceBranch String
    Return merge requests with the given source branch.
    state String
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    targetBranch String
    Return merge requests with the given target branch.
    updatedAfter String
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updatedBefore String
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip String
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    project string
    The ID or path of the project.
    authorId number
    Return merge requests created by the given user ID.
    authorUsername string
    Return merge requests created by the given username.
    createdAfter string
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    createdBefore string
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids number[]
    The unique internal IDs of the merge requests.
    milestone string
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    myReactionEmoji string
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    orderBy string
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewerUsername string
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope string
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search string
    Search merge requests against their title or description.
    sort string
    Return requests sorted in asc or desc order. Default is desc.
    sourceBranch string
    Return merge requests with the given source branch.
    state string
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    targetBranch string
    Return merge requests with the given target branch.
    updatedAfter string
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updatedBefore string
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip string
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    project str
    The ID or path of the project.
    author_id int
    Return merge requests created by the given user ID.
    author_username str
    Return merge requests created by the given username.
    created_after str
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    created_before str
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids Sequence[int]
    The unique internal IDs of the merge requests.
    milestone str
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    my_reaction_emoji str
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    order_by str
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewer_username str
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope str
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search str
    Search merge requests against their title or description.
    sort str
    Return requests sorted in asc or desc order. Default is desc.
    source_branch str
    Return merge requests with the given source branch.
    state str
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    target_branch str
    Return merge requests with the given target branch.
    updated_after str
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updated_before str
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip str
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    project String
    The ID or path of the project.
    authorId Number
    Return merge requests created by the given user ID.
    authorUsername String
    Return merge requests created by the given username.
    createdAfter String
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    createdBefore String
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids List<Number>
    The unique internal IDs of the merge requests.
    milestone String
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    myReactionEmoji String
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    orderBy String
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewerUsername String
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope String
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search String
    Search merge requests against their title or description.
    sort String
    Return requests sorted in asc or desc order. Default is desc.
    sourceBranch String
    Return merge requests with the given source branch.
    state String
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    targetBranch String
    Return merge requests with the given target branch.
    updatedAfter String
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updatedBefore String
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip String
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.

    getProjectMergeRequests Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MergeRequests List<Pulumi.GitLab.Outputs.GetProjectMergeRequestsMergeRequest>
    The list of merge requests.
    Project string
    The ID or path of the project.
    AuthorId int
    Return merge requests created by the given user ID.
    AuthorUsername string
    Return merge requests created by the given username.
    CreatedAfter string
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    CreatedBefore string
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Iids List<int>
    The unique internal IDs of the merge requests.
    Milestone string
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    MyReactionEmoji string
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    OrderBy string
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    ReviewerUsername string
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    Scope string
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    Search string
    Search merge requests against their title or description.
    Sort string
    Return requests sorted in asc or desc order. Default is desc.
    SourceBranch string
    Return merge requests with the given source branch.
    State string
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    TargetBranch string
    Return merge requests with the given target branch.
    UpdatedAfter string
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    UpdatedBefore string
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Wip string
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    Id string
    The provider-assigned unique ID for this managed resource.
    MergeRequests []GetProjectMergeRequestsMergeRequest
    The list of merge requests.
    Project string
    The ID or path of the project.
    AuthorId int
    Return merge requests created by the given user ID.
    AuthorUsername string
    Return merge requests created by the given username.
    CreatedAfter string
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    CreatedBefore string
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Iids []int
    The unique internal IDs of the merge requests.
    Milestone string
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    MyReactionEmoji string
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    OrderBy string
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    ReviewerUsername string
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    Scope string
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    Search string
    Search merge requests against their title or description.
    Sort string
    Return requests sorted in asc or desc order. Default is desc.
    SourceBranch string
    Return merge requests with the given source branch.
    State string
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    TargetBranch string
    Return merge requests with the given target branch.
    UpdatedAfter string
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    UpdatedBefore string
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    Wip string
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    id String
    The provider-assigned unique ID for this managed resource.
    mergeRequests List<GetProjectMergeRequestsMergeRequest>
    The list of merge requests.
    project String
    The ID or path of the project.
    authorId Integer
    Return merge requests created by the given user ID.
    authorUsername String
    Return merge requests created by the given username.
    createdAfter String
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    createdBefore String
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids List<Integer>
    The unique internal IDs of the merge requests.
    milestone String
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    myReactionEmoji String
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    orderBy String
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewerUsername String
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope String
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search String
    Search merge requests against their title or description.
    sort String
    Return requests sorted in asc or desc order. Default is desc.
    sourceBranch String
    Return merge requests with the given source branch.
    state String
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    targetBranch String
    Return merge requests with the given target branch.
    updatedAfter String
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updatedBefore String
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip String
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    id string
    The provider-assigned unique ID for this managed resource.
    mergeRequests GetProjectMergeRequestsMergeRequest[]
    The list of merge requests.
    project string
    The ID or path of the project.
    authorId number
    Return merge requests created by the given user ID.
    authorUsername string
    Return merge requests created by the given username.
    createdAfter string
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    createdBefore string
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids number[]
    The unique internal IDs of the merge requests.
    milestone string
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    myReactionEmoji string
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    orderBy string
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewerUsername string
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope string
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search string
    Search merge requests against their title or description.
    sort string
    Return requests sorted in asc or desc order. Default is desc.
    sourceBranch string
    Return merge requests with the given source branch.
    state string
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    targetBranch string
    Return merge requests with the given target branch.
    updatedAfter string
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updatedBefore string
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip string
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    id str
    The provider-assigned unique ID for this managed resource.
    merge_requests Sequence[GetProjectMergeRequestsMergeRequest]
    The list of merge requests.
    project str
    The ID or path of the project.
    author_id int
    Return merge requests created by the given user ID.
    author_username str
    Return merge requests created by the given username.
    created_after str
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    created_before str
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids Sequence[int]
    The unique internal IDs of the merge requests.
    milestone str
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    my_reaction_emoji str
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    order_by str
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewer_username str
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope str
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search str
    Search merge requests against their title or description.
    sort str
    Return requests sorted in asc or desc order. Default is desc.
    source_branch str
    Return merge requests with the given source branch.
    state str
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    target_branch str
    Return merge requests with the given target branch.
    updated_after str
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updated_before str
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip str
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
    id String
    The provider-assigned unique ID for this managed resource.
    mergeRequests List<Property Map>
    The list of merge requests.
    project String
    The ID or path of the project.
    authorId Number
    Return merge requests created by the given user ID.
    authorUsername String
    Return merge requests created by the given username.
    createdAfter String
    Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    createdBefore String
    Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    iids List<Number>
    The unique internal IDs of the merge requests.
    milestone String
    Return only merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
    myReactionEmoji String
    Return merge requests reacted to by the authenticated user with the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
    orderBy String
    Return requests ordered by created_at, title or updated_at. Default is created_at.
    reviewerUsername String
    Return merge requests reviewed by the given username. None returns merge requests with no reviews. Any returns merge requests with any reviewer.
    scope String
    Return merge requests for the given scope: created_by_me, assigned_to_me, or all.
    search String
    Search merge requests against their title or description.
    sort String
    Return requests sorted in asc or desc order. Default is desc.
    sourceBranch String
    Return merge requests with the given source branch.
    state String
    Return all merge requests (all) or just those that are opened, closed, locked, or merged.
    targetBranch String
    Return merge requests with the given target branch.
    updatedAfter String
    Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    updatedBefore String
    Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
    wip String
    Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.

    Supporting Types

    GetProjectMergeRequestsMergeRequest

    Assignee Pulumi.GitLab.Inputs.GetProjectMergeRequestsMergeRequestAssignee
    First assignee of the merge request.
    Assignees List<Pulumi.GitLab.Inputs.GetProjectMergeRequestsMergeRequestAssignee>
    Assignees of the merge request.
    Author Pulumi.GitLab.Inputs.GetProjectMergeRequestsMergeRequestAuthor
    User who created this merge request.
    BlockingDiscussionsResolved bool
    Indicates if all discussions are resolved only if all are required before merge request can be merged.
    ClosedAt string
    Timestamp of when the merge request was closed.
    ClosedBy Pulumi.GitLab.Inputs.GetProjectMergeRequestsMergeRequestClosedBy
    User who closed this merge request.
    CreatedAt string
    Timestamp of when the merge request was created.
    Id int
    The unique instance level ID of the merge request.
    Iid int
    The unique project level ID of the merge request.
    Assignee GetProjectMergeRequestsMergeRequestAssignee
    First assignee of the merge request.
    Assignees []GetProjectMergeRequestsMergeRequestAssignee
    Assignees of the merge request.
    Author GetProjectMergeRequestsMergeRequestAuthor
    User who created this merge request.
    BlockingDiscussionsResolved bool
    Indicates if all discussions are resolved only if all are required before merge request can be merged.
    ClosedAt string
    Timestamp of when the merge request was closed.
    ClosedBy GetProjectMergeRequestsMergeRequestClosedBy
    User who closed this merge request.
    CreatedAt string
    Timestamp of when the merge request was created.
    Id int
    The unique instance level ID of the merge request.
    Iid int
    The unique project level ID of the merge request.
    assignee GetProjectMergeRequestsMergeRequestAssignee
    First assignee of the merge request.
    assignees List<GetProjectMergeRequestsMergeRequestAssignee>
    Assignees of the merge request.
    author GetProjectMergeRequestsMergeRequestAuthor
    User who created this merge request.
    blockingDiscussionsResolved Boolean
    Indicates if all discussions are resolved only if all are required before merge request can be merged.
    closedAt String
    Timestamp of when the merge request was closed.
    closedBy GetProjectMergeRequestsMergeRequestClosedBy
    User who closed this merge request.
    createdAt String
    Timestamp of when the merge request was created.
    id Integer
    The unique instance level ID of the merge request.
    iid Integer
    The unique project level ID of the merge request.
    assignee GetProjectMergeRequestsMergeRequestAssignee
    First assignee of the merge request.
    assignees GetProjectMergeRequestsMergeRequestAssignee[]
    Assignees of the merge request.
    author GetProjectMergeRequestsMergeRequestAuthor
    User who created this merge request.
    blockingDiscussionsResolved boolean
    Indicates if all discussions are resolved only if all are required before merge request can be merged.
    closedAt string
    Timestamp of when the merge request was closed.
    closedBy GetProjectMergeRequestsMergeRequestClosedBy
    User who closed this merge request.
    createdAt string
    Timestamp of when the merge request was created.
    id number
    The unique instance level ID of the merge request.
    iid number
    The unique project level ID of the merge request.
    assignee GetProjectMergeRequestsMergeRequestAssignee
    First assignee of the merge request.
    assignees Sequence[GetProjectMergeRequestsMergeRequestAssignee]
    Assignees of the merge request.
    author GetProjectMergeRequestsMergeRequestAuthor
    User who created this merge request.
    blocking_discussions_resolved bool
    Indicates if all discussions are resolved only if all are required before merge request can be merged.
    closed_at str
    Timestamp of when the merge request was closed.
    closed_by GetProjectMergeRequestsMergeRequestClosedBy
    User who closed this merge request.
    created_at str
    Timestamp of when the merge request was created.
    id int
    The unique instance level ID of the merge request.
    iid int
    The unique project level ID of the merge request.
    assignee Property Map
    First assignee of the merge request.
    assignees List<Property Map>
    Assignees of the merge request.
    author Property Map
    User who created this merge request.
    blockingDiscussionsResolved Boolean
    Indicates if all discussions are resolved only if all are required before merge request can be merged.
    closedAt String
    Timestamp of when the merge request was closed.
    closedBy Property Map
    User who closed this merge request.
    createdAt String
    Timestamp of when the merge request was created.
    id Number
    The unique instance level ID of the merge request.
    iid Number
    The unique project level ID of the merge request.

    GetProjectMergeRequestsMergeRequestAssignee

    AvatarUrl string
    A link to the user's avatar image.
    Id int
    The internal ID number of the user.
    Name string
    The name of the user.
    State string
    The state of the user account.
    Username string
    The username of the user.
    WebUrl string
    A link to the user's profile page.
    AvatarUrl string
    A link to the user's avatar image.
    Id int
    The internal ID number of the user.
    Name string
    The name of the user.
    State string
    The state of the user account.
    Username string
    The username of the user.
    WebUrl string
    A link to the user's profile page.
    avatarUrl String
    A link to the user's avatar image.
    id Integer
    The internal ID number of the user.
    name String
    The name of the user.
    state String
    The state of the user account.
    username String
    The username of the user.
    webUrl String
    A link to the user's profile page.
    avatarUrl string
    A link to the user's avatar image.
    id number
    The internal ID number of the user.
    name string
    The name of the user.
    state string
    The state of the user account.
    username string
    The username of the user.
    webUrl string
    A link to the user's profile page.
    avatar_url str
    A link to the user's avatar image.
    id int
    The internal ID number of the user.
    name str
    The name of the user.
    state str
    The state of the user account.
    username str
    The username of the user.
    web_url str
    A link to the user's profile page.
    avatarUrl String
    A link to the user's avatar image.
    id Number
    The internal ID number of the user.
    name String
    The name of the user.
    state String
    The state of the user account.
    username String
    The username of the user.
    webUrl String
    A link to the user's profile page.

    GetProjectMergeRequestsMergeRequestAuthor

    AvatarUrl string
    A link to the user's avatar image.
    Id int
    The internal ID number of the user.
    Name string
    The name of the user.
    State string
    The state of the user account.
    Username string
    The username of the user.
    WebUrl string
    A link to the user's profile page.
    AvatarUrl string
    A link to the user's avatar image.
    Id int
    The internal ID number of the user.
    Name string
    The name of the user.
    State string
    The state of the user account.
    Username string
    The username of the user.
    WebUrl string
    A link to the user's profile page.
    avatarUrl String
    A link to the user's avatar image.
    id Integer
    The internal ID number of the user.
    name String
    The name of the user.
    state String
    The state of the user account.
    username String
    The username of the user.
    webUrl String
    A link to the user's profile page.
    avatarUrl string
    A link to the user's avatar image.
    id number
    The internal ID number of the user.
    name string
    The name of the user.
    state string
    The state of the user account.
    username string
    The username of the user.
    webUrl string
    A link to the user's profile page.
    avatar_url str
    A link to the user's avatar image.
    id int
    The internal ID number of the user.
    name str
    The name of the user.
    state str
    The state of the user account.
    username str
    The username of the user.
    web_url str
    A link to the user's profile page.
    avatarUrl String
    A link to the user's avatar image.
    id Number
    The internal ID number of the user.
    name String
    The name of the user.
    state String
    The state of the user account.
    username String
    The username of the user.
    webUrl String
    A link to the user's profile page.

    GetProjectMergeRequestsMergeRequestClosedBy

    AvatarUrl string
    A link to the user's avatar image.
    Id int
    The internal ID number of the user.
    Name string
    The name of the user.
    State string
    The state of the user account.
    Username string
    The username of the user.
    WebUrl string
    A link to the user's profile page.
    AvatarUrl string
    A link to the user's avatar image.
    Id int
    The internal ID number of the user.
    Name string
    The name of the user.
    State string
    The state of the user account.
    Username string
    The username of the user.
    WebUrl string
    A link to the user's profile page.
    avatarUrl String
    A link to the user's avatar image.
    id Integer
    The internal ID number of the user.
    name String
    The name of the user.
    state String
    The state of the user account.
    username String
    The username of the user.
    webUrl String
    A link to the user's profile page.
    avatarUrl string
    A link to the user's avatar image.
    id number
    The internal ID number of the user.
    name string
    The name of the user.
    state string
    The state of the user account.
    username string
    The username of the user.
    webUrl string
    A link to the user's profile page.
    avatar_url str
    A link to the user's avatar image.
    id int
    The internal ID number of the user.
    name str
    The name of the user.
    state str
    The state of the user account.
    username str
    The username of the user.
    web_url str
    A link to the user's profile page.
    avatarUrl String
    A link to the user's avatar image.
    id Number
    The internal ID number of the user.
    name String
    The name of the user.
    state String
    The state of the user account.
    username String
    The username of the user.
    webUrl String
    A link to the user's profile page.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v9.2.0 published on Friday, Jul 18, 2025 by Pulumi