Commit Graph

630 Commits

Author SHA1 Message Date
b009ddb012 ci(claude): enable @claude to fix bugs and commit from comments
Configure the @claude summon workflow so it can actually produce a
verified fix when asked in an issue/PR comment:

- use_commit_signing: bot commits show as Verified
- --allowedTools Bash: lets Claude build/test to verify the fix before
  committing (default allowlist blocks Bash). Safe because the job `if`
  gate restricts this to OWNER/MEMBER/COLLABORATOR.
- --max-turns 30: enough turns to investigate -> fix -> verify

Auto-commit/PR is already built into claude-code-action and the
required write permissions were already present, so no permission
changes are needed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 10:38:09 +07:00
044cd06f87 ci: address second codex/copilot review round
- claude.yml: drop the issues "assigned" trigger; its author_association
  gate keys on the issue author, not the assigner, so a maintainer
  assigning an outside contributor's issue would be wrongly skipped.
- claude-code-review.yml: issues: read -> write so use_sticky_comment can
  create/update its PR comment via the issues API.
- hil SKILL.md: make local/remote command blocks copy-pasteable (drop
  [-b BOARD_NAME] notation for concrete examples) and fix timeout
  (600000 ms is 10 min; use 1200000 ms for the stated 20 min).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 00:24:05 +07:00
1ea04f7fe6 ci: address codex/copilot review on claude workflows
- claude.yml: gate @claude on author_association (OWNER/MEMBER/COLLABORATOR)
  so the write-scoped token and OAuth secret are never issued for an
  untrusted commenter on this public repo (defense-in-depth).
- claude-code-review.yml: skip fork PRs in the job condition
  (head.repo.full_name == github.repository) since forks get no secrets
  and would only fail noisily; fix the misleading token comment; pass
  additional_permissions: actions: read so actions: read is effective.
