Skip to main content

No project description provided

Project description

Post or Update Comments on Gitlab MR

The idea behind this project is to post content on the Gitlab MR which dynamically updates as new commits are made. In order to do that, we add a comment at the start of our content to identify the job the content is from.

Usage

  • General Access Token from Settings > Access Tokens with api permissions.
  • Go to Settings > CI/CD > Variables > Add Variables
  • Set the key to GITLAB_PRIVATE_TOKEN and value to key generated in first step.
  • Set Mask flag and uncheck Protect flag.
  • Create a test like follows
test:
  stage: test
  script:
    - pip install gitlab-mr-note
    - echo hello world | gitlab-mr-note
  only:
    - merge_requests

gitlab-mr-note infers the details from environment variables set in the CI. For manual usage, pass the following args.

Usage: gitlab-mr-note [OPTIONS]

Options:
  -s, --server-url TEXT     Server URL of gitlab instance
  -m, --mr-id TEXT          ID of the MR to comment on
  -p, --project-id TEXT     ID of the Project
  -j, --job-name TEXT       Job Name
  -t, --private-token TEXT  Private Token
  --help                    Show this message and exit.

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

gitlab_mr_note-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitlab_mr_note-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file gitlab_mr_note-1.0.0.tar.gz.

File metadata

  • Download URL: gitlab_mr_note-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/6.0.12-arch1-1

File hashes

Hashes for gitlab_mr_note-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3cabac1372f8f7cdf85d76ff76bbdf1d6c9fc17639b8134702db58c98fcc7d4a
MD5 9633dde9d0cc610bd7229b20aa5c6a1e
BLAKE2b-256 979613722cb92b8202592e2a3044831de5f039dc7dc5d5696e780cd50e47c540

See more details on using hashes here.

File details

Details for the file gitlab_mr_note-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gitlab_mr_note-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/6.0.12-arch1-1

File hashes

Hashes for gitlab_mr_note-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4296beda3319a7928e1c4d05515cc05f436fc435207ed7c3a9b6d226fcd4fd31
MD5 97a517d02cdb3315946f0a52be05f5c6
BLAKE2b-256 0296c0ada5469f4ccbbacee68bbc39b3e80f482be88dd6c57e2c100b54aab740

See more details on using hashes here.

Supported by

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