Skip to content

Commit

Permalink
Merge pull request canonical#14202 from akbarkz/task/WD-14301-issue_form
Browse files Browse the repository at this point in the history
[WD-14301] use an issue form to report issues on GitHub
  • Loading branch information
akbarkz authored Aug 20, 2024
2 parents 534888c + f8e9844 commit 142c577
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 46 deletions.
36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Alternative issue template
name: Default issue
description: Issue from anywhere, perhaps from the footer of the site
body:
- type: markdown
attributes:
value: |
Note - filling in this form will file an issue against the www.ubuntu.com website, not against Ubuntu itself, for Ubuntu OS related bugs please [go here](https://help.ubuntu.com/community/ReportingBugs).
*Note - filling in this form will file an issue against the www.ubuntu.com website, not against Ubuntu itself, for Ubuntu OS related bugs please [go here](https://help.ubuntu.com/community/ReportingBugs).*
- type: markdown
attributes:
value: |
Please provide as many details as possible in order to provide maintainers more context about the issue. Don't skip/remove any of the sections below. If there is no data to provide in one of the sections, please specify it by typing "N/A" or similar. That will help maintainers reproduce the issue and be able to help quickly. Thanks.
*Please provide as many details as possible in order to provide maintainers more context about the issue. Don't skip/remove any of the sections below. If there is no data to provide in one of the sections, please specify it by typing "N/A" or similar. That will help maintainers reproduce the issue and be able to help quickly. Thanks.*
- type: textarea
id: summary
attributes:
Expand Down Expand Up @@ -47,7 +47,8 @@ body:
required: true
- type: markdown
attributes:
value: Please provide a screenshot in the comments after you have created an issue to help the maintainers debug the issue quicker.
value: |
*Please provide a screenshot in the comments after you have created an issue to help the maintainers debug the issue quicker.*
- type: input
id: reported_from
attributes:
Expand Down
8 changes: 3 additions & 5 deletions templates/templates/_footer-copyright-and-legal.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="row">
<hr class="is-muted" />
<div class="col-3 col-medium-2">
<p class="p-footer--secondary__content">&copy; {{ current_year() }} Canonical Ltd. </p>
<p class="p-footer--secondary__content">&copy; {{ current_year() }} Canonical Ltd.</p>
</div>
<div class="col-9 col-medium-4">
<p>Ubuntu and Canonical are registered trademarks of Canonical Ltd.</p>
Expand All @@ -18,12 +18,10 @@
<a href="" class="js-revoke-cookie-manager">Manage your tracker settings</a>
</li>
<li class="p-inline-list__item">
<a href="https://github.com/canonical/ubuntu.com/issues/new" id="report-a-bug">
Report a bug on this site
</a>
<a href="https://github.com/canonical/ubuntu.com/issues/new?template=ISSUE_TEMPLATE.yaml"
id="report-a-bug">Report a bug on this site</a>
</li>
</ul>
</nav>
</div>
</div>

2 changes: 1 addition & 1 deletion templates/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ <h2 class="p-heading--5">
<script>
/* Add the page to the report a bug link */
var bugLink = document.querySelector('#report-a-bug');
bugLink.href += '?body=%0a%0a%0a---%0a*Reported%20from:%20' + location.href + '*';
bugLink.href += '&reported_from=' + location.href;
</script>
<span class="u-off-screen"><a href="#">Go to the top of the page</a></span>
</div>
Expand Down

0 comments on commit 142c577

Please sign in to comment.