chainlink-testing-framework icon indicating copy to clipboard operation
chainlink-testing-framework copied to clipboard

Add jira client cli tool

Open lukaszcl opened this issue 11 months ago • 1 comments

This will be needed for https://smartcontract-it.atlassian.net/browse/TT-1820


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes introduce a new Jira client tool within the Chainlink testing framework. This tool is designed to simplify interactions with Jira through the command line, making it easier for developers to manage issues directly from their terminal. By providing functionalities such as listing, creating, updating tickets, and adding comments, the tool aims to streamline project management tasks and improve productivity.

What

  • tools/jira_client/go.mod
    • Initialized module with dependencies for Jira API interaction, command-line interface building, and error handling. This sets up the project for Go's dependency management.
  • tools/jira_client/go.sum
    • Generated checksum file for module dependencies to ensure consistent and secure builds. This file verifies the integrity of the modules.
  • tools/jira_client/main.go
    • Introduced the main application code, implementing the CLI tool. This includes the setup of Cobra commands for different actions (list, create, update, comment, close) and their respective flags for issue management in Jira.
    • Implemented helper functions for creating the Jira client and handling transitions, enhancing user interaction with the Jira API.
    • Added environment variable checks for Jira credentials, enforcing security and ease of configuration for the user.

lukaszcl avatar Jan 14 '25 10:01 lukaszcl