mirror of
https://github.com/openwrt/video.git
synced 2026-10-12 03:47:13 +04:00
ci: integrate openwrt-bot-worker for formalities validation
- Enable comments to give contributors instant feedback - Disable stale bot by default (can be enabled at any time) - Run package test builds only when the formalities check succeeds Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
1 parent
a951381b6c
commit
5266ccc87a
3 files changed
+53
-18
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user