Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7fa465d

Browse files
committed
GIT-6062 apply suggestions
1 parent c4ff8c6 commit 7fa465d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎git-integration-for-jira-self-managed/Update-Nested-Repository-API-gij-self-managed.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The Request body is a _JSON_ structure similar to the [Update Existing Reposi
3636
<span class="logoimg"></span>
3737
</div>
3838
<div class="imsgbox">
39-
In the table below, fields marked with a Read-only flag cannot be changed. Any defined value is ignored.
39+
In the table below, fields marked with a <b>Read-only</b> flag cannot be changed. Any defined value is ignored.
4040
</div>
4141
</div>
4242
</div>
@@ -45,39 +45,39 @@ The Request body is a _JSON_ structure similar to the [Update Existing Reposi
4545
| :--- | :--- |
4646
| _**id**_ | Integer. Required.<br><br>This is the ID of the existing nested repository. For example, `id : 3,`.<br><br>The Update Repository API will look for the repository with `id : 3` and replaces repository properties according to the declared JSON request body structure file. |
4747
| _**displayName**_ | _String._ Optional.<br><br>This is the name that will appear in the Git Integration for Jira app repositories list. |
48-
| _**mainBranch**_ | _String._ Read-Only.<br><br>The specified branch will intend to organize the Git Commit tab. A commit will not be shown in other branches if it is a part of the main branch. By default, "master" will be used if a main branch is not specified. |
48+
| _**mainBranch**_ | _String._ Read-only.<br><br>The specified branch will intend to organize the Git Commit tab. A commit will not be shown in other branches if it is a part of the main branch. By default, "master" will be used if a main branch is not specified. |
4949
| _**disabled**_ | _Boolean._ Optional.<br><br>Set the repository status to updated (enabled) or disabled. If left blank, the default setting for this field is _**false**_.<br><br><b style='background-color:#EAE5FE; padding:1px 5px; color:#412C92; border-radius:3px; margin: 0 5px 10px 0; font-size: small;display:inline-block;'>UPDATE</b><br>Use the separate API for enabling/disabling a repository which is better and more reliable than using this field here. For detailed instructions on the usage, see [Enable/disable existing repository API](/git-integration-for-jira-data-center/Enable-disable-existing-repository-API-gij-self-managed) page. |
50-
| _**enableFetches**_ | _Boolean._ Read-Only.<br><br>Set to _**true**_ to enable fetches on git repositories hosted on remote servers.<br><br>Set to _**false**_ to enable fetches on git repositories hosted on the same server as Jira. |
50+
| _**enableFetches**_ | _Boolean._ Read-only.<br><br>Set to _**true**_ to enable fetches on git repositories hosted on remote servers.<br><br>Set to _**false**_ to enable fetches on git repositories hosted on the same server as Jira. |
5151
| _**sendCommitEmails**_ | _Boolean._ Optional.<br><br>Enables or disables commit notification emails for this repository. |
5252
| _**maxMinsToCommitEmail**_ | _Integer._ Optional.<br><br>Set the desired value in minutes, as to when commit notifications will be sent. Commit notifications will be e-mailed if the age of the commit is less than or equal to this value. |
5353
| _**global**_ | _Boolean._ Optional.<br><br>If set to true, the _projectMappingIds_ parameter is ignored. Otherwise the `projectMappingIds` parameter value(s) are applied. |
5454
| _**projectMappingIds**_ | _Long [ ]._ Array. Optional.<br><br>These are numeric projects IDs associated with the repository. When you create a new repository and set the field gitViewerEnabled to true, at least one project must be associated with it.<br><br>Example: `"projectMappingIds": [10000]` |
5555
| _**hosted**_ | **Internal field**. Read-only.<br><br>This field will show whether the repository is hosted on Jira or not. |
5656
| _**revisionIndexing**_ | _Boolean._ Optional.<br><br>This setting turn on/off indexing of revisions, for instance, git commits. This setting also turns on the memory cache which is used when list of commits are displayed.<br><br>Set to _**true**_ if revision indexing will index and link to any mentioned issue keys in the revision history or not (_**false**_). |
5757
| **_gitViewerEnabled_** | _Boolean._ Optional.<br><br>Enables or disables the **Repository Browser** feature for this repository. The default setting for this setting is _**enabled**_. Users must have the **View Development Tools** _project permission_ in order to use this feature. Consult your Jira System Administrator on permissions.<br><br>For more information, see section, [Repository Browser](/git-integration-for-jira-data-center/repository-browser-gij-self-managed). |
58-
| _**username**_ | _String._ Read-Only.<br><br>Set as username for the git host. Leave blank if 2FA is enabled. Otherwise, fill this in if password has changed. |
59-
| _**encryptedPassword**_ | _String._ Read-Only.<br><br>Set as password for the git host. Leave blank if 2FA is enabled. Otherwise, fill this in if password has changed. |
60-
| _**encryptedPat**_ | _String._ Optional.<br><br>This field accepts personal access token from supported git hosts. Fill this in if 2FA is enabled for the git host and if the PAT has changed. |
61-
| _**requireUserPat**_ | _String._ Read-Only. Default is _**false**_.<br><br>Setting this field to true will require users to provide their personal access tokens (PAT) specific for branch and pull/merge request operations. |
62-
| _**disableSslVerification**_ | _Boolean._ Read-Only.<br><br>The **SSL Verify** setting is set to **Enabled** by default. If set to _**true**_, the Git Integration for Jira app will ignore verification of SSL certificates when connecting to a git server.<br><br>This setting can also be accessed via:<br><br><b style='background-color:#FFF1B6; padding:1px 5px; color:#172A4C; border-radius:3px; margin: 0 5px; font-size: small;'>VERSION 4.8.x</b> **Manage git repositories**_Actions_**Edit repository settings**.<br><br><b style='background-color:#FFF1B6; padding:1px 5px; color:#172A4C; border-radius:3px; margin: 0 5px; font-size: small;'>VERSION 5+</b> **Manage integrations**_Actions_**Edit repository**. |
58+
| _**username**_ | _String._ Read-only.<br><br>Set as username for the git host. Leave blank if 2FA is enabled. Otherwise, fill this in if password has changed. |
59+
| _**encryptedPassword**_ | _String._ Read-only.<br><br>Set as password for the git host. Leave blank if 2FA is enabled. Otherwise, fill this in if password has changed. |
60+
| _**encryptedPat**_ | _String._ Read-only.<br><br>This field accepts personal access token from supported git hosts. Fill this in if 2FA is enabled for the git host and if the PAT has changed. |
61+
| _**requireUserPat**_ | _String._ Read-only. Default is _**false**_.<br><br>Setting this field to true will require users to provide their personal access tokens (PAT) specific for branch and pull/merge request operations. |
62+
| _**disableSslVerification**_ | _Boolean._ Read-only.<br><br>The **SSL Verify** setting is set to _**false**_ by default. If set to _**true**_, the Git Integration for Jira app will ignore verification of SSL certificates when connecting to a git server.<br><br>This setting can also be accessed via:<br><br><b style='background-color:#FFF1B6; padding:1px 5px; color:#172A4C; border-radius:3px; margin: 0 5px; font-size: small;'>VERSION 4.8.x</b> **Manage repositories**_Actions_**Edit repository settings**.<br><br><b style='background-color:#FFF1B6; padding:1px 5px; color:#172A4C; border-radius:3px; margin: 0 5px; font-size: small;'>VERSION 5+</b> **Manage integrations**_Actions_**Edit repository**. |
6363
| _**smartCommitsEnabled**_ | _Boolean._ Optional.<br><br>This setting is enabled by default. Enables/disables smart commits processing for this repository or tracked folder. The default setting for this field is _**true**_. |
6464
| _**webLinkType**_ | _String._ Optional.<br><br>Set web link type equivalent to the connected git host. Set web linking formats by referring to [Git Integration for Jira: Web linking](/git-integration-for-jira-data-center/web-linking-gij-self-managed). |
6565
| _**viewFormat**_ | _String._ Optional.<br><br>This URL is unused and not being configured for the newly added integration types. |
6666
| _**changesetFormat**_ | _String._ Optional.<br><br>This is the URL used to display revision.<br><br>Use the following variable: `${rev}` &nbsp;&ndash;&nbsp; git revision |
6767
| _**fileAddedFormat,**_ <br>_**fileModifiedFormat**_, <br>_**fileDeletedFormat**_ | _String._ Optional.<br><br>This is the URL to display content of added, modified or deleted files. Use the following variables:<br><br><ul><li><code>${num}</code> &nbsp;&ndash;&nbsp; number of change (0, 1, ...)</li><li><code>${rev}</code> &nbsp;&ndash;&nbsp; git revision</li><li><code>${path}</code> &nbsp;&ndash;&nbsp; path of the file being changed</li><li><code>${parent}</code> &nbsp;&ndash;&nbsp; parent git revision</li><li><code>${blob}</code> &nbsp;&ndash;&nbsp; ID of blob object</li><li><code>${parent_blob}</code> &nbsp;&ndash;&nbsp; ID of parent blob object</li><li><code>$convert(${branch},"subStr","newSubStr")</code> &nbsp;&ndash;&nbsp; this inline function returns branch name with **subStr** replaced by a <b>newSubStr</b>. The <code>${branch}</code> supports the character requirements on some hosting services.</li></ul> |
6868
| _**mergeRequestFormat**_ | _String._ Optional.<br><br>This is the URL to display content of pull/merge requests on the git server. Use the following variables:<br><br>`${mergereqId}` &mdash; ID of the pull/merge request |
6969
| _**branchLinkFormat**_ | _String._ Optional.<br><br>This is the URL to display a branch on the git server. Use the following variables:<br><br>`${branch}` – Name of the branch |
70-
| _**commitsValidationRequired**_ | _Boolean._ Read-Only.<br><br>This setting is only applicable to self-hosted git servers. For example, you are hosting your git repositories in your own server such as GitLab CE/EE or GitHub Enterprise. If a developer tries to push a commit without the issue key in its message, the push is rejected by the Git Integration for Jira app.<br><br>If this setting is **enabled**, the commit messages are validated according to the following rules:<br><ul><li>The commit message contains at least one issue key.</li><li>The issue key is valid.</li><li>The issue key exists.</li></ul> |
70+
| _**commitsValidationRequired**_ | _Boolean._ Read-only.<br><br>This setting is only applicable to self-hosted git servers. For example, you are hosting your git repositories in your own server such as GitLab CE/EE or GitHub Enterprise. If a developer tries to push a commit without the issue key in its message, the push is rejected by the Git Integration for Jira app.<br><br>If this setting is **enabled**, the commit messages are validated according to the following rules:<br><ul><li>The commit message contains at least one issue key.</li><li>The issue key is valid.</li><li>The issue key exists.</li></ul> |
7171
| _**tagsFilter**_ | _String._ Optional.<br><br>Displays all tags for the specific issue, if left blank. Otherwise, set tags matching pattern to display tags on issue pages that match the specified regular expression pattern.<br><br>For more information, see example in [Show tags](/git-integration-for-jira-data-center/git-tags-gij-self-managed). |
7272
| _**sourcesDiffViewEnabled**_ | _Boolean._ Optional.<br><br>When enabled, this setting allows Jira users with the **View Development Tools** and correct Jira/Git Integration for Jira app permissions to view the commit and file diffs inside Jira. |
7373
| _**trustFolderStat**_ | _Boolean_. Optional.<br><br>When the `trustFolderStat` setting is set to **false**, the `.git/objects/pack` folder will be always scanned to check for new pack files. If set to **true**, the `last-modified` attribute of the folder will be used to check the folder for modifications.<br><br>The default setting for Jira Data Center is **false**.<br><br><img src='/wp-content/uploads/bbb-note-20.png' /> If your repository is stored on a network share, it is highly recommended to set this setting to _**false**_. |
74-
| _**refSpecHeads**_ | _Boolean_. Read-Only.<br><br>This is a reference to `refs/heads/*` used for fetching. The default value for this field is _**true**_. |
75-
| _**refSpecTags**_ | _Boolean_. Read-Only.<br><br>This is a reference to `refs/tags/*` used for fetching. The default value for this field is _**true**_. |
74+
| _**refSpecHeads**_ | _Boolean_. Read-only.<br><br>This is a reference to `refs/heads/*` used for fetching. The default value for this field is _**true**_. |
75+
| _**refSpecTags**_ | _Boolean_. Read-only.<br><br>This is a reference to `refs/tags/*` used for fetching. The default value for this field is _**true**_. |
7676
| _**refSpecNotes**_ | _Boolean_. Optional.<br><br>This is a reference to `refs/notes/*` used for fetching. The default value for this field is _**true**_.<br><br><img src='/wp-content/uploads/bbb-info-20.png' /> Git notes are not shown...<br><ul><li>when <code>refs/notes</code> are disabled on connecting a repository;</li><li>when a new note comes when <code>refs/notes</code> is disabled.</li></ul> |
7777
| _**refSpecChanges**_ | _Boolean_. Optional.<br><br>This is a reference to `refs/changes/*` used for fetching. The default value for this field is _**false**_. |
7878
| _**refSpecCustom**_ | _String_. Optional. <br>This is a user-defined list of references used for fetching. It is a comma-separated list with the format: `+refs/refname1/*:refs/refname1/*`, `refs/refname2/*:refs/refname2/*`, ... |
7979
| _**prHideFilter**_ | _String._ Optional.<br><br>Displays all pull requests for the specific issue, if left blank. Otherwise, set pull requests matching pattern to hide pull requests on issue pages that match the specified regular expression pattern. |
80-
| _**state**_ | Integer. Read-Only. This is the indexing state of the nested repository: QUEUED, UPDATED, SCANNING, ERROR. |
80+
| _**state**_ | Integer. Read-only. This is the indexing state of the nested repository: <bstyle='background-color:#DEE0E5; padding:1px5px; color:#44516C; border-radius:3px; margin: 05px; font-size: small;'>QUEUED</b>, <bstyle='background-color:#E2FCEF; padding:1px5px; color:#006745; border-radius:3px; margin: 05px; font-size: small;'>UPDATED</b>, <bstyle='background-color:#DEEAFE; padding:1px5px; color:#0C42A3; border-radius:3px; margin: 05px; font-size: small;'>SCANNING</b>, <bstyle='background-color:#FFEBE6; padding:1px5px; color:#C02909; border-radius:3px; margin: 05px; font-size: small;'>ERROR</b>. |
8181

8282
&nbsp;
8383

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /