Contributors delete the template, so reviewers cannot see whether pkgcheck ran or AI was used. The boxes stay optional because not every contributor can run pkgcheck with --net and the AI box applies only when AI was used. The autobump bot does not fill in the template and is skipped. The commit rules move from pkgcheck into the same workflow, because both checks read the pull request rather than the ebuilds and must rerun when the description is edited, which pkgcheck should not. pkgcheck-comment now also closes a pull request without the template, and its reply lists the commit and template problems in separate sections. Signed-off-by: Zakk <zakk@gentoozh.org>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: pkgcheck
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: run pkgcheck
|
|
uses: pkgcore/pkgcheck-action@v1
|
|
with:
|
|
args: --checks=-RedundantVersionCheck --keywords=-NonsolvableDepsInDev --exit=NonexistentDeps
|
|
|
|
# Ebuilds execute PR code; the write token belongs to pkgcheck-comment.
|
|
report:
|
|
if: github.event_name == 'pull_request'
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/pkgcore/pkgcheck:latest
|
|
defaults:
|
|
run:
|
|
# The image has no /bin/bash symlink.
|
|
shell: bash
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: collect the packages this PR touches
|
|
id: pkgs
|
|
run: scripts/pkgcheck-report.sh packages
|
|
|
|
- name: scan
|
|
if: steps.pkgs.outputs.count != '0'
|
|
run: scripts/pkgcheck-report.sh scan
|
|
|
|
- name: stage the report
|
|
if: always()
|
|
run: scripts/pkgcheck-report.sh stage
|
|
|
|
- name: upload the report
|
|
if: always()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: pkgcheck-report
|
|
path: pkgcheck-report/
|