Skip to content

Remote as variables#18

Merged
coenm merged 2 commits intomainfrom
feature/remote-url-as-variable
Jul 5, 2022
Merged

Remote as variables#18
coenm merged 2 commits intomainfrom
feature/remote-url-as-variable

Conversation

@coenm
Copy link
Copy Markdown
Owner

@coenm coenm commented Jul 5, 2022

Support for new variables:

{Repository.remote.<remote key>.url}
{Repository.remote.<remote key>.name}
{Repository.remote.<remote key>.key}

ie

  • {Repository.remote.origin.url} might evaluate into https://github.com/coenm/RepoM.git
  • Then, {Repository.remote.origin.name} results in RepoM.
    The name of the remote can be obtained using {Repository.remote.origin.key} which in this example results in origin

@coenm coenm added the enhancement 🚀 Enhancements label Jul 5, 2022
@coenm coenm merged commit 96f62dd into main Jul 5, 2022
@coenm coenm deleted the feature/remote-url-as-variable branch July 5, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🚀 Enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant