Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); name the setting to change where the Jira project lacks the issue type
This commit is contained in:
@@ -19,7 +19,7 @@ One pair per machine, the same for every epic (docs/decisions.md → `do-epic: d
|
||||
- `jira-finish-transition` and `jira-finish-status` name the workflow transition that moves a finished chunk's issue and closes a finished epic, such as "Mark as done", and the status it leads to, such as "Done". A project's config names a plan item's the same way. Set both or neither; without them do-epic moves no issue to done and closes no epic.
|
||||
- `jira-unblocking-statuses` lists the statuses at which an issue's work has landed though Jira doesn't count it done yet, such as `["Release Ready"]`, in upper or lower case. An issue in one of them takes no chunk and no longer blocks the issues it blocks. A status Jira counts as done always does both, listed or not.
|
||||
- `jira-automation-moves-issues = true` says the team's own automation moves an issue when its pull request merges. do-epic then moves only the issue of a chunk without a repo, which has no pull request, and waits for the automation to move each other. It needs `jira-unblocking-statuses`, which then names the status the automation gives an issue whose pull request merged. false where left out.
|
||||
- `jira-finding-type` and `jira-review-type` name the Jira issue types do-epic files a finding and a repo's release review as under the epic, such as `"Feature"` and `"Chore"`, for a Jira project that has no Task type. Task where left out. do-epic files nothing where the project lacks the type, and says which types it has.
|
||||
- `jira-finding-type` names the Jira issue type do-epic files a finding as, and `jira-review-type` the one it files a repo's release review as, such as `"Feature"` and `"Chore"`, for a Jira project that has no Task type. Task where left out. do-epic doesn't file anything where the project lacks the type, and says which types it has.
|
||||
- `sub-task-summary` shapes the summary of each sub-task do-epic files for an issue that changes several repos, such as `"{label}: {Summary}"`. `{label}` is the team's label for the repo, else the repo's name, and `{Summary}` is the issue's summary with a capital first letter. It must hold `{Summary}`. Where left out, a summary is `[<repo>] <the issue's summary>`.
|
||||
- `[label-repos]` has one line for each label of the team's own that names a repo: the label, then that repo's name, such as `twu-4 = "tenant-web-ui-4"`. do-epic reads such a label as it reads its own `repo:<name>`. A team whose label is the repo's name maps the name to itself. Where several lines name one repo, do-epic writes the label of the first.
|
||||
- `repo-rule.md` is prose that says how to tell an item's repo, and mustn't be blank."""
|
||||
@@ -29,7 +29,7 @@ import re
|
||||
import string
|
||||
import types
|
||||
|
||||
from project_config.settings import anywhere, CONFIG, DEFAULT_ISSUE_TYPE, DO_EPIC, ENV_FILE, Finish, finish_faults, finish_of, JIRA_FINDING_TYPE, JIRA_FINISH, LANGUAGE, language_fault, lies_in, name_of, parsed, PROJECTS, SITE, type_fault
|
||||
from project_config.settings import anywhere, CONFIG, DEFAULT_ISSUE_TYPE, DO_EPIC, ENV_FILE, Finish, finish_faults, finish_of, JIRA_FINDING_TYPE, JIRA_FINISH, JIRA_REVIEW_TYPE, LANGUAGE, language_fault, lies_in, name_of, parsed, PROJECTS, SITE, type_fault
|
||||
from failure import Failure
|
||||
from do_epic.backend.protocol import LABEL
|
||||
from do_epic.repo_pick import LabelRepos, of_label, REPO_NAME, REVIEW_LABEL
|
||||
@@ -49,8 +49,7 @@ LABEL_REPOS = "label-repos"
|
||||
UNBLOCKING_STATUSES = "jira-unblocking-statuses"
|
||||
AUTOMATION_MOVES = "jira-automation-moves-issues"
|
||||
SUB_TASK_SUMMARY = "sub-task-summary"
|
||||
REVIEW_TYPE = "jira-review-type"
|
||||
ISSUE_TYPES = (JIRA_FINDING_TYPE, REVIEW_TYPE)
|
||||
ISSUE_TYPES = (JIRA_FINDING_TYPE, JIRA_REVIEW_TYPE)
|
||||
OPTIONAL = (CLONE_FOLDER, LANGUAGE, *JIRA_FINISH, UNBLOCKING_STATUSES, AUTOMATION_MOVES, LABEL_REPOS, SUB_TASK_SUMMARY, *ISSUE_TYPES)
|
||||
LISTED = f"The settings are {', '.join(SETTINGS)}, and optionally {listed(OPTIONAL, 'and')}."
|
||||
|
||||
@@ -74,7 +73,6 @@ class DoEpicConfig:
|
||||
automation_moves: bool = False
|
||||
# The SUB_TASK_SUMMARY template; None where the config has none.
|
||||
sub_task_summary: str | None = None
|
||||
# The issue types a finding and a release review are filed as under the epic.
|
||||
finding_type: str = DEFAULT_ISSUE_TYPE
|
||||
review_type: str = DEFAULT_ISSUE_TYPE
|
||||
|
||||
|
||||
@@ -62,8 +62,10 @@ JIRA_FINISH = (JIRA_FINISH_TRANSITION, JIRA_FINISH_STATUS)
|
||||
JIRA_SCORE_FORMULA = "jira-score-formula"
|
||||
JIRA_SCORE_BAR = "jira-score-bar"
|
||||
JIRA_SCORE = (JIRA_SCORE_FORMULA, JIRA_SCORE_BAR)
|
||||
# The issue type `todo-item add` files an item as, and do-epic files a finding as; the default is the one Jira ships in every project of its software templates, which a project may lack.
|
||||
# The issue types that `todo-item add` files an item as and do-epic files a finding as, and do-epic files a release review as; only do-epic's config reads the review type.
|
||||
JIRA_FINDING_TYPE = "jira-finding-type"
|
||||
JIRA_REVIEW_TYPE = "jira-review-type"
|
||||
# Jira Software's project templates ship Task, but a project such as TW may lack it.
|
||||
DEFAULT_ISSUE_TYPE = "Task"
|
||||
# The settings allowed only where `plan` names a Jira epic.
|
||||
JIRA_PLAN_ONLY = (*JIRA_FINISH, *JIRA_SCORE, JIRA_FINDING_TYPE)
|
||||
|
||||
Reference in New Issue
Block a user