danger / danger/kotlin

Custom args in yml file

Open
#253 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
542
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Is it possible to pass custom args to a danger script file?
```
with:
args: -myarg ${{ someValue }}
```
So that in the script I can get it like
```
danger(args) {
val myValue = customArgs["myarg"]
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the YAML `with.args` value reaches the Danger script and how `customArgs` would be exposed. Done means a custom `myarg` value can be passed from the YAML configuration and read by the script as shown, with coverage for the argument-handling path.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, kotlin
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.