Giter VIP home page Giter VIP logo

danger-swift-eda's Introduction

Build

danger-swift-eda

A danger-swift plug-in to check if the PR matches a specific workflow (e.g. Git-Flow)

Install DangerSwiftEda

SwiftPM (Recommended)

  • Add dependency package to your Package.swift file which you import danger-swift

    // swift-tools-version:5.5
    ...
    let package = Package(
        ...
        dependencies: [
            ...
            // Danger Plugins
            .package(name: "DangerSwiftEda", url: "https://www.github.com/yumemi-inc/danger-swift-eda.git", from: "0.1.0"),
            ...
        ],
        ...
    )
  • Add the correct import to your Dangerfile.swift file

    import DangerSwiftEda

Marathon (Tool Deprecated)

  • Just add the dependency import to your Dangerfile.swift file like this:

    import DangerSwiftEda // package: https://github.com/yumemi-inc/danger-swift-eda.git

Usage

  • Setup a configuration based on the workflow you'd like to perform (currently only Git-Flow supported)

    let configuration = GitFlowCheckConfiguration(
        // ...
    )

    TIPS: We also have GitFlowCheckConfiguration.default if you just want to use default configuration.

  • Perform the workflow check with eda.checkPR method which is available for DangerDSL instances

    danger.eda.checkPR(workflow: .gitFlow(configuration)) // Assume you have initialized `danger` by code like `let danger = Danger()`

Preview

Code above will make danger producing markdown messages like below

Feature PR Check

Checking Item Result
Base Branch Check 🎉
Merge Commit Non-Existence Check 🎉
Diff Volume Check 🤔
ChangeLog Modification Check 🤔
Warnings
⚠️ This PR doesn't contain any modifications in CHANGELOG.md. Please consider to update the ChangeLog.
⚠️ There's too much diff. Please make PRs smaller.

danger-swift-eda's People

Contributors

el-hoshino avatar novr avatar renovate[bot] avatar ykws avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ykws novr

danger-swift-eda's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/test.yml
  • actions/checkout v4
swift
Package.swift
  • danger/swift from: "3.0.0"
  • el-hoshino/DangerSwiftHammer from: "0.2.0"
  • yumemi-inc/danger-swift-shoki from: "0.2.0"

  • Check this box to trigger a request for Renovate to run again on this repository

ticketAddressResolver not utilized when passed to GitFlow.Configuration

Bug Description

When passing ticketAddressResolver to GitFlow.Configuration, it seems that the resolver is not being utilized as expected.

Steps to Reproduce

  1. Configure GitFlow.Configuration with ticketAddressResolver.
  2. Execute Danger

Expected Behavior

The ticketAddressResolver should be used according to the configuration when executing Danger.

Actual Behavior

It appears that the ticketAddressResolver is not being utilized, and Danger do not take it into account.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.