Skip to content
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

Fixes #7298: rudder should automatically guess my redmine role #86

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/rudder-dev/rudder-dev
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,12 @@ def can_modify_issues(project_id):
global REDMINE_CAN_MODIFY
if REDMINE_CAN_MODIFY is not None:
return REDMINE_CAN_MODIFY
<<<<<<< HEAD
data = requests.get(REDMINE_API_URL + "/users/current.json?include=memberships", headers = {'X-Redmine-API-Key': REDMINE_TOKEN } )
user = data.json()
=======
user = requests.get(REDMINE_API_URL + "/users/current.json?include=memberships", headers = {'X-Redmine-API-Key': REDMINE_TOKEN } )
>>>>>>> 31c71b6... Fixes #7298: rudder should automatically guess my redmine role
for membership in user['user']['memberships']:
if membership['project']['id'] == project_id:
for role in membership['roles']:
Expand Down