Enhancing Collaboration: Integrating ChatGPT shared links with Sourcetree

by Goran Siric on Wednesday, May 31, 2023 10:16 AM

Imagine this scenario: you're working on an important feature, juggling tasks and brainstorming ideas with your team. Suddenly, during a conversation with GPT, a brilliant idea strikes. But how do you ensure that idea doesn't get lost in the shuffle? Fear not, my friend! We have a solution.

First, it's important to note that the availability of ChatGPT shared links is not currently extended to all users. To check the status and details regarding ChatGPT shared links, refer to ChatGPT shared links FAQ page.


For those fortunate enough to have access to ChatGPT shared links, here's how you can integrate them into Sourcetree:

To obtain the shared link from a GPT chat page, click on the "Share link" icon within the Chat window. This will open a Share Link to Chat window, where you can find the desired shared link. Make sure to click on "Copy link" to obtain the shared link.

Now, let's move on to integrating this link into Sourcetree GIT commit message:

When you're in the commit message of that all-important feature, simply paste the ChatGPT shared link and make commit. However, note that by default, the shared link will not be displayed as a clickable hyperlink. But fret not, we have a solution for that!

To make the ChatGPT shared link clickable within Sourcetree, you'll need to enter the "Commit text link" details.

Follow these steps:

  1. Head over to Sourcetree Repository settings by navigating through the Main menu -> Repository -> Repository settings.
    Once you're in the Repository settings, click on the "Advanced" tab. It's time to unlock the full potential of Sourcetree!

  2. Locate the "Commit text links" section and click on the "Add" button.



  3. Enter the following details in the "Commit link text details" window:

    • Replacement type: Other
    • Regex pattern: https:\/\/chat.openai\.com\/share\/(\S*)
    • Link to URL: https://chat.openai.com/share/$1


The regex pattern may seem complex, but fear not. Let the magic happen in the background. Once you have set up the details for the 'Commit text link', the shared links from ChatGPT will be automatically transformed into clickable hyperlinks within Sourcetree, just like any other link.

This integration allows you to effortlessly navigate from Sourcetree to the specific GPT chat page associated with a particular feature, making collaboration and idea sharing a breeze.

So, my esteemed developers, the next time you have an inspiring conversation with GPT, copy the ChatGPT shared link and paste it into your commit message. Set up the "Commit text link" details as mentioned above, and watch your ideas come to life as clickable hyperlinks within Sourcetree.

Happy coding, and may your bugs be quickly resolved!

ChatGPT
AI
Sourcetree
Author
Goran Siric

Blog about programming



If you found this useful,
you can buy me a coffe :)

By me a coffe through PayPal :)


Featured articles

Integrating ChatGPT shared links with Sourcetree

We'll guide you through the process of incorporating ChatGPT shared links into your commit messages.

AndEngine - Textures tips and tricks

What you should know abot textures before get started programming your first game.

GIMP script for creating Android icons at once

Script for creating Android icons for different screen resolutions at once. Icons can be saved using standard Android icons naming conventions and saved in appropriate folders.

Creating Android button with image and text using relative layout

Source code with examples how to use relative layout to create nice buttons with text and images in Android

Android application and the Internet

Tutorial about connecting to the web pages on the Internet from Android application, using both POST and GET web requests.