Edits history of script submission #6091 for ' Create 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, teamId: string, title: string) {
    	const linearClient = new LinearClient({ apiKey: resource.apiKey })
    
    	const createIssue = await linearClient.createIssue({
    		teamId,
    		title
    	})
    
    	return createIssue.issue
    }
    

    Submitted by hugo697 397 days ago

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

    Submitted by hugo697 762 days ago