Skip to content

Commit 2db1cbc

Browse files
authored
continue when task is a pull request (#41)
1 parent f46550f commit 2db1cbc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/task-implementer-agent.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,8 @@ jobs:
7676
return;
7777
}
7878
79-
// Check if project-task label exists to determine if continuing
80-
const { data: issue } = await github.rest.issues.get({
81-
owner: context.repo.owner,
82-
repo: context.repo.repo,
83-
issue_number: issueNumber
84-
});
85-
const isContinuing = issue.labels.some(label => label.name === 'project-task');
79+
// Task implementer continues when the request is from a pull request
80+
const isContinuing = !!context.payload.pull_request;
8681
8782
try {
8883
await github.rest.issues.removeLabel({

0 commit comments

Comments
 (0)