Skip to content

Commit

Permalink
Add more customizable details for comment messages
Browse files Browse the repository at this point in the history
  • Loading branch information
majamassarini committed Nov 6, 2023
1 parent b7a4679 commit ba93e15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,13 @@ jobs. By default, no message is posted on job failure.

To prevent duplication, Packit posts a comment only when its content differs from the previous comment in the specific
pull request or commit.
To include dynamic content, you can use the `{commit_sha}` placeholder, which will be automatically replaced with
the actual commit SHA provided by Packit (consider using this in relation to the duplication of comments).
To include dynamic content, you can use multiple placeholders which will be automatically replaced (consider using this in relation to the duplication of comments):

- `{commit_sha}`: replaced with the actual commit SHA provided by Packit
- `{logs_url}: replaced with the url to the service's logs, the service can be Copr, Koji or Testing Farm depending on the Packit job
- `{packit_dashboard_url}: replaced with the Packit dashboard url for the job
- `{external_dashboard_url}: url to the service dashboard, the service can be Copr, Koji or Testing Farm depending on the Packit job

You can use this also e.g. to tag a user/namespace that should be notified about the failure.

Example:
Expand Down

0 comments on commit ba93e15

Please sign in to comment.