Skip to content

Set current repo as Env var  #115

@carusooo

Description

@carusooo

Describe the solution you'd like
Set the current repo as an environment variable that can be accessed while processing. From the logs it looks like this is available at invocation time

[git-xargs] DEBU[2023-03-03T10:38:56-08:00] Created branch                                Branch Name=refs/heads/add-self-hosted Repo=my-cool-repo
[git-xargs] DEBU[2023-03-03T10:38:56-08:00]                                               Repo=my-cool-repo

Describe alternatives you've considered
I could parse this out of the cwd, but that seems brittle since there's a lot of nonces to prevent collisions

/private/var/folders/zc/ysm6hx_n2qng1h09htfdw_8m0000gn/T/git-xargs-my-cool-repo1360847715

I could also invoke a git command and poke at the output, that involves too much shell cruft and line noise.

Additional context

It's possible this is already implemented or could be solved simpler than I envision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions