Release Post Generator not carrying over images from issue descriptions
Documentation: https://handbook.gitlab.com/handbook/marketing/blog/release-posts/#release-post-item-generator
The Release Post Generator is no longer automatically extracting and including images from the source issue/epic descriptions when creating release post items. This creates additional manual work for contributors who have to manually add images after the release post item is generated.
**Current behavior**
When running the Release Post Generator on an issue/epic that contains images in its description, the generated release post item:
- Creates a placeholder image path: `/images/unreleased/REPLACE_THIS_WITH_THE_IMAGE_PATH.png` (for primary items)
- Does not download or include the actual images from the issue description
- Requires manual intervention to add the images
**Expected behavior**
The Release Post Generator should:
- Parse the issue/epic description for images
- Download those images automatically
- Save them to the appropriate `/images/unreleased/` directory
- Update the image_url field in the YAML file with the correct path
**Examples** where images had to be manually added after the release post item was generated, despite the source issue containing images.
- !140513 from https://gitlab.com/groups/gitlab-org/-/epics/11901
- !140920 from https://gitlab.com/gitlab-org/gitlab/-/work_items/556200
- !140911 from https://gitlab.com/gitlab-org/gitlab/-/issues/358416
**Technical details**
1. The code in [`lib/release_post/post_entry.rb`](https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/lib/release_posts/post_entry.rb#L235) has logic for handling images:
1. `image_path` method generates the image file path
1. `image_commit_action` method attempts to create image commits
1. The Issue class appears to have `image_url` and `image_base64` properties
However, it seems the image extraction from the issue description is not working properly.
## Investigation
It looks like it didn't work in the case of https://gitlab.com/gitlab-org/gitlab/-/work_items/556200 because it's a task, not an issue or epic.
More specifically:
**Release Post Generator**: Only supports traditional `issues` and `epics` via the API endpoints:
* `https://gitlab.com/api/v4/groups/9970/issues`
* `https://gitlab.com/api/v4/groups/9970/epics`
Currently, there is no support for `work_items`.
### Further investigation
Root Cause: Upload paths are incorrectly constructed.
Looking at the source issues:
- Epic 11901 has: ``
- Issue 358416 has: ``
When the code attempts to construct the image URLs, it comes up with:
- `https://gitlab.com/groups/gitlab-org/-/uploads/3339963cb7891f2a77a8b638d2cdd694/Screenshot_2025-08-05_at_2.17.42_p.m..png`
So we must have changed our uploads URL pattern at some point from path to ID, because the actual files are:
- `https://gitlab.com/-/group/9970/uploads/3339963cb7891f2a77a8b638d2cdd694/Screenshot_2025-08-05_at_2.17.42_p.m..png`
- `https://gitlab.com/-/project/278964/uploads/f8d9245f51946e519d7ef95d11b75701/Screenshot_2025-09-05_at_11.22.44_a.m..png`
We just need to update the URL construction.
issue