Skip to content

Commit

Permalink
Update its.yaml
Browse files Browse the repository at this point in the history
AAriam committed Oct 22, 2024
1 parent 69fffca commit 76c9eaa
Showing 1 changed file with 0 additions and 136 deletions.
136 changes: 0 additions & 136 deletions template/.control/its.yaml
Original file line number Diff line number Diff line change
@@ -1540,142 +1540,6 @@ issue:
do not fall under other issue categories.
body: ${{ issue.__custom_template__.body_maintenance }}
post_process: ${{ issue.__custom__.post_process }}
doc:
dev_protocol:
__custom__:
macro_timeline_entry: >-
{%- macro make_entry(actor, description) -%}
| {{ now.strftime("%Y.%m.%d") }} | {{ now.strftime("%H:%M:%S") }} | {{ actor }} | {{ description }} |
{%- endmacro %}
macro_user: >-
{%- macro make_user(user) -%}
{%- if user.name -%}
{{ user.name }} (@{{ user.login }})
{%- else -%}
@{{ user.login }}
{%- endif -%}
{%- endmacro %}
macro_pull: >-
{%- macro make_pull(pull) -%}
#{{ pull.number }} (branch [{{ pull.head.name }}]({{ pull.head.url }}))
{%- endmacro %}
template: |
${{ doc.dev_protocol.__custom__.macro_user }}
# Development Protocol {{ data.issue_number }}
- **Type**: {{ form.description }}
- **Client**: {{ make_user(issue.user) }}
## User Requirements Document (URD)
{{ issue_body }}
<!--
## Triage
## Plan
## Software Requirements Specification (SRS)
## Software Design Document (SDD)
## Implementation
{{ data.commit_summary }}
{{ data.commit_description }}
{{ data.tasklist }}
## References
{{ data.references }}
-->
## Timeline
{{ data.timeline }}
timeline_template:
opened: |
${{ doc.dev_protocol.__custom__.macro_timeline_entry }}
${{ doc.dev_protocol.__custom__.macro_user }}
{{ make_entry(make_user(actor), "Ticket submitted.") -}}
labeled: |
${{ doc.dev_protocol.__custom__.macro_timeline_entry }}
${{ doc.dev_protocol.__custom__.macro_user }}
{%- macro describe() -%}
{%- set category = label.category -%}
{%- if category == "type" -%}
Type set to `{{ label.suffix }}`.
{%- elif category == "subtype" -%}
Subtype set to `{{ label.suffix }}`.
{%- elif category == "version" -%}
Target version set to `{{ label.suffix }}`.
{%- elif category == "branch" -%}
Target branch set to `{{ label.suffix }}`.
{%- elif category == "status" -%}
{%- set status = label.id -%}
{%- if status == "triage" -%}
Entered the triage phase.
{%- elif status == "rejected" -%}
Rejected and closed.
{%- elif status == "duplicate" -%}
Marked as duplicate and closed.
{%- elif status == "invalid" -%}
Marked as invalid and closed.
{%- elif status == "planning" -%}
Entered the planning phase.
{%- elif status == "requirement_analysis" -%}
Entered the requirement analysis phase.
{%- elif status == "design" -%}
Entered the design phase.
{%- elif status == "implementation" -%}
Entered the implementation phase.
{%- elif status == "testing" -%}
Entered the testing phase.
{%- elif status == "deploy_alpha" -%}
Deployed as alpha release.
{%- elif status == "deploy_beta" -%}
Deployed as beta release.
{%- elif status == "deploy_rc" -%}
Deployed as release candidate.
{%- elif status == "deploy_final" -%}
Deployed as final release.
{%- else -%}
Status changed to {{ status }}.
{%- endif -%}
{%- endif -%}
{%- endmacro %}
{{ make_entry(make_user(actor), describe()) -}}
assigned: |
${{ doc.dev_protocol.__custom__.macro_timeline_entry }}
${{ doc.dev_protocol.__custom__.macro_user }}
{{ make_entry(make_user(actor), "Assigned to " + make_user(assignee) + ".") -}}
pull_opened: |
${{ doc.dev_protocol.__custom__.macro_timeline_entry }}
${{ doc.dev_protocol.__custom__.macro_user }}
${{ doc.dev_protocol.__custom__.macro_pull }}
{%- macro describe(pulls) -%}
{%- if pulls|length == 1 -%}
Created pull request {{ make_pull(pulls[0]) }} to track implementation.
{%- elif pulls|length == 2 -%}
Created pull requests {{ make_pull(pulls[0]) }} and {{ make_pull(pulls[1]) }} to track implementation.
{%- elif pulls|length > 2 -%}
Created pull requests {% for pull in pulls[:-1] -%}
{{ format_entry(pull) }},
{%- endfor %} and {{ format_entry(pulls[-1]) }} to track implementation.
{%- endif -%}
{%- endmacro %}
{{ make_entry(make_user(actor), describe(pulls)) -}}
push: |
${{ doc.dev_protocol.__custom__.macro_timeline_entry }}
${{ doc.dev_protocol.__custom__.macro_user }}
{%- macro describe() -%}
New commits pushed to [{{ head.name }}]({{ head.url }}) (CI [{{ context.run_id }}]({{ workflow_url }})).
{%- endmacro %}
{{ make_entry(make_user(actor), describe()) -}}
pull:
template:
default: |

0 comments on commit 76c9eaa

Please sign in to comment.