- hil SKILL.md: reword hostname guidance, use full test/hil/* paths, and
  show an explicit CONFIG= assignment so the local command is runnable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 00:16:54 +07:00
87f9cc01cf ci: re-enable Claude PR review and harden auth/permissions
- claude-code-review.yml: re-enable (drop `if: false`); switch from
    pull_request_target to pull_request so fork PRs never receive the
    OAuth token (avoids prompt-injection token leak). Auto-review on
    open/synchronize/reopen/ready_for_review, skip drafts, sticky comment.
  - claude.yml: grant contents/pull-requests/issues write so @claude can
    reply and push fixes; @claude is the on-demand path for fork PRs.
2026-06-01 23:51:41 +07:00
64915e6b40 Set GitHub Sponsors username in FUNDING.yml
Updated GitHub Sponsors username for funding.
2026-05-25 12:59:30 +07:00
0a18f30a6e support map files 2026-05-12 17:15:33 +01:00
c13481a4c3 try to fix CI stuck
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-05-05 15:03:25 +02:00
2c6d42771e clean up 2026-04-29 15:43:01 +07:00
d11543a722 change job name
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-04-26 14:10:57 +02:00
9a2bd7b46c run hil_hfp on gcc build
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-04-26 12:47:59 +02:00
ed3318f927 dont cancel build on merge to master 2026-03-31 10:33:02 +01:00
6c895e7af4 Update several actions to latest version 2026-03-18 00:31:01 +07:00
3e47f1fcce add board_uart_read() for f7 2026-03-18 00:20:42 +07:00
c5e3098c37 update rx65n_target: correct pin configuration and remove unused USB interrupt definitions 2026-03-14 12:58:41 +07:00
36400d108f migrate kinetis_k32l build system to new mcux-devices paths 2026-03-14 00:11:45 +07:00
adf853643b add ft9xx-gcc toolchain support to CI 2026-03-13 23:01:38 +07:00
5794e50c37 rename and migrate kinetis_k32l to new mcux-devices 2026-03-13 11:46:53 +07:00
79bbea8559 download metrics in case hil failed 2026-03-12 16:49:51 +07:00
2052111bac chore(workflows): update GitHub Actions dependencies and improve membrowse error handling
update AGENTS.md with metrics compare
2026-03-12 15:48:49 +07:00
38986e392f also update metrics.json for pr 2026-03-12 13:34:07 +07:00
b1de5229f5 fix secret issue in membrowse-comment 2026-03-10 21:52:08 +00:00
83363afa82 set new membrowse comment github workflow with comment message 2026-03-10 07:10:53 +00:00
97297fe08b update hil test: remove unused ctypes, add fallback for skip boards 2026-03-07 11:12:48 +07:00
ce8a77083d ci: fix claude-code-review for fork PRs
Switch pull_request to pull_request_target so secrets and OIDC tokens
are available when reviewing PRs from forks. Also add pull-requests: write
permission so the action can post review comments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 20:59:26 +07:00
f021d5c1e1 fix trailing newline in workflow files to pass pre-commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 18:13:51 +07:00
8479c08679 "Claude Code Review workflow" 2026-03-04 18:08:08 +07:00
80a05cfcaf "Claude PR Assistant workflow" 2026-03-04 18:08:07 +07:00
c0adaca3a5 fix esp32p4 utmi phy init in the new esp-idf, also update esp-idf to v5.5.3 2026-03-02 20:14:00 +07:00
a6d4c6d022 change membrowse target to board/target and remove redundant continue-on-error directive
fix defsym can be followed by = or ,
2026-02-12 23:59:48 +07:00
8a6012b009 refactor build scripts to support multiple build targets and improve argument handling 2026-02-12 13:32:00 +07:00
c59447faa8 clean up 2026-02-12 12:15:26 +07:00
39bc5cd933 fix ci 2026-02-12 00:31:06 +07:00
4a5077a1aa membrowse upload continue on error 2026-02-12 00:10:18 +07:00
cec0ee53f6 make membrowse command more visible 2026-02-11 23:30:14 +07:00
8c9901c318 correct membrowse upload step 2026-02-11 19:18:17 +07:00
2e8e33f284 add build target argument to improve flexibility of build scripts and workflows
membrowse-upload upload with --identical if elf file does not exist
2026-02-11 16:46:27 +07:00
07a3b3b34f fetch depth 0 if membrowse-upload 2026-02-11 11:33:45 +07:00
dfe7a97d34 remove membrowse-targets.json as it is no longer required 2026-02-11 00:48:48 +07:00
dcb94d2a12 1 family per job in ci_set_matrix.py 2026-02-11 00:16:52 +07:00
39b157d22f add membrowse-upload target and use it in ci after build 2026-02-10 23:51:55 +07:00
e416a81a50 Merge pull request #3437 from hathach/copilot/improve-build-steps-rp2040-esp32
doc update
2026-02-10 12:54:52 +07:00
b66c3f75c3 update matrix build 2026-02-10 12:31:24 +07:00
13ae5244c0 Update membrowse job to run on all pushes for commit chain tracking
Co-authored-by: hathach <249515+hathach@users.noreply.github.com>
2026-02-09 12:18:25 +00:00
a1a4f34e22 Update .github/workflows/build.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-07 18:00:11 +07:00
4632441ae7 add back check-path job to path filter, make sure workflow always run to register commit chain with membrowse 2026-02-07 17:31:53 +07:00
3cef022737 set folder property for flash tool targets
update build.yml only build with pr and push-to-master
2026-02-06 17:40:13 +07:00
b85a3967bf skip zephyr and membrowse steps temporarily 2026-02-06 11:40:13 +07:00
d1647044ff fix membrowse targets to match CI-built boards
The stm32h7 and samd5x_e5x targets were configured with boards that
aren't built by CI (which uses --one-first flag). This caused the
membrowse workflow to run in identical mode and fail on upload.

- stm32h7: daisyseed → stm32h743eval
- samd5x_e5x: d5035_01 → metro_m4_express
2026-01-25 09:37:02 +00:00
697fdca69d restructure targets file 2026-01-24 15:13:25 +00:00
5ad42064ea Integrate MemBrowse 2026-01-16 21:49:16 +00:00