Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 71 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,90 @@
name: 🐛 Bug Report
description: Create a report to help us improve
title: "[Bug] "
labels: ["bug-report"]
labels: ["bug"]
body:
- type: input
id: version
attributes:
label: RT-Thread Version
description: |
Which version/branch/git-hash of RT-Thread are you using?
validations:
required: true

- type: dropdown
id: area
attributes:
label: Affected area
description: Select the area most directly related to the problem.
options:
- Other / Not sure
- Kernel
- Board Support Package (BSP)
- Device drivers
- File systems (DFS)
- Networking
- IPC
- FinSH
- RT-Smart
- Architecture / libcpu
- Documentation
- Build system and tools
- CI / GitHub Actions
- Tests and examples
validations:
required: true

- type: dropdown
id: hardware_vendor
attributes:
label: Hardware/BSP vendor
description: Select the closest vendor family, or Not applicable for generic issues.
options:
- Not applicable / Other
- STM32
- NXP
- GD32
- AT32
- Infineon
- Renesas
- Phytium
- Cvitek
- WCH
- Raspberry Pi
- Rockchip
- Loongson
- ESP32
- HC32
- Novosns
- HPMicro
- Bluetrum
- K230
- Nuvoton
validations:
required: true

- type: dropdown
id: architecture
attributes:
label: Architecture
options:
- Not applicable / Other
- ARM / AArch64
- RISC-V
validations:
required: true

- type: input
id: hardware
attributes:
label: Hardware Type/Architectures
description: Specify your Hardware/BSP model.
label: Board and hardware details
description: Specify the board/BSP model and relevant peripherals.
validations:
required: true

- type: dropdown
id: toolchain
attributes:
label: Develop Toolchain
description: which toolchain are you using?
Expand All @@ -33,6 +99,7 @@ body:
required: true

- type: textarea
id: description
attributes:
label: Describe the bug
description: A clear and concise description of the bug.
Expand All @@ -44,6 +111,7 @@ body:
required: true

- type: textarea
id: context
attributes:
label: Other additional context
description: Add any other context about the problem here.
68 changes: 67 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,95 @@
name: 🚀 Feature Request
description: Suggest an idea for this project
title: "[Feature] "
labels: ["feature-request"]
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
## Please note that feature requests are not 'fire and forget'
It is a lot more likely that the feature you would like to have will be implemented if you keep watching your feature request, and provide more details to developers looking into implementing your feature, and help them with testing.

- type: dropdown
id: area
attributes:
label: Affected area
description: Select the area most directly related to the request.
options:
- Other / Not sure
- Kernel
- Board Support Package (BSP)
- Device drivers
- File systems (DFS)
- Networking
- IPC
- FinSH
- RT-Smart
- Architecture / libcpu
- Documentation
- Build system and tools
- CI / GitHub Actions
- Tests and examples
validations:
required: true

- type: dropdown
id: hardware_vendor
attributes:
label: Hardware/BSP vendor
description: Select the closest vendor family, or Not applicable for generic requests.
options:
- Not applicable / Other
- STM32
- NXP
- GD32
- AT32
- Infineon
- Renesas
- Phytium
- Cvitek
- WCH
- Raspberry Pi
- Rockchip
- Loongson
- ESP32
- HC32
- Novosns
- HPMicro
- Bluetrum
- K230
- Nuvoton
validations:
required: true

- type: dropdown
id: architecture
attributes:
label: Architecture
options:
- Not applicable / Other
- ARM / AArch64
- RISC-V
validations:
required: true

- type: textarea
id: problem
attributes:
label: Describe problem solved by the proposed feature
description: A clear and concise description of the problem, if any, this feature will solve. E.g. I'm always frustrated when ...
validations:
required: true

- type: textarea
id: solution
attributes:
label: Describe your preferred solution
description: A clear and concise description of what you want to happen.
validations:
required: false

- type: textarea
id: alternatives
attributes:
label: Describe possible alternatives
description: A clear and concise description of any alternative solutions or features you've considered.
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/issue_automation_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Issue Automation Tests

on:
push:
branches: [master]
paths:
- ".github/ISSUE_TEMPLATE/bug_report.yml"
- ".github/ISSUE_TEMPLATE/feature_request.yml"
- ".github/workflows/issue_*.yml"
- ".github/workflows/similar_issues*.yml"
- "tools/ci/issue_*.py"
- "tools/ci/similar_issues.py"
- "tools/ci/test_issue_*.py"
- "tools/ci/test_similar_issues.py"
pull_request:
branches: [master]
paths:
- ".github/ISSUE_TEMPLATE/bug_report.yml"
- ".github/ISSUE_TEMPLATE/feature_request.yml"
- ".github/workflows/issue_*.yml"
- ".github/workflows/similar_issues*.yml"
- "tools/ci/issue_*.py"
- "tools/ci/similar_issues.py"
- "tools/ci/test_issue_*.py"
- "tools/ci/test_similar_issues.py"

concurrency:
group: issue-automation-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Run issue automation tests
working-directory: tools/ci
run: >-
python3 -m unittest
test_issue_labeler.py
test_issue_claim.py
test_similar_issues.py
34 changes: 34 additions & 0 deletions .github/workflows/issue_claim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Issue Claim

on:
issue_comment:
types: [created]

concurrency:
group: issue-claim-${{ github.repository_id }}-${{ github.event.issue.number }}
queue: max

permissions: {}

jobs:
issue-claim:
if: >-
github.event.issue.pull_request == null &&
github.event.comment.user.type != 'Bot' &&
(github.event.comment.body == '/claim' ||
github.event.comment.body == '/unclaim')
runs-on: ubuntu-22.04
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- name: Checkout trusted workflow code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Handle issue command
env:
GITHUB_TOKEN: ${{ github.token }}
run: python3 tools/ci/issue_claim.py
30 changes: 30 additions & 0 deletions .github/workflows/issue_labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Issue Labeler

on:
issues:
types: [opened, edited, reopened]

concurrency:
group: issue-labeler-${{ github.repository_id }}-${{ github.event.issue.number }}
cancel-in-progress: true

permissions: {}

jobs:
label:
if: ${{ github.event.issue.pull_request == null }}
runs-on: ubuntu-22.04
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- name: Checkout trusted workflow code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Add issue labels
env:
GITHUB_TOKEN: ${{ github.token }}
run: python3 tools/ci/issue_labeler.py
30 changes: 30 additions & 0 deletions .github/workflows/similar_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Suggest Similar Issues

on:
issues:
types: [opened]

concurrency:
group: similar-issues-${{ github.repository_id }}-${{ github.event.issue.number }}
cancel-in-progress: true

permissions: {}

jobs:
suggest:
if: ${{ github.event.issue.pull_request == null }}
runs-on: ubuntu-22.04
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- name: Checkout trusted workflow code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Suggest related issues
env:
GITHUB_TOKEN: ${{ github.token }}
run: python3 tools/ci/similar_issues.py
Loading
Loading