Skip to content

Commit 5ba0677

Browse files
committed
feat(models): add support for parameters in workflow rule and trigger schemes
Added a new `Parameters` field to `WorkflowRuleConfigurationScheme` and `WorkflowTriggerScheme` to support additional configuration.
1 parent eabcf49 commit 5ba0677

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/codacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
4242
- name: Run Codacy Analysis CLI
43-
uses: codacy/codacy-analysis-cli-action@562ee3e92b8e92df8b67e0a5ff8aa8e261919c08 # v4
43+
uses: codacy/codacy-analysis-cli-action@97bf5df3c09e75f5bcd72695998f96ebd701846e # v4
4444
with:
4545
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
4646
# You can also omit the token and run the tools that support default configurations

pkg/infra/models/jira_workflow.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ type WorkflowTransitionScheme struct {
5858
}
5959

6060
type WorkflowRuleConfigurationScheme struct {
61-
ID string `json:"id,omitempty"`
62-
RuleKey string `json:"ruleKey,omitempty"`
61+
ID string `json:"id,omitempty"`
62+
RuleKey string `json:"ruleKey"`
63+
Parameters map[string]any `json:"parameters,omitempty"` // Not required for rule config payload
6364
}
6465

6566
type ConditionGroupConfigurationScheme struct {
@@ -80,8 +81,9 @@ type WorkflowTransitionLinkScheme struct {
8081
}
8182

8283
type WorkflowTriggerScheme struct {
83-
ID string `json:"id,omitempty"`
84-
RuleKey string `json:"ruleKey,omitempty"`
84+
ID string `json:"id,omitempty"`
85+
RuleKey string `json:"ruleKey"`
86+
Parameters map[string]any `json:"parameters"` // Required for transition trigger payload
8587
}
8688

8789
// WorkflowTransitionScreenScheme represents a screen associated with a transition in a workflow in Jira.

0 commit comments

Comments
 (0)