Skip to main content

A plugin automates interactions with GitLab

Project description

lemniscat.plugin.gitlab

A gitlab plugin for lemniscat

Usage

Pre-requisites

To use this plugin, you need to add plugin into the required section of your manifest file.

requirements:
  - name: lemniscat.plugin.github
    version: 0.2.0

Create a new project in gitlab

- task: gitlab
  displayName: 'Gitlab create project'
  steps:
    - pre
  parameters:
    action: createProject
    gitlabUrl: https://gitlab.com
    token: ${{ gitlab_token}}
    projectname: The name of the project
    groupName: Name of the parent group if the project needs to be created within a group (optional)

Create a new group in gitlab

- task: gitlab
  displayName: 'Gitlab create group'
  steps:
    - pre
  parameters:
    action: createGroup
    gitlabUrl: https://gitlab.com
    token: ${{ gitlab_token}}
    groupName: Name of the group
    parentgroupname: The path of the parent group if the new group is a subgroup (optional) ex: 'peskedlabs/lemniscat'

Add a member to a project in gitlab

- task: gitlab
  displayName: 'Adds a member to a project'
  steps:
    - pre
  parameters:
    action: addMembers
    gitlabUrl: https://gitlab.com
    token: ${{ gitlab_token}}
    projectName: The name of the project for which to add the member
    parentgroupname: The path of the group containing the project (optional) ex: 'peskedlabs/lemniscat'
    memberswithaccesslevel: A list containing the information of members to be added with their access levels in the form [{'member': 'xxx@xxx.com', 'accesslevel': 20}, {'member': 'xxx@xxx.com', 'accesslevel': 30}]. With 20 for gitlab.REPORTER_ACCESS, 30 for gitlab.DEVELOPER_ACCESS, 40 for gitlab.MAINTAINER_ACCESS.

Create a directory tree in gitlab

- task: gitlab
  displayName: 'Recursively creates directories in a GitLab project by creating and deleting temporary files'
  steps:
    - pre
  parameters:
    action: createDirectories
    gitlabUrl: https://gitlab.com
    token: ${{ gitlab_token}}
    projectName: The name of the project for which to add directories
    parentgroupname: ex: The path of the group ex: 'peskedlabs/lemniscat'
    directoryStructure: An array representing the directory tree to be created ex: ['terraform','terraform/params','terraform/terragrunt','terraform/modules']

Inputs

Parameters

  • action : The action to be performed. It can be createProject, createGroup, addMembers or createDirectories.
  • gitLabUrl : Gitlab url.
  • token : Gitlab token.
  • projectName : The name of the project.
  • groupName : The name of the group.
  • parentgroupname : The path of the parent group
  • memberswithaccesslevel : A list containing the information of members to be added with their access levels in the form [{'member': 'xxx@xxx.com', 'accesslevel': 20}, {'member': 'xxx@xxx.com', 'accesslevel': 30}]. With 20 for gitlab.REPORTER_ACCESS, 30 for gitlab.DEVELOPER_ACCESS, 40 for gitlab.MAINTAINER_ACCESS.
  • directoryStructure : An array representing the directory tree to be created ex: ['terraform','terraform/params','terraform/terragrunt','terraform/modules'].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lemniscat_plugin_gitlab-0.3.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

lemniscat.plugin.gitlab-0.3.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file lemniscat_plugin_gitlab-0.3.1.tar.gz.

File metadata

File hashes

Hashes for lemniscat_plugin_gitlab-0.3.1.tar.gz
Algorithm Hash digest
SHA256 12cb5dd7783c36f145c90b0d7964fedaddf06ca40e76f941e847cd01bd51e698
MD5 6e2ef6fd136eed95a2f87f34b9d1e9dd
BLAKE2b-256 0bea75bfe01a4a22aaa6c3b39e0ce6b5b4598432bae5d7fcfc8cc04d869d511b

See more details on using hashes here.

File details

Details for the file lemniscat.plugin.gitlab-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lemniscat.plugin.gitlab-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36b840dbe1218506c87e5e513b58622f7034232d6a8bda19cb36c91b733eb211
MD5 69fa60c4c82d05c35682ab799be3aa97
BLAKE2b-256 b9d520126b4730022f2b1fa5a41582bad436a16ae6250c0bbd9c78c15b799cc4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page