question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Core feature request] Defaults Parameters

See original GitHub issue

What feature do you need? defaults parameter for workflows and jobs.

Do you have an example usage?

defaults:
  run:
    shell: bash
    working-directory: scripts

Is there a workaround for not having this feature? If yes, please describe it. The custom arguments for either workflows or jobs do not work in this case since its a nested map and custom arguments only support one level of nesting at the moment.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
krzema12commented, Jul 25, 2022

Cool! Let me close the issue for now, and we can always revisit the topic if there’s a need.

1reaction
scottbisailloncommented, Jul 25, 2022

Would it be a good fit for your use case?

Yes, that would fit my use case!

I think I was also slightly confused since I didn’t realize you could add parameters, such as working-directory to each step and thought that they only were in that defaults block, but thinking back on that, it wouldn’t make too much sense if that was the case.

I can abandon/cancel #344 since it should no longer be needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request Features in ASP.NET Core | Microsoft Learn
Learn about web server implementation details related to HTTP requests and responses that are defined in interfaces for ASP.NET Core.
Read more >
named arguments and default parameter values · Issue #1189 ...
True, specifying default values should be fully orthogonal to whether a parameter can be provided by position, keyword, or both. This request ......
Read more >
Request Features And ASP.NET Core 3 | Khalid Abuhakmeh
NET Core has default features that include functions around authentication, request accessors, file manipulation, and session management.
Read more >
Requests default parameters - python - Stack Overflow
In my case, I'm writing an SDK, and I wanted to have a way to set default headers during testing without having to...
Read more >
Default parameters - JavaScript - MDN Web Docs
Default function parameters allow named parameters to be initialized with default values if no value or undefined is passed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found