From c7872431105f69894201dc522b7560e47d1e8ba9 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Thu, 9 Jul 2026 21:18:12 +0200 Subject: [PATCH] ci: use openwrt-bot-worker for formalities - Enable bot comments to provide contributors with immediate feedback - Enable stale bot - Execute the feeds package test build only when the formalities check succeeds Signed-off-by: Josef Schlehofer --- .github/formalities.json | 29 +++++++++++++++++++++ .github/workflows/formal.yml | 18 ------------- .github/workflows/multi-arch-test-build.yml | 17 ++++++++++++ 3 files changed, 46 insertions(+), 18 deletions(-) create mode 100644 .github/formalities.json delete mode 100644 .github/workflows/formal.yml diff --git a/.github/formalities.json b/.github/formalities.json new file mode 100644 index 0000000..4ac1f41 --- /dev/null +++ b/.github/formalities.json @@ -0,0 +1,29 @@ +{ + "check_branch": true, + "check_merge_commits": true, + "check_noreply_email": true, + "check_signoff": true, + "check_signature": true, + "allow_autosquash": true, + "enable_comments": true, + "show_force_push_tip": true, + "max_subject_len_soft": 60, + "max_subject_len_hard": 80, + "max_body_line_len": 100, + "warn_duplicate_body": true, + "warn_generic_subjects": true, + "require_release_notes": true, + "require_body": true, + "check_pkg_version": true, + "check_crlf": true, + "check_trailing_newline": true, + "add_package_label": true, + "drop_package_label": true, + "branch_labeling": true, + "check_openwrt_meta": true, + "check_conffiles": true, + "check_patch_headers": true, + "check_pkg_release": "warning", + "require_linked_github_account": true, + "enable_stale_bot": true +} diff --git a/.github/workflows/formal.yml b/.github/workflows/formal.yml deleted file mode 100644 index 3fa417f..0000000 --- a/.github/workflows/formal.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Test Formalities - -on: - pull_request: - -permissions: - contents: read - pull-requests: write - -jobs: - formalities: - name: Test Formalities - uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main - # with: - # # Post formality check summaries to the PR. - # # Repo's permissions need to be updated for actions to modify PRs: - # # https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment - # post_comment: true diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index e5ac78c..32c56d7 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -3,7 +3,24 @@ name: Feeds Package Test Build on: pull_request: +permissions: + contents: read + checks: read + jobs: + wait-for-formalities: + name: Wait for FormalityCheck + runs-on: ubuntu-slim + steps: + - name: Wait for Check Run + uses: lewagon/wait-on-check-action@v1.8.1 + with: + ref: ${{ github.event.pull_request.head.sha }} + check-name: 'FormalityCheck / Git & Commits' + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 5 + build: name: Feeds Package Test Build + needs: wait-for-formalities uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main