Skip to content

Commit

Permalink
feat: add new template for reporting test failures (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi authored Jun 1, 2023
1 parent 0b8693c commit 5572c27
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/test-failures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 📑 Test failure report
description: Issue Template for Reporting Testing Failures.
title: "[Test failure] <Test Case ID>: <DESCRIPTIVE TITLE>"
labels: ["needs triage"]
body:
- type: markdown
attributes:
value: |
## Test failure report
Describe the failure you encountered while testing a release.
- type: input
id: release
attributes:
label: Release
description: Include the name of the release in which the testing was performed.
placeholder: Ironwood
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: Describe what was expected to happen during testing.
placeholder:
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: Describe what actually happened during testing, including any errors or failures encountered.
placeholder:
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce
description: Provide detailed steps to reproduce the testing failure.
placeholder:
validations:
required: true
- type: textarea
id: more-info
attributes:
label: Additional information
description: Include any additional information that may be helpful in understanding the testing failure, such as screenshots or log files.
- type: markdown
attributes:
value: "The BTR team will review this issue as soon as possible. In the meantime, help us categorize this issue by adding the appropriate labels!"
16 changes: 16 additions & 0 deletions .github/workflows/add-label-on-failure-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

name: Allows for the adding labels when opening a test failure issue.

on:
issues:
types: [opened]

jobs:
add_label:
runs-on: ubuntu-latest
if: ${{ contains(github.event.issue.title, 'Test failure') && !contains(github.event.issue.labels.*.name, 'needs triage') }}
steps:
- name: apply needs triage label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: needs triage

0 comments on commit 5572c27

Please sign in to comment.