Global Level Notifications Args
The gitlab.GlobalLevelNotifications
resource allows to manage global notifications. Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// Create Custom global level notification
const foo = new gitlab.GlobalLevelNotifications("foo", {
level: "custom",
newMergeRequest: true,
});
import pulumi
import pulumi_gitlab as gitlab
# Create Custom global level notification
foo = gitlab.GlobalLevelNotifications("foo",
level="custom",
new_merge_request=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// Create Custom global level notification
var foo = new GitLab.GlobalLevelNotifications("foo", new()
{
Level = "custom",
NewMergeRequest = true,
});
});
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 {
// Create Custom global level notification
_, err := gitlab.NewGlobalLevelNotifications(ctx, "foo", &gitlab.GlobalLevelNotificationsArgs{
Level: pulumi.String("custom"),
NewMergeRequest: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GlobalLevelNotifications;
import com.pulumi.gitlab.GlobalLevelNotificationsArgs;
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) {
// Create Custom global level notification
var foo = new GlobalLevelNotifications("foo", GlobalLevelNotificationsArgs.builder()
.level("custom")
.newMergeRequest(true)
.build());
}
}
resources:
# Create Custom global level notification
foo:
type: gitlab:GlobalLevelNotifications
properties:
level: custom
newMergeRequest: true
Import
Note: You can import a global notification state using "gitlab" as the ID. The ID will always be gitlab, because the global notificatio only exists once per user
$ pulumi import gitlab:index/globalLevelNotifications:GlobalLevelNotifications example gitlab
Constructors
Properties
Enable notifications for closed issues. Can only be used when level
is custom
.
Enable notifications for closed merge requests. Can only be used when level
is custom
.
Enable notifications for failed pipelines. Can only be used when level
is custom
.
Enable notifications for fixed pipelines. Can only be used when level
is custom
.
Enable notifications for merged merge requests. Can only be used when level
is custom
.
Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level
is custom
.
Enable notifications for moved projects. Can only be used when level
is custom
.
Enable notifications for new merge requests. Can only be used when level
is custom
.
Enable notifications for push to merge request branches. Can only be used when level
is custom
.
Enable notifications for issue reassignments. Can only be used when level
is custom
.
Enable notifications for merge request reassignments. Can only be used when level
is custom
.
Enable notifications for reopened issues. Can only be used when level
is custom
.
Enable notifications for reopened merge requests. Can only be used when level
is custom
.
Enable notifications for successful pipelines. Can only be used when level
is custom
.