Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/AppDifferentia/danger-swift-jira

A Danger-Swift plugin to link JIRA issues in a pull request - Supports GitLab and GitHub. Inspired by RestlessThinker/danger-jira.
https://github.com/AppDifferentia/danger-swift-jira

danger danger-js danger-plugin danger-swift danger-swift-plugin jira swift

Last synced: 1 day ago
JSON representation

A Danger-Swift plugin to link JIRA issues in a pull request - Supports GitLab and GitHub. Inspired by RestlessThinker/danger-jira.

Awesome Lists containing this project

README

        

# danger-swift-jira

[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE)

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)

## Installation

Add `DangerSwiftJira` to your `Package.swift`

```Swift
.package(url: "https://github.com/AppDifferentia/danger-swift-jira", from: "0.0.1")
```

## Usage

Add to your `Dangerfile.swift`
```Swift
import Danger
import DangerSwiftJira

let danger = Danger()

// ...

let jira = DangerSwiftJira(danger: danger)
jira.check(
keys: ["KEY", "PM"],
url: URL(string: "https://myjira.atlassian.net/browse")!,
emoji: ":link:",
shouldSearchTitle: true,
shouldSearchCommits: false,
failOnWarning: false,
reportMissing: true,
skippable: true
)
```

## Skipping
You can skip danger checking for a JIRA issue by having [no-jira] in your title or PR body.

## License
MIT