Pass a deployment comment to the deployment form #17

Merged
merged 1 commit into from May 12, 2011

Projects

None yet

2 participants

@tomfotherby
Contributor

I made a tiny change to scratch a itch I mentioned in the webistrano issue tracker: https://github.com/peritor/webistrano/issues/#issue/12

In order to be able to pass a deployment comment to the deployment form, add the following ruby code after line 33 of /var/www/webistrano/app/controllers/deployments_controller.rb:

# Allow description url var to be passed in the URL
@deployment.description = params[:description]

Now the description url variable can be used to pre-fill the deployment comment, e.g. http://webistrano.example.com:8000/projects/1/stages/1/deployments/new?task=deploy&description=my%20comment. We do this to get some integration with the trac bug tracking software.

@jweiss jweiss merged commit e6f9c8f into peritor:master May 12, 2011
@jweiss jweiss added a commit that referenced this pull request May 12, 2011
@jweiss jweiss add test for pull request #17 beb2b4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment