summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/filtered_search/add_extra_tokens_for_merge_requests.js
blob: 0b24d9fc920ce64e590b68d1cd7efaf15ed23e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export default IssuableTokenKeys => {
  const wipToken = {
    key: 'wip',
    type: 'string',
    param: '',
    symbol: '',
    icon: 'admin',
    tag: 'Yes or No',
    lowercaseValueOnSubmit: true,
    uppercaseTokenName: true,
    capitalizeTokenValue: true,
  };

  IssuableTokenKeys.tokenKeys.push(wipToken);
  IssuableTokenKeys.tokenKeysWithAlternative.push(wipToken);

  const targetBranchToken = {
    key: 'target-branch',
    type: 'string',
    param: '',
    symbol: '',
    icon: 'arrow-right',
    tag: 'branch',
  };

  IssuableTokenKeys.tokenKeys.push(targetBranchToken);
  IssuableTokenKeys.tokenKeysWithAlternative.push(targetBranchToken);
};