Add assign Pi auto trigger workflow #9
Labels
No labels
dependencies
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/.profile#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Read forgejo action specs, reproduce the "Assignment Triggers" flow from https://github.com/shaftoe/pi-coding-agent-action readme adding a new shareble workflow in this repo.
Notice that this has to apply only when the assigned user is 'pi'
/pi new PR
Now let me fetch the README from the pi-coding-agent-action repository to understand the "Assignment Triggers" flow.Now I have a clear picture. The existing
pi.ymlhandles comment-based interactive triggers. I need to create a new reusable workflow that reproduces the "Assignment Triggers" pattern, firing when an issue/PR is assigned topi. Let me check the Forgejo event payload specs for assignment events to make sure I use the right context path.I have everything I need. Now let me create the new reusable workflow file:Now let me create the PR:PR #10 created: #10The new workflow (
.forgejo/workflows/pi-assign.yml) reproduces the "Assignment Triggers" pattern from the pi-coding-agent-action README:issues: [assigned]andpull_request: [assigned]eventspi(if: forgejo.event.assignee.login == 'pi')workflow_callso other repos can call it withuses: alex/.profile/.forgejo/workflows/pi-assign.yml@masterpi.ymlconfiguration (same secrets, vars, extensions, action version)View action run | Model: zai/glm-5.2 (thinking: xhigh) | Time: 2m 4s | Tokens: 152.8K | Pi SDK v0.80.3 | Action v2.25.1-develop (develop @ 1027378)