-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC4J-574 Jirabot improvements #681
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmcmu a couple of var refactoring as mentioned offline.
@rpastrana Implemented code review changes and rebased to 8.12.x |
else: | ||
transition = '' | ||
|
||
if transition != '': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if transition == '' ?
elif statusName == 'Closed': | ||
transition = 'Reopen Issue' | ||
else: | ||
transition = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's log this else condition, something like "Unexpected Jira status encountered: statusName"
@@ -67,10 +68,17 @@ jobs: | |||
transitions = jira.transitions(issue) | |||
result += 'Error: Transition: "' + transition + '" failed with: "' + str(error) + '" Valid transitions=' + str(transitions) + '\n' | |||
|
|||
if issue.fields.customfield_10010 is None: | |||
issue.update(fields={'customfield_10010': pull_url}) | |||
prFieldName = propertyMap.get('pullRequestFieldName', 'customfield_10010') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's target the new jira name as a long term solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmcmu approved, we'll change the default pr custom field name once migrated.
- Moved github user dictionary to github action var - Changed logic for changing jira issue user - Added JirabotMerge to 8.12.x - Backported various Jirabot changes - Added Jira issue property map Signed-off-by: James McMullan [email protected]
@rpastrana Finished testing the issue property map change, looks good. Squashed and ready to merge if it still looks good |
Signed-off-by: James McMullan [email protected]
Type of change:
Checklist:
Testing: