Skip to content

Commit

Permalink
Add Feature Template for Issues Created from Agones Website (#3561)
Browse files Browse the repository at this point in the history
* Add Feature Template for Issues Created from Agones Website

* get url of the current page

* Add kind/documentation label to issue

* modify body of issue

* area/site label included

---------

Co-authored-by: Mengye (Max) Gong <[email protected]>
  • Loading branch information
Kalaiselvi84 and gongmax authored Jan 3, 2024
1 parent eac649c commit 1e78d88
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion site/layouts/partials/page-meta-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,23 @@
{{ if $gh_repo }}
<div class="td-page-meta ml-2 pb-1 pt-2 mb-0">
{{ $editURL := printf "%s/edit/main/site/content/%s/%s" $gh_repo ($.Site.Language.Lang) $path }}
{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}}
{{ $pageURL := .Page.Permalink }}

{{ $issuesBodyTemplate := printf `
**Link to page**:
%s

**Description of documentation issue**:
A clear and concise description of what the problem is with this documentation - e.g. "I find it hard to understand...."

**What improvements to documentation would you like to see?**:
A clear and concise description of what modifications or additions to documentation you would like to see.

` $pageURL}}

{{ $issuesBody := printf "%s" $issuesBodyTemplate}}
{{ $issuesURL := printf "%s/issues/new?title=%s&body=%s&labels=kind/documentation,area/site" $gh_repo (htmlEscape $.Title) $issuesBody }}

<a href="{{ $editURL }}" data-proofer-ignore target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a>
<a href="{{ $issuesURL }}" target="_blank"><i class="fab fa-github fa-fw"></i> {{ T "post_create_issue" }}</a>
</div>
Expand Down

0 comments on commit 1e78d88

Please sign in to comment.