sorenlouv / backport

A simple CLI tool that automates the process of backporting commits on a GitHub repo
https://github.com/sqren/backport/blob/main/docs/config-file-options.md
Apache License 2.0
241 stars 57 forks source link

Explain configuration option: config-file #439

Closed MstrDC closed 1 year ago

MstrDC commented 1 year ago

How does the config-file configuration option work?

Setup: Repo ABC:

This doesnt work for me:

What am I doing wrong here? I tried many different paths...

sorenlouv commented 1 year ago

Config file is for specifying a path to the .backportrc.json if it's not in the root of the project.

My suggestion is to put .backportrc.json in the root, and then you can run backport without specifying --config-file.

You can also place the config file anywhere you want, and then refer to it like:

backport --config-file /path/to/config/file
MstrDC commented 1 year ago

Thank you for your answer. So it is a CLI parameter only. Because currently it is listed under config file options as well. If you want, I can try to create a PR to update the documentation.

sorenlouv commented 1 year ago

That would be great. i agree, it doesn't make sense under config file options.

MstrDC commented 1 year ago

Thank your for your quick response and action. Closing this issue now.