Skip to content

Commit e013ee0

Browse files
authored
Add repository badges and issue template (#2)
* Optimize CI workflow with path filtering * Add issue template * Update README
1 parent 69ec830 commit e013ee0

4 files changed

Lines changed: 106 additions & 2 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Bug Report
2+
description: Something isn't working as expected
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for contributing to Textual!
9+
10+
Before you submit your issue, please complete each text area below with the relevant details for your bug, and complete the steps in the checklist.
11+
- type: textarea
12+
attributes:
13+
label: Description
14+
description: |
15+
A short description of the incorrect behavior.
16+
17+
If you think this issue has been recently introduced and did not occur in an earlier version, please note that. If possible, include the last version that the behavior was correct in addition to your current version.
18+
validations:
19+
required: true
20+
- type: checkboxes
21+
attributes:
22+
label: Checklist
23+
options:
24+
- label: I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
25+
required: false
26+
- label: If possible, I've reproduced the issue using the `main` branch of this package.
27+
required: false
28+
- label: This issue hasn't been addressed in an [existing GitHub issue](https://github.com/gonzalezreal/textual/issues) or [discussion](https://github.com/gonzalezreal/textual/discussions).
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Expected behavior
33+
description: Describe what you expected to happen.
34+
validations:
35+
required: false
36+
- type: textarea
37+
attributes:
38+
label: Actual behavior
39+
description: Describe or copy/paste the behavior you observe.
40+
validations:
41+
required: false
42+
- type: textarea
43+
attributes:
44+
label: Steps to reproduce
45+
description: |
46+
Explanation of how to reproduce the incorrect behavior.
47+
48+
This could include an attached project or link to code that is exhibiting the issue, and/or a screen recording.
49+
placeholder: |
50+
1. ...
51+
validations:
52+
required: false
53+
- type: input
54+
attributes:
55+
label: Textual version information
56+
description: The version of Textual used to reproduce this issue.
57+
placeholder: "'0.1.0' for example, or a commit hash"
58+
- type: input
59+
attributes:
60+
label: Destination operating system
61+
description: The OS running your application.
62+
placeholder: "'iOS 18' or 'macOS 15' for example"
63+
- type: input
64+
attributes:
65+
label: Xcode version information
66+
description: The version of Xcode used to reproduce this issue.
67+
placeholder: "The version displayed from 'Xcode > About Xcode'"
68+
- type: textarea
69+
attributes:
70+
label: Swift Compiler version information
71+
description: The version of Swift used to reproduce this issue.
72+
placeholder: Output from 'xcrun swiftc --version'
73+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
- name: Discussion
5+
url: https://github.com/gonzalezreal/textual/discussions
6+
about: Textual Q&A, ideas, and feature requests
7+
- name: Documentation
8+
url: https://github.com/gonzalezreal/textual#readme
9+
about: Read documentation and examples for Textual

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- '**.md'
9+
- 'LICENSE*'
10+
- '.gitignore'
11+
- '.editorconfig'
12+
- '**.gif'
13+
- '**.png'
14+
- '**.jpg'
715
pull_request:
816
branches:
917
- '*'
18+
paths-ignore:
19+
- '**.md'
20+
- 'LICENSE*'
21+
- '.gitignore'
22+
- '.editorconfig'
23+
- '**.gif'
24+
- '**.png'
25+
- '**.jpg'
1026
workflow_dispatch:
1127

1228
concurrency:

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Textual
2-
<!-- TODO: CI badge -->
3-
<!-- TODO: SPI badges -->
2+
[![CI](https://github.com/gonzalezreal/textual/workflows/CI/badge.svg)](https://github.com/gonzalezreal/textual/actions?query=workflow%3ACI)
3+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fgonzalezreal%2Ftextual%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/gonzalezreal/textual)
4+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fgonzalezreal%2Ftextual%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/gonzalezreal/textual)
45

56
Render and customize rich attributed text in SwiftUI.
67

78
- [Overview](#overview)
89
- [Getting Started](#getting-started)
910
- [Demos](#demos)
11+
- [Documentation](#documentation)
1012
- [Installation](#installation)
1113
- [License](#license)
1214

@@ -286,6 +288,10 @@ to explore and reference.
286288
The demo lives in [`Examples/TextualDemo`](./Examples/TextualDemo) and is included in `Textual.xcworkspace` at the
287289
repository root. Open the workspace to browse the library source and run the demo side-by-side.
288290

291+
## Documentation
292+
293+
The latest documentation for Textual is available [here](https://swiftpackageindex.com/gonzalezreal/textual/main/documentation/textual).
294+
289295
## Installation
290296

291297
You can add Textual to an Xcode project by adding it to your project as a package.

0 commit comments

Comments
 (0)