mirror of
https://github.com/openwrt/routing.git
synced 2026-07-14 00:44:38 +04:00
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 <pepe.schlehofer@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
@@ -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,24 @@ name: Feeds Package Test Build
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
checks: read
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
name: Feeds Package Test Build
|
name: Feeds Package Test Build
|
||||||
|
needs: wait-for-formalities
|
||||||
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main
|
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main
|
||||||
|
|||||||
Reference in New Issue
Block a user