Skip to content

release-download-count - Restore support for GitHub Enterprise#9636

Merged
fregante merged 1 commit into
refined-github:mainfrom
sratz:fix-asset-size-ghes
May 30, 2026
Merged

release-download-count - Restore support for GitHub Enterprise#9636
fregante merged 1 commit into
refined-github:mainfrom
sratz:fix-asset-size-ghes

Conversation

@sratz
Copy link
Copy Markdown
Contributor

@sratz sratz commented May 29, 2026

Fix release-download-count on GHES

GHES DOM looks like

<span .../> <!-- SHA1 -->
<span .../> <!-- SHA1 copy button -->
<span .../> <!-- Size -->
<span .../> <!-- Date -->

while github.com DOM has a nested <div>:

<div>
  <span .../> <!-- SHA1 -->
  <span .../> <!-- SHA1 copy button -->
</div>
<span .../> <!-- Size -->
<span .../> <!-- Date -->

This change:

  • Fixes finding the assetSize column

  • Fixes CSS by excluding the copy button column (data-view-component)
    for fixed-width (min-size) columns, which would become too large
    otherwise.

Closes #9210.

@github-actions github-actions Bot added the bug label May 29, 2026
GHES DOM looks like

```
<span .../> <!-- SHA1 -->
<span .../> <!-- SHA1 copy button -->
<span .../> <!-- Size -->
<span .../> <!-- Date -->
```

while github.com DOM has a nested `<div>`:
```
<div>
  <span .../> <!-- SHA1 -->
  <span .../> <!-- SHA1 copy button -->
</div>
<span .../> <!-- Size -->
<span .../> <!-- Date -->
```

This change:

- Fixes finding the assetSize column

- Fixes CSS by excluding the copy button column (data-view-component)
  for fixed-width (min-size) columns, which would become too large
  otherwise.

Closes refined-github#9210.
@sratz sratz force-pushed the fix-asset-size-ghes branch from e049ba9 to a711fe3 Compare May 29, 2026 18:10
@github-actions
Copy link
Copy Markdown

Please avoid force-pushing to this PR. It makes it harder for reviewers to track what changed since the last review.

Just push new commits on top of the branch instead — PRs are squashed on merge, so the commit history doesn't need to be clean.

@sratz sratz marked this pull request as ready for review May 29, 2026 18:56
@sratz sratz changed the title Fix asset size on GHES Fix release-download-count on GHES May 29, 2026
@fregante
Copy link
Copy Markdown
Member

fregante commented May 30, 2026

Tested, I see no regressions. I see a pre-existing bug though:

@fregante fregante merged commit 9afa690 into refined-github:main May 30, 2026
23 checks passed
@fregante fregante changed the title Fix release-download-count on GHES release-download-count - Restore support for GitHub Enterprise May 30, 2026
@fregante fregante mentioned this pull request May 30, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

release-download-count: GHES 3.18.7: Expected node matching /^\d+(\.\d+)? \w{2,5}$/, found "sha256:<snip>"

2 participants