Skip to content

Update coder workflow to latest coder-action recommendations#70

Merged
neekolas merged 2 commits intoxmtp:mainfrom
xmtp-coder-agent:fix/issue-69
Mar 24, 2026
Merged

Update coder workflow to latest coder-action recommendations#70
neekolas merged 2 commits intoxmtp:mainfrom
xmtp-coder-agent:fix/issue-69

Conversation

@xmtp-coder-agent
Copy link
Copy Markdown
Collaborator

@xmtp-coder-agent xmtp-coder-agent commented Mar 24, 2026

Resolves #69

Summary

Updates .github/workflows/coder.yml to align with the latest recommendations from the coder-action README:

  • New event triggers: Added pull_request_review_comment and pull_request_review events so the agent receives inline review comments and PR review submissions
  • New jobs: Added pr-review-comment and pr-review jobs to forward these new events to the Coder task
  • PR author filtering: Added github.event.issue.user.login == 'xmtp-coder-agent' condition to pr-comment job so it only processes comments on PRs created by the agent
  • Removed github-token: Dropped the github-token input from all jobs (no longer required by the action)
  • Updated prompt: Changed create-task prompt from a blank space to the recommended autonomous agent prompt

Test plan

  • Verify workflow syntax is valid (GitHub Actions will validate on push)
  • Assign an issue to xmtp-coder-agent and confirm task creation works
  • Comment on a PR created by the agent and confirm the comment is forwarded
  • Submit a PR review on an agent PR and confirm it is forwarded

🤖 Generated with Claude Code

Note

Update coder workflow to handle PR review and review comment events

  • Adds pull_request_review and pull_request_review_comment event triggers to coder.yml, with two new jobs that forward submitted reviews and inline review comments to the Coder Task when the PR was authored by xmtp-coder-agent and the reviewer is not the agent.
  • Tightens the existing pr-comment job to only fire when the PR author is xmtp-coder-agent.
  • Updates the create-task prompt from a single space to a multi-line instruction telling the agent to read the issue, post a plan comment, then implement and open a PR.

Macroscope summarized d9a7724.

- Add pull_request_review_comment and pull_request_review event triggers
- Add new pr-review-comment and pr-review jobs for inline review feedback
- Add pr-author filter (xmtp-coder-agent) to pr-comment job condition
- Remove github-token input from all jobs (no longer needed)
- Update create-task prompt to use recommended autonomous agent prompt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xmtp-coder-agent xmtp-coder-agent requested a review from a team as a code owner March 24, 2026 17:45
action: pr_comment
coder-url: ${{ secrets.CODER_URL }}
coder-token: ${{ secrets.CODER_TOKEN }}
github-token: ${{ github.token }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still want to explicitly pass the GitHub token in all workflows.

Every action invocation requires github-token explicitly passed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@neekolas neekolas merged commit a67b498 into xmtp:main Mar 24, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get actions in line with latest recommendations from README

2 participants