repomatic issue - Open, update or close the issue tracking a
condition
repomatic issue [OPTIONS]
Open, update or close the one issue tracking a condition.
The issue is found again by its exact title. --open creates it
with the body of --body-file, or updates the issue already there, and
reopens it when it was closed. --close closes every open issue with that
title. Both close any duplicate, and a new issue carries the bot label.
Each repomatic operation that tracks a condition has a command of
its own. This one serves a job a repository runs on its own, which has
none.
Requires the gh CLI to be authenticated.
- --open /
--close
- Whether the condition holds. --open creates the issue, or updates and
reopens the one already there. --close closes it.
- --title
TEXT
- Exact title of the issue, which finds it again on the next run.
[required]
- --body-file
FILE
- Markdown file holding the issue body. Required with --open.
- --label
TEXT
- Label a new issue carries beside '🤖 ci'. The label must exist.
Repeat to provide multiple.
- --assignee
TEXT
- Login to assign a new issue to. Repeat to provide multiple.
- --close-comment
TEXT
- Comment left on an issue that --close closes.
- --repo
TEXT
- Repository in owner/repo format. Defaults to $GITHUB_REPOSITORY.
- --help /
-h
- Show this message and exit.
- ISSUE_IS_OPEN
- Whether the condition holds. --open creates the issue, or updates and
reopens the one already there. --close closes it.
- ISSUE_TITLE
- Exact title of the issue, which finds it again on the next run.
- ISSUE_BODY_FILE
- Markdown file holding the issue body. Required with --open.
- ISSUE_LABELS
- Label a new issue carries beside '🤖 ci'. The label must exist.
Repeat to provide multiple.
- ISSUE_ASSIGNEES
- Login to assign a new issue to. Repeat to provide multiple.
- Comment left on an issue that --close closes.
- GITHUB_REPOSITORY
- Repository in owner/repo format. Defaults to $GITHUB_REPOSITORY.
- ISSUE_REPO
- Repository in owner/repo format. Defaults to $GITHUB_REPOSITORY.
- ISSUE__CLICK_DEFAULT_HELP
- Show this message and exit.
- 0
- Success.
- 1
- A runtime error, an aborted prompt (Ctrl-D), or a declined
confirmation.
- 2
- A usage error: unknown option, invalid value, missing operand, or an
unparsable configuration file.
- 130
- Interrupted with Ctrl-C: the process ends by SIGINT, reported as 130.
Open the issue, or update the one already open
repomatic issue --open --title "Weather station offline" --body-file station.md
Close it once the condition clears
repomatic issue --close --title "Weather station offline"