sample
turbot/flowpipe-samples/notify-teams-gitlab-project-visibility
Get Involved
Version
Pipeline: Notify GitLab Project Visibility Changes
Notify a Microsoft Teams channel when a GitLab's project visibility is changed.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run notify_teams_gitlab_project_visibility.pipeline.notify_teams_gitlab_project_visibility \ --arg 'group_id=<string>' \ --arg 'action_public_to_private=<bool>' \ --arg 'team_id=<string>' \ --arg 'teams_channel_id=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = notify_teams_gitlab_project_visibility.pipeline.notify_teams_gitlab_project_visibility args = { group_id = <string> action_public_to_private = <bool> team_id = <string> teams_channel_id = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
gitlab_conn | connection.gitlab | Yes | Name of GitLab connection to use. If not provided, the default GitLab connection will be used. | connection.gitlab.default |
group_id | string | Yes | GitLab Group ID. | - |
action_public_to_private | bool | Yes | Pass true to make unapproved public projects to private. | - |
teams_conn | connection.teams | Yes | Name of Teams connection to use. If not provided, the default Teams connection will be used. | connection.teams.default |
team_id | string | Yes | The unique identifier of the team. | - |
teams_channel_id | string | Yes | The unique identifier for the channel. | - |
Outputs
Name | Description |
---|---|
public_projects | List of all public projects in the group. |
approved_public_project_ids | List of Approved public project Ids in the group. |
updated_projects | List of Projects that are updated from Public to Private visibility. |
Tags
recommended = true