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

[Feature] Is it possible to pre-fill the deployment comment? #12

Open
tomfotherby opened this issue Sep 4, 2010 · 2 comments
Open

[Feature] Is it possible to pre-fill the deployment comment? #12

tomfotherby opened this issue Sep 4, 2010 · 2 comments

Comments

@tomfotherby
Copy link
Contributor

In order for me to deploy quickly, I have a browser bookmark to our Webistrano deployment page, e.g. http://www.example.com:8000/projects/1/stages/1/deployments/new?task=deploy

We use trac as a issue management system and I'd like to integrate the Webistrano deployment into trac using the deployment hyperlink above. It would be cool if I could pre-fill the deployment comment using data from the trac ticket. Is there any way I can do this? Does Webistrano have a API that could help?

@jweiss
Copy link
Collaborator

jweiss commented Sep 21, 2010

Yes, Webistrano has an API. It follows the default Rails RESTful API, e.g. /projects/1/stages.xml etc

But I think there is no API call to pre-fill HTML forms. You could easily fake it if you would add ?deployment[comment]=Foobar or so to the URL.

@tomfotherby
Copy link
Contributor Author

Thanks, I was able to pass some comment text via the url using the "description" variable, e.g. http://www.example.com:8000/projects/1/stages/1/deployments/new?task=deploy&description=my%20comment

But first, I needed to add the following ruby code after line 33 of app/controllers/deployments_controller.rb:

@deployment.description = params[:description]

insoul pushed a commit to insoul/webistrano that referenced this issue Oct 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants