//native
/**
* Retrieve seer issue fix state
* Retrieve the current detailed state of an issue fix process for a specific issue including:
- Current status
- Steps performed and their outcomes
- Repository information and permissions
- Root Cause Analysis
- Proposed Solution
- Generated code changes
This endpoint although documented is still experimental and the payload may change in the future.
*/
export async function main(auth: RT.Sentry, issue_id: string) {
const url = new URL(
`https://${auth.region}.sentry.io/api/0/organizations/${auth.organizationSlug}/issues/${issue_id}/autofix/`
)
const response = await fetch(url, {
method: 'GET',
headers: {
Authorization: 'Bearer ' + auth.token
},
body: undefined
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.json()
}
Submitted by hugo697 235 days ago