X Tutup
Skip to content

ci-link - Disable on empty repositories #9003

Merged
fregante merged 3 commits intorefined-github:mainfrom
dnicolson:fix-ci-link-typeerror
Feb 22, 2026
Merged

ci-link - Disable on empty repositories #9003
fregante merged 3 commits intorefined-github:mainfrom
dnicolson:fix-ci-link-typeerror

Conversation

@dnicolson
Copy link
Contributor

This fixes:

Refined GitHub: ci-link
errors.js:78 📕 26.2.19 → TypeError: Cannot read properties of null (reading 'target')
    at getCommitWithChecks (ci-link.js:14:51)
    at async add (ci-link.js:24:17)
errors.js:79 

Test URLs

A new repository must be created without a README for the current user.

@github-actions github-actions bot changed the title ci-link: Fix ci-link TypeError for empty repositories ci-link: Fix ci-link TypeError for empty repositories Feb 21, 2026
@SunsetTechuila SunsetTechuila changed the title ci-link: Fix ci-link TypeError for empty repositories ci-link - Don't run on empty repositories Feb 21, 2026
Copy link
Member

@SunsetTechuila SunsetTechuila left a comment

Choose a reason for hiding this comment

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

Good catch! However, it would be better not to run this feature at all if the repo is empty.

Use pageDetect.isEmptyRepo. It's broken right now, though

@dnicolson dnicolson force-pushed the fix-ci-link-typeerror branch from fa692c5 to 5e98888 Compare February 21, 2026 20:43
@SunsetTechuila

This comment was marked as resolved.

@dnicolson dnicolson force-pushed the fix-ci-link-typeerror branch from 5e98888 to a52f5c6 Compare February 21, 2026 20:48
@SunsetTechuila
Copy link
Member

It's broken right now, though

And I don't see a way to restore it

@SunsetTechuila SunsetTechuila changed the title ci-link - Don't run on empty repositories ci-link - Check if repository is empty Feb 21, 2026
@fregante fregante added the bug label Feb 22, 2026
@fregante fregante changed the title ci-link - Check if repository is empty ci-link - Disable on empty repositories Feb 22, 2026
@fregante fregante merged commit 7a9fd81 into refined-github:main Feb 22, 2026
11 checks passed
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.

3 participants

X Tutup