Changes

Jump to navigation Jump to search
276 bytes added ,  14:24, 10 November 2010
Line 61: Line 61:  
  password_key = user.forgot_password!
 
  password_key = user.forgot_password!
 
  Mailer.deliver_forgotten_password(user, password_key)
 
  Mailer.deliver_forgotten_password(user, password_key)
 +
 +
# add new committer
 +
committer = User.find_by_login("user")
 +
project = Project.find_by_title("project")
 +
repo = project.repositories.select {|i| i.title == 'mainline'}.pop
 +
repo.committerships.create_with_permissions!({:committer => committer}, [Committership::CAN_COMMIT])
    
== Upgrade notes ==
 
== Upgrade notes ==
    
Upgrade will be triggered on every puppet session (if there is such need), vcs repository will be rebased to the HEAD commit with all related changes like database migration.
 
Upgrade will be triggered on every puppet session (if there is such need), vcs repository will be rebased to the HEAD commit with all related changes like database migration.

Navigation menu