Skip to content

Commit bdd948f

Browse files
authored
Merge pull request #4 from AppDifferentia/update-readme
Update `README.md`
2 parents ed517c3 + 1deda73 commit bdd948f

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
1-
# danger-swift-jira
1+
2+
# danger-swift-jira
3+
4+
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE)
5+
6+
A Danger-Swift plugin for that links JIRA issues to pull requests for both GitHub and GitLab. Inspired by [RestlessThinker/danger-jira](https://github.com/RestlessThinker/danger-jira)
7+
8+
## Installation
9+
10+
Add `DangerSwiftJira` to your `Package.swift`
11+
12+
```Swift
13+
.package(url: "https://github.com/AppDifferentia/danger-swift-jira", from: "0.0.1")
14+
```
15+
16+
## Usage
17+
18+
Add to your `Dangerfile.swift`
19+
```Swift
20+
import Danger
21+
import DangerSwiftJira
22+
23+
let danger = Danger()
24+
25+
// ...
26+
27+
let jira = DangerSwiftJira(danger: danger)
28+
jira.check(
29+
keys: ["KEY", "PM"],
30+
url: URL(string: "https://myjira.atlassian.net/browse")!,
31+
emoji: ":link:",
32+
shouldSearchTitle: true,
33+
shouldSearchCommits: false,
34+
failOnWarning: false,
35+
reportMissing: true,
36+
skippable: true
37+
)
38+
```
39+
40+
## Skipping
41+
You can skip danger checking for a JIRA issue by having [no-jira] in your title or PR body.
42+
43+
## License
44+
MIT

0 commit comments

Comments
 (0)