Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 2a79895

Browse files
committed
extract a keyword and a user name
1 parent 0bbb308 commit 2a79895

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Unified/checkor.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ def time_point(label="",sub_lap=False, percent=None):
155155
if force_complete_jira_string in c.body:
156156
user = c.author.name
157157
prepid = jira.fields.summary.split()[0]
158-
bypasses.update( prepid )
159-
overrides[user].extend( prepid )
158+
keyword = c.body[(c.body.find(force_complete_jira_string)+len(force_complete_jira_string)):].split()[0]
159+
if keyword and user in actors:
160+
bypasses.update( keyword )
161+
overrides[user].extend( keyword )
160162
break
161163
bypass_jira_string = "cmsunified please do bypass"
162164
to_check = JC.find({'text' : bypass_jira_string, "status" : "!CLOSED"})
@@ -166,7 +168,10 @@ def time_point(label="",sub_lap=False, percent=None):
166168
if bypass_jira_string in c.body:
167169
user = c.author.name
168170
prepid = jira.fields.summary.split()[0]
169-
bypasses.update( prepid )
171+
keyword = c.body[(c.body.find(bypass_jira_string)+len(bypass_jira_string)):].split()[0]
172+
if keyword and user in actors:
173+
bypasses.update( keyword )
174+
break
170175

171176
if use_mcm:
172177
## this is a list of prepids that are good to complete

0 commit comments

Comments
 (0)