diff --git a/.github/formalities.json b/.github/formalities.json new file mode 100644 index 00000000..b0a8935b --- /dev/null +++ b/.github/formalities.json @@ -0,0 +1,35 @@ +{ + "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_openwrt_spelling": 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_uci_config": true, + "check_space_after_assignment": true, + "check_missing_colon": true, + "check_makefile_indentation": true, + "check_pkg_name_reuse": true, + "check_patch_headers": true, + "check_pkg_release": "warning", + "require_linked_github_account": true, + "enable_stale_bot": false +} diff --git a/.github/workflows/formal.yml b/.github/workflows/formal.yml deleted file mode 100644 index 3fa417f6..00000000 --- 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 e5ac78c0..a6d8d742 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -3,7 +3,25 @@ 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 +