diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index eae3f875..00000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,38 +0,0 @@ -firmware: - - changed-files: - - any-glob-to-any-file: - - src/** - - lib/** - - open-x4-sdk/** - -ui: - - changed-files: - - any-glob-to-any-file: - - src/activities/** - - src/network/html/** - - docs/images/** - -epub: - - changed-files: - - any-glob-to-any-file: - - lib/Epub/** - -network: - - changed-files: - - any-glob-to-any-file: - - src/network/** - - src/util/UrlUtils.* - - lib/OpdsParser/** - -docs: - - changed-files: - - any-glob-to-any-file: - - docs/** - - README* - - CHANGELOG* - -tests: - - changed-files: - - any-glob-to-any-file: - - test/** - - scripts/** diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ba1e834..edba9651 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,10 +65,7 @@ jobs: run: pip install --upgrade platformio - name: Build CrossPoint - run: | - set -euo pipefail - pio run | tee pio.log - + run: pio run - name: Extract firmware stats @@ -84,18 +81,9 @@ jobs: if [ -n "$flash_line" ]; then echo "- ${flash_line}"; else echo "- Flash: not found"; fi } >> "$GITHUB_STEP_SUMMARY" - # Upload both the binary and the stats/log so Stage 2 can read them without checkout. - name: Upload firmware.bin artifact uses: actions/upload-artifact@v6 with: - name: firmware-bin + name: firmware.bin path: .pio/build/default/firmware.bin if-no-files-found: error - - - name: Upload build metadata artifact - uses: actions/upload-artifact@v6 - with: - name: build-meta - path: | - pio.log - if-no-files-found: error \ No newline at end of file diff --git a/.github/workflows/pr-formatting-check.yml b/.github/workflows/pr-formatting-check.yml index 894416aa..044b7b64 100644 --- a/.github/workflows/pr-formatting-check.yml +++ b/.github/workflows/pr-formatting-check.yml @@ -6,13 +6,9 @@ on: - opened - reopened - edited - - synchronize permissions: - contents: read statuses: write - pull-requests: write - issues: write jobs: title-check: @@ -25,73 +21,6 @@ jobs: egress-policy: audit - name: Check PR Title - id: title_check uses: amannn/action-semantic-pull-request@v6 env: - GITHUB_TOKEN: ${{ github.token }} - - - name: Comment with changelog hint on failure - if: failure() - uses: actions/github-script@v8 - with: - script: | - const marker = ''; - const error = `${{ steps.title_check.outputs.error_message || steps.title_check.outputs.error || '' }}`.trim(); - const details = error ? `\n\n**Error:** ${error}` : '\n\n**Error:** See workflow logs.'; - const body = - `${marker}\n**PR title check failed**\n\n` + - `Please use a Conventional Commit-style prefix (e.g., \`feat:\`, \`fix:\`, \`docs:\`, \`chore:\`).\n` + - `If this change should appear in release notes, ensure the title reflects the correct category.${details}`; - - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - per_page: 100, - }); - - const existing = comments.find((comment) => (comment.body || "").includes(marker)); - - if (existing) { - await github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: existing.id, - body, - }); - } else { - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body, - }); - } - - - name: Remove failure comment on success - if: success() - uses: actions/github-script@v8 - with: - script: | - const marker = ''; - - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - per_page: 100, - }); - - const existing = comments.find((comment) => (comment.body || "").includes(marker)); - if (!existing) { - core.info("No previous PR title failure comment found."); - return; - } - - await github.rest.issues.deleteComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: existing.id, - }); - - core.info(`Deleted previous failure comment id=${existing.id}`); + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}