remove pr writer

This commit is contained in:
Arthur Tazhitdinov 2026-02-01 22:36:34 +03:00
parent 88f8307cb1
commit 7b7337a366
3 changed files with 3 additions and 124 deletions

38
.github/labeler.yml vendored
View File

@ -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/**

View File

@ -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

View File

@ -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 = '<!-- pr-title-check -->';
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 = '<!-- pr-title-check -->';
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 }}