Template:Deploy
Appearance
- See {{Deploy}} for usage.
Usage
On Deployments, add this template to a deployment window under the what=
parameter of {{Deployment calendar event card}}, headed with your {{ircnick}}.
Example
Wikitext
{{ircnick|TheresNoTime|Sammy}} {{deploy|type=config|gerrit=951042|title=IS: Enable Phonos on all projects|status=}}
Output
Sammy (TheresNoTime)
- [config] 951042 (deploy commands) IS: Enable Phonos on all projects
Example 2
Wikitext
{{ircnick|TheresNoTime|Sammy}} {{deploy|type=config|gerrit=951042|title=IS: Enable Phonos on all projects|status=d|by=TheresNoTime}}
Output
Sammy (TheresNoTime)
- [config] 951042 (deploy commands) IS: Enable Phonos on all projects
HTML
This template adds the following div/spans, which can be used to programatically parse the page;
<div class="deploy-item"></div>
around each instance of the template.<span class="deploy-type"></span>
around the change|type=
<span class="deploy-title"></span>
around the change|title=
Selecting parameters via CSS selectors
- Change type:
.deploy-item .deploy-type
- Change title:
.deploy-item .deploy-title
- Gerrit change ID:
.deploy-item .plainlinks a.external.text
(first result) or get thedata-gerrit-id
(added) attribute from.deploy-item .plainlinks
- Deployment status: Get the
alt
attribute from.deploy-item img
- Change owner: Something like
$('.deploy-item').prev('p').find('span.ircnick');
I guess?
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Change type | type | Change type for this deployment patchset
| String | required |
Gerrit changeset ID | gerrit | The Gerrit patchset ID | Number | required |
Change title | title | The title of the patchset | String | required |
Deployment status | status | Deployment status of this patchset. When not set, defaults to pending
| String | optional |
Deployed by | by | Who the patchset was deployed (or not deployed) by
| String | optional |