Skip to main content
POST
/
api
/
v1
/
github
/
repos
/
{id}
/
pulls
/
{pull_number}
/
tasks
Trigger a task on a pull request
curl --request POST \
  --url https://neo.api.projectdiscovery.io/api/v1/github/repos/{id}/pulls/{pull_number}/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "command": "review",
  "message": "<string>"
}
'
{
  "status": "<string>",
  "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Path Parameters

id
string<uuid>
required

Repository ID

pull_number
integer
required

Pull request number

Body

application/json
command
enum<string>
required

The task command to execute on the pull request

Available options:
review,
full_review,
investigate,
summary,
fix,
freeform,
create_issue
message
string

Additional instructions or question for the task

Response

Task created or queued

status
string
required

Task status (pending or queued)

task_id
string<uuid>
required

Created task ID