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

added a simple regex to find jira issue in field by a given regex #714

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

dustinvanbuskirk
Copy link
Contributor

What

Adding in regex support.

Why

This was a todo and is now required as it is going to be used by prospect/customer.

Notes

Test locally via temporary step dustinvanbuskirk/jira-issue-manager

version: '1.0'

steps:
  JiraCommentCreate:
    title: Add Jira Comment
    type: dustinvanbuskirk/jira-issue-manager
    arguments:
      JIRA_BASE_URL: 'https://cf-demo-jira.atlassian.net/'
      JIRA_USERNAME: '${{JIRA_USERNAME}}'
      JIRA_API_KEY: '${{JIRA_API_KEY}}'
      JIRA_ISSUE_SOURCE_FIELD: 'SDD-1-My-Feature-Branch'
      JIRA_ISSUE_SOURCE_FIELD_REGEX: '.*(?=-)-[0-9]+'
      ACTION: comment_create
      COMMENT_BODY: Test from codefresh pipeline
[2025-01-09T19:45:41.079Z] Status: Downloaded newer image for dustinvanbuskirk/jira-issue-manager:1.0.12
[2025-01-09T19:45:43.542Z] Step Action: comment_create

[2025-01-09T19:45:43.542Z] Create comment
[2025-01-09T19:45:43.757Z] Comment id: 10078

Output to SSD-1

Screenshot 2025-01-09 at 11 56 53 AM

Copy link
Contributor

@lrochette lrochette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustinvanbuskirk dustinvanbuskirk merged commit 62cbc72 into master Jan 9, 2025
1 of 2 checks passed
@dustinvanbuskirk dustinvanbuskirk deleted the jira-issue-manager-add-regex-support branch January 9, 2025 20:40
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.

2 participants