Skip to content

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

License

Notifications You must be signed in to change notification settings

AppDifferentia/danger-swift-jira

Repository files navigation

danger-swift-jira

License

A Danger-Swift plugin for that links JIRA issues to pull requests for both GitHub and GitLab. Inspired by RestlessThinker/danger-jira

Installation

Add DangerSwiftJira to your Package.swift

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

Usage

Add to your Dangerfile.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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages