Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (37 loc) · 1.63 KB

Usage.md

File metadata and controls

49 lines (37 loc) · 1.63 KB

Usage

Inputs

https://github.com/litetex/pull-detached-remote#inputs

Arguments

👉 --help

Arguments can be looked up in CmdOption

Enviroment Variables

https://github.com/litetex/pull-detached-remote#environment-variables

1. Run it over commandline (only)

The program is run with commandline parameters only.

No disk or similar required.

Sample run:

PullDetachedRemote.exe --identitymail=test@test.test --identityuser=\"Test Test\" --prlabels \"upstream\" --clonemode=CLONE_ALWAYS --originrepo=https://github.com/<owner>/forked --originbranch=an-update --upstreamrepo=https://github.com/<owner>/fork-base --upstreambranch=master --GITHUB_PAT=xxx

Run it as standalone with docker (example)

docker run litetex/pulldetachedremote:develop --identitymail=test@test.test --identityuser=\"Test Test\" --prlabels \"upstream\" --clonemode=CLONE_ALWAYS --originrepo=https://github.com/<owner>/forked --originbranch=an-update --upstreamrepo=https://github.com/<owner>/fork-base --upstreambranch=master --GITHUB_PAT=xxx

2. Run it over YML-config file

The program can also be mainly run with a config file.

Note:

Sample run:

PullDetachedRemote.exe --config config.yml --GITHUB_PAT=xxx

Generate a sample config file

You can also generate a sample configuration file with:

PullDetachedRemote.exe --genconf config.yml

3. Run it as hybrid 🔀

You can also mix

  • config file
  • parameters
  • environment variables

The order how they are set can be found in StartUp.cs