Skip to content

feat: show Renovate CLI version more prominently in logs#983

Merged
jamietanna merged 1 commit intomainfrom
feat/log-version
Dec 15, 2025
Merged

feat: show Renovate CLI version more prominently in logs#983
jamietanna merged 1 commit intomainfrom
feat/log-version

Conversation

@jamietanna
Copy link
Copy Markdown
Contributor

As noted in #969, it would be useful to have a more prominent output in
the logs to indicate the version of the Renovate CLI being used.

This would help with both personal debugging (for administrators of the
GitHub Action) and for raising issues upstream.

To do this, we can call the --version on the CLI, capture the output
and report it back to the user.

By using a Notice annotation, we can then make it more visible at the
job- and step-level.

We can then also wrap it in a group, so it's hidden in its own
expandable group (with timing information).

Closes #969.

As noted in #969, it would be useful to have a more prominent output in
the logs to indicate the version of the Renovate CLI being used.

This would help with both personal debugging (for administrators of the
GitHub Action) and for raising issues upstream.

To do this, we can call the `--version` on the CLI, capture the output
and report it back to the user.

By using a Notice annotation, we can then make it more visible at the
job- and step-level.

We can then also wrap it in a `group`, so it's hidden in its own
expandable group (with timing information).

Closes #969.
@jamietanna jamietanna requested a review from viceice December 15, 2025 10:45
@jamietanna
Copy link
Copy Markdown
Contributor Author

jamietanna commented Dec 15, 2025

Example: https://github.com/renovatebot/github-action/actions/runs/20229280729 (there are 4 notices due to it running 2 parallel tests, which each run Renovate 2 times)

Screenshot 2025-12-15 at 10 47 36 Screenshot 2025-12-15 at 10 47 49

async runDockerContainerForVersion(): Promise<string> {
const command = `docker run -t --rm ${this.docker.image()} --version`;

const { exitCode, stdout } = await getExecOutput(command);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, the docker pull output isn't in stdout 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamietanna jamietanna merged commit fde0305 into main Dec 15, 2025
11 checks passed
@jamietanna jamietanna deleted the feat/log-version branch December 15, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log the Renovate version we're using more visibly

2 participants