Skip to content

Conversation

@W0rma
Copy link
Contributor

@W0rma W0rma commented Dec 23, 2025

I noticed that some github avatars are not properly formatted in https://codeception.com/changelog:

Screenshot from 2025-12-23 10-02-16

Seems like the layout is only broken for github users which have default avatar.
The layout looks fine for users which have their own avatar:

Screenshot from 2025-12-23 10-05-28

RobotFile.php uses the avatar url returned by github and appends the s=16 query parameter to make sure that the size of the image is 16.
However, the "s" query parameter seems to be ignored for default github avatars (see f.e. https://stackoverflow.com/questions/22932422/get-github-avatar-from-email-or-name#comment118252343_36380674).

The "s" query parameter appended to the github avatar url is ignored for default github avatars.
$changelog .= sprintf("\n\n### %s %s: %s\n\n", $repo, $release['tag_name'], $release['name']);

$changelog .= sprintf("Released by [![](%s) %s](%s) on %s",
$changelog .= sprintf('Released by [![](%s){:height="16" width="16"} %s](%s) on %s',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got the syntax from https://kramdown.gettalong.org/syntax.html#images

Since additional attributes can be added via span and block IALs, it is possible, for example, to specify image width and height:

Here is an inline ![smiley](smiley.png){:height="36px" width="36px"}.

@W0rma
Copy link
Contributor Author

W0rma commented Dec 23, 2025

@TavoNiievez FYI

@TavoNiievez TavoNiievez merged commit 6c251dd into Codeception:master Dec 23, 2025
@W0rma W0rma deleted the fix-size-default-github-avatar branch December 23, 2025 16:23
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.

2 participants