Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables in config file #390

Open
rtalexk opened this issue Jun 13, 2024 · 1 comment
Open

Variables in config file #390

rtalexk opened this issue Jun 13, 2024 · 1 comment

Comments

@rtalexk
Copy link

rtalexk commented Jun 13, 2024

Is your feature request related to a problem? Please describe.

I'm using different configs per repository. I want to add them to my dotfiles without leaking org or repo names.

Describe the solution you'd like

It would be cool if I could do something like this

prSections:
  - title: Open
    filters: repo:{{org}}/{{repo}} is:open

  - title: Requested
    filters: repo:{{org}}/{{repo}} is:open user-review-requested:@me

  - title: Reviewing
    filters: repo:{{org}}/{{repo}} is:open commenter:@me

It would check if the cwd is a git repo, if so replace {{...}} by the actual vlaue.

Describe alternatives you've considered

Not sure if there's a workaround for this, but I've thought about having a config like the one above and create a script so that on-the-fly I replace all {{these}} and write the result to a temp file, then use this temp file as the config for GH Dash.

May work, but seems too much.

@Mellbourn
Copy link

alternatively, it would be nice to have access to shell environment variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants