Skip to content

Commit

Permalink
Merge #189
Browse files Browse the repository at this point in the history
189: Update issue templates r=lnicola a=notriddle



Co-authored-by: Michael Howell <[email protected]>
  • Loading branch information
bors[bot] and notriddle authored Oct 20, 2023
2 parents aa0f8d2 + acf46dd commit 98c2eba
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Bug Report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

- [ ] If you used a custom Builder configuration, please supply it here

```rust
Builder::default()
.link_rel(None)
.url_relative(UrlRelative::PassThrough)
```

- [ ] Please supply a reduced version of the *input* HTML that you used with Ammonia

```html
fill <html> in here
```

- [ ] If ammonia produced unexpected HTML

- [ ] Try opening the *input* HTML directly in a WHATWG web browser (like Safari, Edge, Chrome, or Firefox) without sanitizing it.

If the browser parses it the same way Ammonia does, then it's not a bug.

- [ ] Supply the reduced *output* HTML here

```html
output <html> here
```

- [ ] If Ammonia panics, please provide a backtrace

```text
$ RUST_BACKTRACE=1 ./test
thread 'main' panicked at test.rs:1:17:
explicit panic
stack backtrace:
0: std::panicking::begin_panic
1: test::other_fn
2: test::main
3: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: ["1.60.0", "stable", "beta"]
rust: ["1.66.0", "stable", "beta"]
build_flags: ["", "--cfg ammonia_unstable"]
os: [ubuntu-latest]
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ HTML Sanitization
=================

[![Crates.IO](https://img.shields.io/crates/v/ammonia.svg)](https://crates.rs/crates/ammonia)
![Requires rustc 1.60.0](https://img.shields.io/badge/rustc-1.60.0+-green.svg)
![Requires rustc 1.60.0](https://img.shields.io/badge/rustc-1.66.0+-green.svg)

Ammonia is a whitelist-based HTML sanitization library. It is designed to
prevent cross-site scripting, layout breaking, and clickjacking caused
Expand Down

0 comments on commit 98c2eba

Please sign in to comment.