Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,43 @@ None

## Options

| Option | Notes |
| :-------------------------------------- | :------------------------------------------------- |
| `--github-annotations-limit=<int>` | Max number of GitHub Checks Annotations to attempt |
| `--github-api-url=<url>` | REST API URL (for GitHub Enterprise) |
| `--github-base-url=<url>` | Non-REST API URL (for GitHub Enterprise) |
| `--github-repo=<repo>` | `username/repository` identifier |
| `--github-status-use-htmlreport=<bool>` | Use htmlout for Github Status 'Details' link |
| `--github-token=<token>` | Token used to perform read and write operations |
| Option | Notes |
| :--------------------------------------------- | :-------------------------------------------------------------- |
| `--github-annotations-limit=<int>` | Max number of GitHub Checks Annotations to attempt |
| `--github-api-url=<url>` | REST API URL (for GitHub Enterprise) |
| `--github-base-url=<url>` | Non-REST API URL (for GitHub Enterprise) |
| `--github-comment-key=<key>` | Key for matching prior comments in `update` or `hide` mode |
| `--github-comment-mode=<append\|update\|hide>` | How to handle prior PR comments (`append`, `update`, or `hide`) |
| `--github-repo=<repo>` | `username/repository` identifier |
| `--github-status-use-htmlreport=<bool>` | Use htmlout for Github Status 'Details' link |
| `--github-token=<token>` | Token used to perform read and write operations |
| `--github-write-comment` | Write the final report as a PR comment |

## Managing PR Comments

`--github-write-comment` appends a new PR comment on every run. `--github-comment-mode=<append|update|hide>` implies
`--github-write-comment` and controls how prior final report comments are handled:

1. `append` (default): appends a new PR comment on every run.
1. `update`: edits the oldest visible report comment previously written by the same GitHub user with the same key,
and minimizes any extra visible duplicates as outdated.
1. `hide`: posts a new report comment and hides (minimizes as outdated via GraphQL) prior visible report comments
written by the same GitHub user with the same key.

Use `--github-comment-key=<key>` (default: `default`; allowed characters: `A-Z`, `a-z`, `0-9`, `.`, `_`, `-`) to
assign a separate key per job when one build posts multiple reports, e.g., one per OS.

In `update` and `hide` modes (applied to final report comments only; other comments such as re-exec notices are
always appended):

1. The report carries a hidden `<!-- yetus-report:<key> -->` marker and a `Tested commit` row.
1. The token's user comes from `GET /user`. Under GitHub Actions, where that call is denied, `github-actions[bot]`
is assumed (with a warning logged).
1. Already-hidden (minimized) comments are ignored.
1. If the PR head moved past the tested commit, the comment is skipped so a slow build cannot replace or hide the
report of a newer one. Statuses are still written.
1. If looking up or updating a prior comment fails, a new comment is still posted; failures to hide prior comments
only log a warning.

## HTML Details LInk

Expand Down
Loading
Loading