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

feat(jira): add CLI commands for JIRA attachments and comments #60

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hoegertn
Copy link
Member

This commit introduces new executable scripts, pipelines-jira-attachment.js and pipelines-jira-comment.js, to the bin directory, enabling interaction with JIRA for attaching files to issues and adding comments. The corresponding TypeScript source files have been added under src/jira.

The following additional changes have been made:

  • Added axios as a new dependency and bundled it, ensuring that it is included in the package.

These changes expand the library's functionality by providing command-line tools that can integrate with JIRA for automated workflows, which can be especially useful in continuous integration systems.

This commit introduces new executable scripts, `pipelines-jira-attachment.js` and `pipelines-jira-comment.js`, to the `bin` directory, enabling interaction with JIRA for attaching files to issues and adding comments. The corresponding TypeScript source files have been added under `src/jira`.

The following additional changes have been made:
- Added `axios` as a new dependency and bundled it, ensuring that it is included in the package.

These changes expand the library's functionality by providing command-line tools that can integrate with JIRA for automated workflows, which can be especially useful in continuous integration systems.
@hoegertn hoegertn marked this pull request as draft April 28, 2024 23:09
hoegertn and others added 4 commits April 29, 2024 14:20
Added a new function `findJiraIssueKey` to the Jira module that extracts a Jira issue key from a given string using regex. This utility is designed to identify keys that match the pattern of one or more uppercase characters, followed by an optional sequence of alphanumeric or underscore characters, a hyphen, and then one or more digits. The function allows for certain non-alphanumeric boundary characters around the issue key.

Also introduced a new test file `jira.test.ts` containing unit tests to validate the functionality of `findJiraIssueKey`. Tests cover cases including correct identification of an issue key at various positions within a string and ensuring that an issue key surrounded by non-whitespace characters is not incorrectly matched.
Signed-off-by: github-actions <github-actions@github.com>
Signed-off-by: github-actions <github-actions@github.com>
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.

None yet

1 participant