Skip to content

Test/comment key e2e#2

Closed
0xLLLLH wants to merge 15 commits into
devfrom
test/comment-key-e2e
Closed

Test/comment key e2e#2
0xLLLLH wants to merge 15 commits into
devfrom
test/comment-key-e2e

Conversation

@0xLLLLH
Copy link
Copy Markdown
Owner

@0xLLLLH 0xLLLLH commented Jun 2, 2026

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No "Type of change" checkbox is checked. Please select at least one.
  • No issue referenced. Please add Closes #<number> linking to the relevant issue.
  • "How did you verify your code works?" section is empty. Please explain how you tested.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Hey! Your PR title Test/comment key e2e doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

0xLLLLH added 3 commits June 3, 2026 00:55
Add a new optional  input to the GitHub Action. When set,
OpenCode upserts a single comment per issue/PR thread instead of creating
a new comment on every run.

- github/action.yml: add  input, wire as COMMENT_KEY env var
- github.ts: export buildCommentKeyDigest and appendCommentAnchor pure
  helpers; add commentKeyDigest(), findExistingStickyComment() and
  publishComment() inside the run handler; replace all createComment()
  call sites with publishComment()
- test: add unit tests for buildCommentKeyDigest and appendCommentAnchor
- docs: add Sticky comments section with usage table and key explanation;
  update PR Example to include comment_key

Behaviour:
- COMMENT_KEY unset/blank  → create a new comment every run (no change)
- COMMENT_KEY set          → search current issue/PR for a bot comment
                             whose body contains
                             <!-- opencode:comment-key:sha256:<digest> -->
                             and update it; create if not found
- Multiple matches         → update the most recent one, log a warning
@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch 2 times, most recently from 89fa88e to ef0bc30 Compare June 2, 2026 18:24
@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch from e85c32b to a58b427 Compare June 2, 2026 18:33
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch from ae71f1a to 768244a Compare June 2, 2026 18:42
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Sticky comment test - run anomalyco#11, attempt #1.

New%20session%20-%202026-06-02T19%3A16%3A49.737Z
opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Non-sticky comment test - run anomalyco#11, attempt #1.

New%20session%20-%202026-06-02T19%3A16%3A52.071Z
opencode session  |  github run

@0xLLLLH 0xLLLLH marked this pull request as draft June 2, 2026 19:21
@0xLLLLH 0xLLLLH marked this pull request as ready for review June 2, 2026 19:21
@0xLLLLH 0xLLLLH closed this Jun 2, 2026
@0xLLLLH 0xLLLLH reopened this Jun 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Sticky comment test - run anomalyco#12, attempt #1.

New%20session%20-%202026-06-02T19%3A23%3A30.215Z
opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Non-sticky comment test - run anomalyco#12, attempt #1.

New%20session%20-%202026-06-02T19%3A23%3A28.719Z
opencode session  |  github run

@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch from 5321fdd to d434fcc Compare June 2, 2026 19:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Sticky comment test - run anomalyco#16, attempt #1.

New%20session%20-%202026-06-02T19%3A42%3A37.565Z
opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Non-sticky comment test - run anomalyco#13, attempt #1.

New%20session%20-%202026-06-02T19%3A28%3A43.075Z
opencode session  |  github run

@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch from d434fcc to e6f2c6a Compare June 2, 2026 19:29
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Non-sticky comment test - run anomalyco#14, attempt #1.

New%20session%20-%202026-06-02T19%3A30%3A00.449Z
opencode session  |  github run

@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch from e6f2c6a to 9a4abdb Compare June 2, 2026 19:30
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Non-sticky comment test - run anomalyco#15, attempt #1.

New%20session%20-%202026-06-02T19%3A31%3A17.058Z
opencode session  |  github run

@0xLLLLH 0xLLLLH force-pushed the test/comment-key-e2e branch from 9a4abdb to 55d1855 Compare June 2, 2026 19:41
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Non-sticky comment test - run anomalyco#16, attempt #1.

New%20session%20-%202026-06-02T19%3A42%3A37.712Z
opencode session  |  github run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot closed this Jun 2, 2026
@github-actions github-actions Bot mentioned this pull request Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant