mirror of
https://github.com/shuaibiyy/awesome-tf.git
synced 2026-07-11 13:26:46 -05:00
[PR #359] [MERGED] fix: CI workflow bugs and lychee config improvements #5573
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shuaibiyy/awesome-tf/pull/359
Author: @chenrui333
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @chenrui333
Base:
master← Head:rchen.ci-improvements📝 Commits (1)
b6d3e84fix: CI workflow bugs and lychee config improvements📊 Changes
4 files changed (+13 additions, -3 deletions)
View changed files
📝
.github/workflows/link-checker.yml(+1 -1)📝
.github/workflows/misspell.yml(+8 -1)📝
.github/workflows/notfound.yml(+2 -0)📝
lychee.toml(+2 -1)📄 Description
Four improvements found during repo audit.
notfound.yml — push trigger fires on every branch
This workflow has
contents: writeandpull-requests: writepermissions. Running on every push to any branch (including feature branches, Dependabot bumps) means the bot could open fix PRs from unreviewed branches. Addedbranches: [master]to restrict to master-only.link-checker.yml — PR diff misses earlier commits
For multi-commit PRs,
HEAD^1is the previous commit in the PR branch, not the base branch. Links added in all but the last commit are silently skipped. Fixed to use${{ github.event.pull_request.base.sha }}as the base.misspell.yml — unnecessary trigger noise
types: [assigned, ...]— reviewer assignment re-runs spellcheck with no file changes. Removedassigned.pathsfilter — ran on every push even when only non-text files changed. Addedpaths: ['**.md'].permissionsblock — addedcontents: readfor least-privilege.lychee.toml — misleading comment
The commented-out
exclude = ['...']line would replace the entireexcludearray if uncommented (TOML array assignment), not add to it. Added a warning so future maintainers don't accidentally drop all existing exclusions.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.