diff --git a/.github/formalities.json b/.github/formalities.json new file mode 100644 index 0000000000..cdbfd200e4 --- /dev/null +++ b/.github/formalities.json @@ -0,0 +1,28 @@ +{ + "check_branch": true, + "check_merge_commits": true, + "check_noreply_email": true, + "check_signoff": true, + "check_signature": true, + "allow_autosquash": true, + "enable_comments": 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, + "check_pkg_version": true, + "check_crlf": true, + "add_package_label": true, + "drop_package_label": true, + "branch_labeling": true, + "check_openwrt_meta": true, + "check_conffiles": true, + "check_patch_headers": "warning", + "check_space_after_assignment": false, + "check_makefile_indentation": false, + "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 d57b17a562..0000000000 --- a/.github/workflows/formal.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Test Formalities - -on: - pull_request: - -permissions: - contents: read - pull-requests: write - -jobs: - build: - 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/labeler.yml b/.github/workflows/labeler.yml index 513964de66..b64d3e4a2b 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -17,17 +17,3 @@ jobs: - uses: actions/labeler@v6 with: repo-token: '${{ secrets.GITHUB_TOKEN }}' - - - name: Check Branch - id: check-branch - run: | - if echo "${{ github.base_ref }}" | grep -q -E 'openwrt-[0-9][0-9]\.[0-9][0-9]'; then - echo "release-tag=$(echo ${{ github.base_ref }} | sed 's/openwrt-/release\//')" >> $GITHUB_OUTPUT - fi - - - uses: buildsville/add-remove-label@v2.0.1 - if: ${{ steps.check-branch.outputs.release-tag }} - with: - token: ${{secrets.GITHUB_TOKEN}} - labels: ${{ steps.check-branch.outputs.release-tag }} - type: add