getProjectIssue

The gitlab.ProjectIssue data source allows to retrieve details about an issue in a project. Upstream API: GitLab API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const foo = gitlab.getProject({
pathWithNamespace: "foo/bar/baz",
});
const welcomeIssue = foo.then(foo => gitlab.getProjectIssue({
project: foo.id,
iid: 1,
}));
export const welcomeIssueWebUrl = data.gitlab_project_issue.web_url;
import pulumi
import pulumi_gitlab as gitlab
foo = gitlab.get_project(path_with_namespace="foo/bar/baz")
welcome_issue = gitlab.get_project_issue(project=foo.id,
iid=1)
pulumi.export("welcomeIssueWebUrl", data["gitlab_project_issue"]["web_url"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var foo = GitLab.GetProject.Invoke(new()
{
PathWithNamespace = "foo/bar/baz",
});
var welcomeIssue = GitLab.GetProjectIssue.Invoke(new()
{
Project = foo.Apply(getProjectResult => getProjectResult.Id),
Iid = 1,
});
return new Dictionary<string, object?>
{
["welcomeIssueWebUrl"] = data.Gitlab_project_issue.Web_url,
};
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := gitlab.LookupProject(ctx, &gitlab.LookupProjectArgs{
PathWithNamespace: pulumi.StringRef("foo/bar/baz"),
}, nil)
if err != nil {
return err
}
_, err = gitlab.LookupProjectIssue(ctx, &gitlab.LookupProjectIssueArgs{
Project: foo.Id,
Iid: 1,
}, nil)
if err != nil {
return err
}
ctx.Export("welcomeIssueWebUrl", data.Gitlab_project_issue.Web_url)
return nil
})
}
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.GetProjectArgs;
import com.pulumi.gitlab.inputs.GetProjectIssueArgs;
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 foo = GitlabFunctions.getProject(GetProjectArgs.builder()
.pathWithNamespace("foo/bar/baz")
.build());
final var welcomeIssue = GitlabFunctions.getProjectIssue(GetProjectIssueArgs.builder()
.project(foo.applyValue(getProjectResult -> getProjectResult.id()))
.iid(1)
.build());
ctx.export("welcomeIssueWebUrl", data.gitlab_project_issue().web_url());
}
}
variables:
foo:
fn::invoke:
Function: gitlab:getProject
Arguments:
pathWithNamespace: foo/bar/baz
welcomeIssue:
fn::invoke:
Function: gitlab:getProjectIssue
Arguments:
project: ${foo.id}
iid: 1
outputs:
welcomeIssueWebUrl: ${data.gitlab_project_issue.web_url}

Return

A collection of values returned by getProjectIssue.

Parameters

argument

A collection of arguments for invoking getProjectIssue.


suspend fun getProjectIssue(iid: Int, project: String): GetProjectIssueResult

Return

A collection of values returned by getProjectIssue.

Parameters

iid

The internal ID of the project's issue.

project

The name or ID of the project.

See also


Return

A collection of values returned by getProjectIssue.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectIssuePlainArgs.

See also