Edits history of script submission #6095 for ' Update Issue (linear)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    import { LinearClient } from '@linear/sdk'
    
    type Linear = {
    	apiKey: string
    }
    
    export async function main(resource: Linear, issueId: string, title: string) {
    	// your code here
    	const linearClient = new LinearClient({ apiKey: resource.apiKey })
    
    	const updatedIssue = await linearClient.updateIssue(issueId, { title })
    
    	return updatedIssue.issue
    }
    

    Submitted by hugo697 397 days ago

  • bun
    import { LinearClient } from '@linear/sdk'
    
    type Linear = {
    	apiKey: string
    }
    
    export async function main(resource: Linear, issueId: string, title: string) {
    	// your code here
    	const linearClient = new LinearClient({ apiKey: resource.apiKey })
    
    	const updatedIssue = await linearClient.updateIssue(issueId, { title })
    
    	return updatedIssue.issue
    }
    

    Submitted by hugo697 762 days ago