Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

193 Commits

Folders and files

Repository files navigation

OpenWrt PR Gatekeeper

A GitHub App on Cloudflare Workers that checks pull requests to the OpenWrt repositories against the project's contribution rules and keeps their labels up to date.

What it does

Every pull request gets three check runs:

  • Git & Commits checks the source branch, commit subjects and bodies, sign-offs, author identity and, on release branches, the cherry-pick marker.
  • OpenWrt Makefiles checks package metadata, PKG_RELEASE, PKG_HASH, conffiles, UCI files and Makefile style.
  • Code Patches checks that downstream patches carry git format-patch headers and come from the refresh target.

A failing check run also gets a comment on the pull request that lists what to fix, and the not following guidelines label. A check run that could not inspect everything reports Partially checked instead of a pass.

The bot also labels pull requests that add or drop a package or target a release branch. A repository can turn on labels from .github/labeler.yml, issue form validation and the cleanup of stale pull requests.

Development

cd cloudflare-worker
npm ci
npm test
npm run typecheck

The Worker has no production dependencies. cloudflare-worker/src/spdx-licenses.js is generated: run node scripts/update-spdx-data.mjs to update it to a newer SPDX release.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages