Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jira client cli tool #1561

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukaszcl
Copy link
Contributor

@lukaszcl lukaszcl commented Jan 14, 2025

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.

@cl-sonarqube-production
Copy link

@lukaszcl lukaszcl marked this pull request as draft January 24, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant