-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIRA: RHELWF-10977
- Loading branch information
Showing
36 changed files
with
1,069 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
- version: 1 | ||
name: "Example Rule" | ||
prerequisites: | ||
pp_schedule_item_name: "Release Date" | ||
days_before_or_after: -7 | ||
dependent_rules: | ||
- "Dependent Rule 1" | ||
- "Dependent Rule 2" | ||
- condition: "major >= 10" | ||
- schedule_task: "GA for rhel {{ major }}.{{ minor }}" | ||
target_date: "start_date - 7|days" | ||
- rule: "Dependent Rule 1" | ||
- rule: "Dependent Rule 2" | ||
jira_issues: | ||
- template: "examples/jira/main.yaml" | ||
- id: main | ||
template: "examples/jira/main.yaml" | ||
subtasks: | ||
- template: "examples/jira/add_beta_repos.yaml" | ||
- template: "examples/jira/notify_team.yaml" | ||
- template: "examples/jira/secondary.yaml" | ||
- id: add_beta_repos | ||
template: "examples/jira/add_beta_repos.yaml" | ||
- id: notify_team | ||
template: "examples/jira/notify_team.yaml" | ||
- id: secondary | ||
template: "examples/jira/secondary.yaml" | ||
|
||
- version: 1 | ||
name: "Dependent Rule 1" | ||
prerequisites: | ||
pp_schedule_item_name: "Release Date" | ||
days_before_or_after: -21 | ||
- schedule_task: "TASK" | ||
target_date: "start_date - 3|weeks" | ||
jira_issues: [] | ||
|
||
- version: 1 | ||
name: "Dependent Rule 2" | ||
prerequisites: | ||
pp_schedule_item_name: "Release Date" | ||
days_before_or_after: -14 | ||
- schedule_task: "TASK" | ||
target_date: "start_date - 2|weeks" | ||
jira_issues: [] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
from pydantic import BaseModel, Field | ||
|
||
|
||
class JiraIssueTemplate(BaseModel): | ||
"""Jira issue template with optional sub-tasks.""" | ||
|
||
id: str = Field(description="Unique identifier for the issue.") | ||
template: str = Field(description="The template file for the jira issue.") | ||
subtasks: list["JiraIssueTemplate"] = Field( | ||
default=[], description="The subtasks for the jira issue." | ||
) | ||
|
||
@property | ||
def label(self): | ||
return f"retasc-id-{self.id}" |
Oops, something went wrong.