Commit Graph

6 Commits

Author SHA1 Message Date
Avelino
8cb5e86f56 remove duplicate PR quality check workflow and script
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
2025-10-06 06:49:23 -03:00
coderabbitai[bot]
be0217f5b7 📝 Add docstrings to avelino/auto-check
Docstrings generation was requested by @avelino.

* https://github.com/avelino/awesome-go/pull/5810#issuecomment-3289725831

The following files were modified:

* `.github/scripts/check-quality.js`
* `.github/scripts/extract-pr-links.js`
2025-09-14 15:00:16 -03:00
Avelino
1a93ba0fab Update .github/scripts/check-quality.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-14 15:00:16 -03:00
Avelino
8a1c8ef576 Update .github/scripts/check-quality.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-14 15:00:16 -03:00
Avelino
c2be79cb1d feat: add automated PR quality checks and PR link extraction scripts
- Introduce `.github/scripts/check-quality.js` to automate validation of PRs against minimum standards from `CONTRIBUTING.md`:
  - Checks repo accessibility, go.mod presence, SemVer release, Go Report Card grade, pkg.go.dev, and coverage link.
  - Outputs a markdown report and sets fail status for critical issues.
- Add `.github/scripts/extract-pr-links.js` to extract required links from PR body and format a review comment.
- Update workflow to run these scripts and post results as PR comments.
- Update `CONTRIBUTING.md` to clarify requirements and reference new automation.

fixed https://app.codacy.com/gh/avelino/awesome-go/pull-requests/5810/issues

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
2025-09-14 15:00:16 -03:00
Avelino
12dc8e9fde feat: add automated PR quality checks for CONTRIBUTING.md standards
- Add `.github/scripts/check-quality.js` to extract PR links and validate minimum standards:
  - Checks repo accessibility, go.mod, SemVer release, Go Report Card (A- or better), coverage, and pkg.go.dev.
  - Outputs markdown report and sets fail status for critical issues.
- Add `.github/scripts/extract-pr-links.js` to extract and format PR body links for review.
- Add `.github/workflows/pr-quality-check.yaml` to run quality checks on PRs, post results as comments, sync labels, and fail PR if critical checks fail.
- Update `CONTRIBUTING.md` to clarify required PR body links and quality standards.
- Update `.github/workflows/pull-request-first-comment.yaml` to support new automation.

This improves PR review automation and enforces minimum quality standards for new submissions.

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
2025-09-14 15:00:16 -03:00