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 PLUGIN_ISSUEKEYS to Accept Arrays of Issue Keys #21

Open
Ompragash opened this issue Sep 12, 2024 · 0 comments
Open

Add PLUGIN_ISSUEKEYS to Accept Arrays of Issue Keys #21

Ompragash opened this issue Sep 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ompragash
Copy link
Member

Description:

This enhancement request proposes adding a new plugin configuration option PLUGIN_ISSUEKEYS that allows passing multiple issue keys as an array. If this parameter is not provided, the current behavior of extracting the issue key from the commit message will remain unchanged.

Problem:

Currently, the plugin only supports extracting a single issue key from the commit message, pull request title, branch name, etc. In cases where multiple issue keys are associated with a single deployment or build, this limitation prevents users from explicitly providing those issue keys in the plugin configuration.

Solution:

Introduce a new parameter PLUGIN_ISSUEKEYS to accept an array of issue keys. The plugin will prioritize this parameter if provided. If it is not provided, the plugin will continue with the current extraction behavior from the commit details.

Example Usage:

  1. Passing Multiple Issue Keys:
    Users can now pass multiple issue keys using the PLUGIN_ISSUEKEYS parameter:
- name: deployment
  image: plugins/jira
  settings:
    cloud_id: your-cloud-id
    client_id: your-client-id
    client_secret: your-client-secret
    project: SCRUM
    issuekeys:
      - SCRUM-1
      - SCRUM-2
      - SCRUM-3
      - SCRUM-4
  1. Old Behavior (No Issue Keys Passed):
    If PLUGIN_ISSUEKEYS is not provided, the plugin will default to the existing behavior of extracting a single issue key from the commit message or other sources.
@Ompragash Ompragash added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant