Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/AppDifferentia/danger-swift-jira
- Owner: AppDifferentia
- License: mit
- Created: 2021-09-03T05:26:20.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-14T07:13:45.000Z (about 3 years ago)
- Last Synced: 2024-08-03T14:07:43.310Z (3 months ago)
- Topics: danger, danger-js, danger-plugin, danger-swift, danger-swift-plugin, jira, swift
- Language: Swift
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-danger - danger-swift-jira - Show Jira issue on the pull request (Plugins / Swift (danger-swift))
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 DangerSwiftJiralet 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