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:
-
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!
-
Locate the "Commit text links" section and click on the "Add" button.
-
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!