Skip to content

Commit

Permalink
docs: update issue templates to generate correct labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Ortega authored and Daniel Ortega committed Sep 18, 2023
1 parent 73cee6a commit 0e05934
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: 🐛 Bug report
about: Something isn't working as expected
title: ''
labels: bug
assignees: ''
title: ""
labels: T-bug
assignees: ""
---

## 🙂 Expected behavior
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: ✨ Feature request
about: Suggest a new feature or improvement
title: ''
labels: feature
assignees: ''
title: ""
labels: T-feature
assignees: ""
---

## 📚 Context
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/gas-optimization.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: ⛽ Gas optimization
about: Reduce gas usage of smart contracts
title: ''
labels: onchain
assignees: ''
title: ""
labels: T-perf, A-contracts
assignees: ""
---

## 🚶 Steps
Expand Down
12 changes: 9 additions & 3 deletions .github/ISSUE_TEMPLATE/smart-contract-audit.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: 🔍 Smart contract audit
about: Detect vulnerabilities in smart contracts
title: ''
labels: onchain
assignees: ''
title: ""
labels: T-audit, A-contracts
assignees: ""
---

## 🚩 Vulnerabilities
Expand All @@ -12,6 +12,7 @@ Listed below are some well documented vulnerabilities that affect smart contract
You can find many others from the list of references.

### External calls

- [ ] Unchecked Call Return Value [(SWC-104)](https://swcregistry.io/docs/SWC-104)
- [ ] Re-entrancy attacks [(SWC-107)](https://swcregistry.io/docs/SWC-107)
- [ ] Delegate Call to Untrusted Callee [(SWC-112)](https://swcregistry.io/docs/SWC-112)
Expand All @@ -20,15 +21,18 @@ You can find many others from the list of references.
- [ ] Untrustworthy Data Feeds [(Al-Breiki et al., 2020)](https://doi.org/10.1109/ACCESS.2021.3140091)

### Denial-of-Service attacks

- [ ] Failed Call [(SWC-113)](https://swcregistry.io/docs/SWC-113)
- [ ] Block Gas Limit [(SWC-128)](https://swcregistry.io/docs/SWC-128)
- [ ] Unexpected Ether balance [(SWC-132)](https://swcregistry.io/docs/SWC-132)

### Miner attacks

- [ ] Transaction Order Dependence [(SWC-114)](https://swcregistry.io/docs/SWC-114)
- [ ] Weak Sources of Randomness from Chain Attributes [(SWC-120)](https://swcregistry.io/docs/SWC-120)

### Authorization

- [ ] Unprotected Ether Withdrawal [(SWC-105)](https://swcregistry.io/docs/SWC-105)
- [ ] Unprotected Self-Destruct [(SWC-106)](https://swcregistry.io/docs/SWC-106)
- [ ] State Variable Default Visibility [(SWC-108)](https://swcregistry.io/docs/SWC-108)
Expand All @@ -38,6 +42,7 @@ You can find many others from the list of references.
- [ ] Lack of Proper Signature Verification [(SWC-122)](https://swcregistry.io/docs/SWC-122)

### Programming errors

- [ ] Integer Underflow and Overflow [(SWC-101)](https://swcregistry.io/docs/SWC-101)
- [ ] Use of Deprecated Solidity Functions [(SWC-111)](https://swcregistry.io/docs/SWC-111)
- [ ] Block values as a proxy for time [(SWC-116)](https://swcregistry.io/docs/SWC-116)
Expand All @@ -53,6 +58,7 @@ You can find many others from the list of references.
- [ ] Unencrypted Private Data On-Chain [(SWC-136)](https://swcregistry.io/docs/SWC-136)

### Compiler

- [ ] Outdated Compiler Version [(SWC-102)](https://swcregistry.io/docs/SWC-102)
- [ ] Floating Pragma [(SWC-103)](https://swcregistry.io/docs/SWC-103)

Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/technical-debt.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: 🏗️ Technical debt
about: Propose solutions to technical debts
title: ''
labels: refactor
assignees: ''
title: ""
labels: T-debt
assignees: ""
---

## 📚 Context
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/update-dependencies.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: ⬆️ Dependency bump
about: Checklist for bumping dependencies
title: ''
labels: chore
assignees: ''
title: ""
labels: T-bump
assignees: ""
---

## 📚 Context
Expand Down

0 comments on commit 0e05934

Please sign in to comment.