poozle icon indicating copy to clipboard operation
poozle copied to clipboard

New Integration: Linear

Open AdityaSanthosh opened this issue 1 year ago • 1 comments

AdityaSanthosh avatar Aug 03 '23 09:08 AdityaSanthosh

✨ 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.

  1. New placeholder functions convertTag, convertTicket, and convertCollection have been added to their respective utils modules. They are intended for future mapping of data specific to the ticketing integration.

  2. The convertUser function has been added to transform user data objects by adding an extra email_address field.

  3. The TeamsPath class has been introduced with methods getTeams and run. getTeams fetches a list of teams and maps the response using the convertTeam utility function. run handles GET requests by calling getTeams.

  4. The getMetaParams function generates metadata for pagination based on response data length, current page, and limit.

  5. The CollectionPath and CommentsPath classes have been introduced with placeholder methods fetchSingleCollection and fetchData respectively.

  6. New TypeScript interfaces have been defined, including GetTeamsParams, UserWithRaw, UsersResponse, UserResponse, GetUserParams, GetUsersParams, TagsResponse, TagResponse, TeamWithRaw, TeamsResponse, TeamResponse, UpdateTeamResponse, TicketsResponse, TicketResponse, CollectionsResponse, and CollectionResponse.

  7. The LinearIntegration class has been introduced with methods spec, check, and paths. The paths method returns an array of new path instances for Proxy, Collections, Comments, Tags, Teams, Tickets, and Users.

  8. The ProxyPath class has been introduced with the run method for making HTTP requests using axios.

  9. Placeholder methods getTags and createTag have been added to the TagsPath class.

  10. Placeholder methods fetchSingleUser and fetchSingleComment have been added to the UserPath and CommentPath classes respectively.

  11. Minor typo fixes have been made in the CreateTeamBody and UpdateTeamBody 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

codestorybetabot[bot] avatar Aug 03 '23 09:08 codestorybetabot[bot]