-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
feature: prebuildsgit provider: githubpriority: 💪 stretch goalThis issue is a stretch goal within an iteration.This issue is a stretch goal within an iteration.type: bugSomething isn't workingSomething isn't workingtype: feature requestNew feature or requestNew feature or request
Description
Describe the bug
When you configure your .gitpod.yml with:
github:
prebuilds:
addComment: truethe added comment should have a "Open/Review in Gitpod" button. But right now, it seems to have a broken image instead:
A few examples out in the wild:
- Use CUSTOM_XVFB_WxHxD for initial screen resolution workspace-images#349 (comment)
- [Full] bump go to 1.16 workspace-images#350 (comment)
This might have pushed projects to disable this feature: forem/forem@4b5622f
Steps to reproduce
- Open a Pull Request against any project using
addComment: truee.g. https://github.com/gitpod-io/workspace-images
Expected behavior
- The button image should work
Additional information
The automated comment's HTML body seems to be generated here:
| const body = `\n\n<a href="${this.env.hostUrl.withContext(contextURL)}"><img src="${newBadge}" /></a>\n\n`; |
Maybe it's getBadgeImageURL that no longer works properly:
gitpod/components/server/ee/src/prebuilds/github-app.ts
Lines 380 to 386 in 19fb170
| protected getBadgeImageURL(cloneURL: string, commit: string): string { | |
| if (cloneURL.startsWith("https://")) { | |
| cloneURL = cloneURL.substring("https://".length); | |
| } | |
| const name = `${cloneURL}/${commit}.svg`; | |
| return this.env.hostUrl.withApi({ pathname: `/apps/github/pbs/${name}` }).toString(); | |
| } |
Example repository
Metadata
Metadata
Assignees
Labels
feature: prebuildsgit provider: githubpriority: 💪 stretch goalThis issue is a stretch goal within an iteration.This issue is a stretch goal within an iteration.type: bugSomething isn't workingSomething isn't workingtype: feature requestNew feature or requestNew feature or request
