poozle
poozle copied to clipboard
New Integration: Linear
✨ CodeStory generated PR Summary:
Install extension at link for in editor experience
Open in editor [🔗] copy paste in your browser address bar
vscode://codestory-ghost.codestoryai?action=start-review&repo=https://github.com/poozlehq/engine/pull/153&branch=integration/linear
🤖 (f09838c88b209f5b048f99cb5333d080bc421e6b)
This pull request introduces several new functions, classes, and interfaces to the integrations.ticketing.linear
module.
-
New placeholder functions
convertTag
,convertTicket
, andconvertCollection
have been added to their respectiveutils
modules. They are intended for future mapping of data specific to the ticketing integration. -
The
convertUser
function has been added to transform user data objects by adding an extraemail_address
field. -
The
TeamsPath
class has been introduced with methodsgetTeams
andrun
.getTeams
fetches a list of teams and maps the response using theconvertTeam
utility function.run
handles GET requests by callinggetTeams
. -
The
getMetaParams
function generates metadata for pagination based on response data length, current page, and limit. -
The
CollectionPath
andCommentsPath
classes have been introduced with placeholder methodsfetchSingleCollection
andfetchData
respectively. -
New TypeScript interfaces have been defined, including
GetTeamsParams
,UserWithRaw
,UsersResponse
,UserResponse
,GetUserParams
,GetUsersParams
,TagsResponse
,TagResponse
,TeamWithRaw
,TeamsResponse
,TeamResponse
,UpdateTeamResponse
,TicketsResponse
,TicketResponse
,CollectionsResponse
, andCollectionResponse
. -
The
LinearIntegration
class has been introduced with methodsspec
,check
, andpaths
. Thepaths
method returns an array of new path instances for Proxy, Collections, Comments, Tags, Teams, Tickets, and Users. -
The
ProxyPath
class has been introduced with therun
method for making HTTP requests using axios. -
Placeholder methods
getTags
andcreateTag
have been added to theTagsPath
class. -
Placeholder methods
fetchSingleUser
andfetchSingleComment
have been added to theUserPath
andCommentPath
classes respectively. -
Minor typo fixes have been made in the
CreateTeamBody
andUpdateTeamBody
interfaces.
Please review the changes.
If you found this useful, please give me feedback by liking 👍 this comment, or 👎 if this wans't useful to you. I learn from my mistakes 🎓
I am a AI bot and might make mistakes 🫤, please give feedback to the devs at [email protected] or on slack