Metadata-Version: 2.4
Name: gazix
Version: 1.8.0
Summary: Programs to manipulate the GitLab-CI API for the project alya
Project-URL: Homepage, https://alya.gitlab.bsc.es/alya/ci-cd/gazix
Project-URL: Bug Tracker, https://alya.gitlab.bsc.es/alya/ci-cd/gazix/issues
Author-email: Damien Dosimont <damien.dosimont@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# gazix

Gazix is a python framework that facilitates the interaction with the GitLab API.

## Comment on a merge request

```sh
gazix comment --gitlab "$CI_API_V4_URL" \
  --project 20 --MR 483 \
  --token-env SQUIDIENT_WRITE_API_TOKEN --message-env MR_COMMENT
```

Set the credential and Markdown body in the named environment variables in the
trusted calling pipeline. The API URL defaults to GitLab's predefined
`CI_API_V4_URL` when `--gitlab` is omitted; outside CI, pass an explicit HTTPS API
URL with `--gitlab`. Alternatively, `--token` and `--message` accept direct values,
but environment variables avoid exposing their contents in process arguments.
The body is sent as JSON, preserving multiline Markdown, Unicode and
shell metacharacters without executing them.

The command requires positive numeric project and merge-request identifiers and
an HTTPS API URL ending in `/api/v4`. It refuses redirects, does not use proxies
from the environment, and returns a nonzero status on API or transport errors.
Neither the token nor the comment body is printed, including on failures. A
failed POST is not retried automatically because it may already have created
the note before the connection was interrupted.

Authorization of target projects and selection of a trusted API URL remain the
calling service's responsibility. Taskmaster provides that policy for CI callers.
