Skip to content

Commit

Permalink
chore: update GitHub issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Dec 30, 2020
1 parent cec2750 commit fffa0a3
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

Please fill the following code example:

Engine.IO server version: `x.y.z`

*Server*

```js
const engine = require("engine.io");
const server = engine.listen(3000, {});

server.on("connection", (socket) => {
console.log("connection");

socket.on("message", (data) => {
console.log("data", data);
});

socket.on("close", () => {
console.log("close");
});
});
```

Engine.IO client version: `x.y.z`

*Client*

```js
const socket = require("engine.io-client")("ws://localhost:3000");

socket.on("open", () => {
console.log("open");

socket.on("message", (data) => {
console.log("data", data);
});

socket.on("close", () => {
console.log("close");
});
});
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Platform:**
- Device: [e.g. Samsung S8]
- OS: [e.g. Android 9.2]

**Additional context**
Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a Question
url: https://github.com/socketio/socket.io/discussions/new?category=q-a
about: Ask the community for help
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
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.

**Additional context**
Add any other context or screenshots about the feature request here.

0 comments on commit fffa0a3

Please sign in to comment.