Skip to main content

argus_ticket_github

This is a plugin to create tickets in Github from Argus

Settings

  • TICKET_PLUGIN: "argus_ticket_github.GithubPlugin"

  • TICKET_ENDPOINT: "https://github.com/" or link to self-hosted instance, absolute URL

  • TICKET_AUTHENTICATION_SECRET: Create a personal access token with the scope repo:

    {
        "token": token
    }
    

    It is recommended to create a Github API user and to ensure that that user has the necessary authorization for creating issues in the relevant repository.

  • TICKET_INFORMATION:

    Project namespace and name (obligatory)

    {
        "project_namespace_and_name": project_namespace_and_name
    }
    

    To know which project to create the ticket in the Github API needs to know the owner and name of it. The owner is the user or organization the Github repository belongs to and the name is the name of the Github project.

    For the Github project Hello Git World the dictionary would look like this:

    {
       "project_namespace_and_name": "githubtraining/hellogitworld",
    }
    

    Labels (optional)

    There are two ways of automatically filling labels:

    1. Labels that are always the same, independent of the incident. These will be set in labels_set.

      {
          "labels_set" : [
              label1,
              label2,
              label3,
          ]
      }
      
    2. Labels that are filled by attributes of the Argus incident. These are set in labels_mapping which is a list of the names of the attributes as they are returned by the API (e.g. start_time). If the information can be found in the tags the it has to be a dictionary with tag as the key and the name of the tag as the value (e.g. {"tag": "host"}).

      {
          "labels_mapping" : [
              attribute_of_incident,
              {"tag": name_of_tag},
          ]
      }
      

Code style

argus_ticket_github uses ruff as a Python source code formatter and linter. Ruff can be installed by running

$ pip install ruff

A pre-commit hook will format new code automatically before committing. To enable this pre-commit hook, run

$ pre-commit install

Running tests

If you have installed tox, the following command will test argus_ticket_rt code against several Django versions, several Python versions, and automatically compute code coverage.

$ tox

An HTML coverage report will be generated. Refer to the tox.ini file for further options.

Metadata

Release files for argus-ticket-github 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for argus-ticket-github 1.2.1
File Interpreter ABI Platform Actions
argus_ticket_github-1.2.1-py3-none-any.whl Python 3 none any Details for argus_ticket_github-1.2.1-py3-none-any.whl

Release files / argus_ticket_github-1.2.1-py3-none-any.whl

Download URL argus_ticket_github-1.2.1-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b60c971def7ce37dc5b8f320921889eb81755fb460a9dfd491e8d9c81700ee46
BLAKE2b-256 checksum
How to use checksums
d38a66fb8ee2fc63b5904e714e80deeef90fb26aa09fdca0ba700559ca74995e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for argus-ticket-github 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page