You can add your own categories, if you have access to the TeamForgeGerritMappings.xml file.
To add a new user-defined repository category, follow these steps:
Add a new repository category, say "pull_request_new" to it.
<RepoCategory name="pull_request_new" keepRightsAddedInGerrit="false"> <ScmAdmin> <GerritRead value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCodeReview upperRange="2" lowerRange="-2" refPattern="refs/*" exclusive="false"/> <GerritVerify upperRange="1" lowerRange="-1" refPattern="refs/*" exclusive="false"/> <GerritSubmit value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPush forcePush="true" value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCreateReference value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritForgeAuthorIdentity value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritForgeCommitterIdentity value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritForgeServerIdentity value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritOwner value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritAbandon value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPushMerges value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritPush forcePush="false" value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritRebase value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPushAnnotatedTag forcePush="false" value="ALLOW" refPattern="refs/tags/*" exclusive="false"/> <GerritPushSignedTag value="ALLOW" refPattern="refs/tags/*" exclusive="false"/> <!-- protected branches--> <GerritPush forcePush="true" value="ALLOW" refPattern="refs/heads/{RepoParams/@protectedBranches}" exclusive="true"/> <GerritSubmit value="ALLOW" refPattern="refs/for/refs/heads/{RepoParams/@protectedBranches}" exclusive="true"/> </ScmAdmin> <ScmDeleteView> <GerritRead value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCodeReview upperRange="2" lowerRange="-2" refPattern="refs/*" exclusive="false"/> <GerritVerify upperRange="1" lowerRange="-1" refPattern="refs/*" exclusive="false"/> <GerritSubmit value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPush forcePush="true" value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCreateReference value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritForgeAuthorIdentity value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritForgeCommitterIdentity value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPushMerges value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritPush forcePush="false" value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritRebase value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPushAnnotatedTag forcePush="false" value="ALLOW" refPattern="refs/tags/*" exclusive="false"/> <GerritPushSignedTag value="ALLOW" refPattern="refs/tags/*" exclusive="false"/> <!-- protected branches--> <GerritPush forcePush="false" value="DENY" refPattern="refs/heads/{RepoParams/@protectedBranches}" exclusive="true"/> <GerritSubmit value="DENY" refPattern="refs/for/refs/heads/{RepoParams/@protectedBranches}" exclusive="true"/> </ScmDeleteView> <ScmCommitView> <GerritRead value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCodeReview upperRange="2" lowerRange="-2" refPattern="refs/*" exclusive="false"/> <GerritVerify upperRange="1" lowerRange="-1" refPattern="refs/*" exclusive="false"/> <GerritSubmit value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPush forcePush="false" value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCreateReference value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPush forcePush="false" value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritRebase value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritPushAnnotatedTag forcePush="false" value="ALLOW" refPattern="refs/tags/*" exclusive="false"/> <GerritPushSignedTag value="ALLOW" refPattern="refs/tags/*" exclusive="false"/> <GerritPushMerges value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <!-- protected branches--> <GerritPush forcePush="false" value="DENY" refPattern="refs/heads/{RepoParams/@protectedBranches}" exclusive="true"/> <GerritSubmit value="DENY" refPattern="refs/for/refs/heads/{RepoParams/@protectedBranches}" exclusive="true"/> </ScmCommitView> <ScmViewOnly> <GerritRead value="ALLOW" refPattern="refs/*" exclusive="false"/> <GerritCodeReview upperRange="1" lowerRange="-1" refPattern="refs/*" exclusive="false"/> <GerritPushMerges value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritPush forcePush="false" value="ALLOW" refPattern="refs/for/refs/*" exclusive="false"/> <GerritRebase value="ALLOW" refPattern="refs/*" exclusive="false"/> </ScmViewOnly> </RepoCategory>
Now the user-defined category Pull Request New is added successfully.
Copyright 2020 CollabNet Corporation | Site Feedback | Terms of Use | Privacy Policy | Copyright and Trademark | Support