Take a project's goals and audience from a Jira epic's description where its config names one
CI / tests (pull_request) Successful in 2m1s
CI / tests (pull_request) Successful in 2m1s
This commit is contained in:
@@ -26,6 +26,10 @@ starts with / or ~/. In a worktree, a "checkout:" path is the worktree's own fil
|
||||
Jira's backlog order, and `project-config plan` prints the setting as the config spells it. Such a
|
||||
config must set `env-file`, and that file must hold ATLASSIAN_EMAIL and ATLASSIAN_API_TOKEN.
|
||||
|
||||
`goals-and-audience` may name a Jira Cloud epic the same way. Its description is then the goals
|
||||
file, with ## Goals and ## Audience as headings, and the same `env-file` rule holds. It is only
|
||||
read: edit the description in Jira. Reviewers get a copy in the review folder.
|
||||
|
||||
`env-file` is an optional setting: the file of KEY=value credentials the project's tools read,
|
||||
a path that starts with / or ~/ and lies outside the checkout and the config's folder, such as
|
||||
"~/.claude-projects/acme-billing.env". Where it is left out, the project has no credentials file, and
|
||||
@@ -129,8 +133,3 @@ def project() -> ProjectConfig | Failure:
|
||||
"""The config of the project whose checkout holds the current directory, under the user's home."""
|
||||
return located(None, pathlib.Path.home())
|
||||
|
||||
|
||||
def goals_file(directory: str, home: pathlib.Path) -> pathlib.Path | Failure:
|
||||
"""The file holding the premises, `## Goals` and `## Audience`, of the project whose checkout holds directory, as its config under home names it."""
|
||||
config = located(directory, home)
|
||||
return config if isinstance(config, Failure) else config.paths["goals-and-audience"]
|
||||
|
||||
Reference in New Issue
Block a user