Skip to content

Commit cd35eef

Browse files
committed
Update README.md to explain --reopen-window and related notes
1 parent 639716f commit cd35eef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ OPTIONS:
8686
--github-app-private-key value GitHub App private key (command line argument is not recommended) [$ATG_GITHUB_APP_PRIVATE_KEY]
8787
--github-token value GitHub API token (command line argument is not recommended) [$ATG_GITHUB_TOKEN]
8888
--auto-close-resolved-issues Should issues be automatically closed when resolved (default: true) [$ATG_AUTO_CLOSE_RESOLVED_ISSUES]
89+
--reopen-window value Alerts will create a new issue instead of reopening closed issues if the specified duration has passed [$ATG_REOPEN_WINDOW]
8990
--help, -h show help
9091
```
9192
@@ -99,6 +100,7 @@ Issue title and body are rendered from [Go template](https://golang.org/pkg/text
99100
100101
- Variables
101102
- `.Payload`: Webhook payload incoming to this receiver. For more information, see `WebhookPayload` in [pkg/types/payload.go](https://github.com/pfnet-research/alertmanager-to-github/blob/master/pkg/types/payload.go)
103+
- `.PreviousIssue`: The previous issue with the same alert ID, or `nil` if there is no such issue. For more information, see `Issue` in [github.com/google/go-github/v54/github](https://pkg.go.dev/github.com/google/go-github/v54@v54.0.0/github#Issue). Useful when `--reopen-window` is specified.
102104
- Functions
103105
- `urlQueryEscape`: Escape a string as a URL query
104106
- `json`: Marshal an object to JSON string

0 commit comments

Comments
 (0)