blob: 46058afde540ee39a7f45dadd4f84a5104ab3d00 [file] [log] [blame]
Joey Armstrong3134bfd2024-02-10 20:51:25 -05001#!/bin/bash
2
3## --------------------------------------------------------------------
4## Intent: Retrieve a list of reason query strings
5## --------------------------------------------------------------------
6function get_jql_fixversion()
7{
8 local -n ref=$1; shift
9
10 ref+=('VOLTHA-v2.12')
11 return
12}
13
14## --------------------------------------------------------------------
15## Intent: Modify search query by release fix version string
16## --------------------------------------------------------------------
17function do_fixversion()
18{
19 declare -n ans=$1; shift
20 declare -g fixversion
21
22 if [[ -v fixversion_excl ]]; then
23 filter="$(join_by ',' "${fixversion_excl[@]}")"
24 ans+=("(fixVersion NOT IN ($filter))")
25 fi
26
27 if [[ -v fixversion_incl ]]; then
28 filter="$(join_by ',' "${fixversion_incl[@]}")"
29 ans+=("(fixVersion IN ($filter))")
30 fi
31
32 [[ -v fixversion_not_empty ]] && { ans+=('(fixVersion IS NOT EMPTY)'); }
33 [[ -v fixversion_is_empty ]] \
34 && { ans+=('(fixversion IS EMPTY)'); } \
35 || { true; }
36
37 return
38}
39
40: # ($?=0) for source $include
41
42# [EOF]