Overview
In External Connections and Mount Points, as discussed in the previous sections, there are two special fields that are treated differently by the system: the Git Repo URL Pattern and Git View URL Pattern.
These fields can contain macros which are expanded at run time and filled in with a value from another one of the fields in the record.
Macros begin with the $
character.
List of Macros
Macro | Available in Git Host Type | Description |
---|---|---|
$PAT |
All | Allows the personal access token specified in the associated credential field to be injected into the final URL |
$ORGNAME |
Azure DevOps | Allows the Azure DevOps organization name specified in the associated field to be injected into the final URL |
$PROJECTNAME |
Azure DevOps | Allows the Azure DevOps project name specified in the associated field to be injected into the final URL |
$REPONAME |
Azure DevOps, Bitbucket, GitHub | Allows the Azure DevOps project name specified in the associated field to be injected into the final URL |
$USERNAME |
Bitbucket | Allows the Bitbucket user name specified in the associated credential field to be injected into the final URL. Used when specifying password credentials. |
$WORKSPACEID |
Bitbucket | Allows the Bitbucket workspace id specified in the associated credential field to be injected into the final URL. TODO: Review. |
$OWNERNAME |
GitHub, GitLab | Allows the account owner name specified in the associted field to be injected into the final URL |
$RELATIVEPATH |
All | Allows the unaltered, unencoded value of the relative path of the currently selected file to be injected into the final URL. |
$URLENCODED_RELATIVEPATH |
All |
Similar to $RELATIVEPATH except special characters in the string are encoded
for embedding within the URL.
|