Get name of repository #299
-
I want to implement conditional logic based on the repository name (basically checking if something is a fork, for which I need to query the github API, which needs the repository name). But how can I actually get the repository name from within a script that is being run by multi-gitter? My first assumption was that Any other way? Is there perhaps an environment variable could be set? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The name of the repository is available via the #!/bin/bash
# This script should be used with the print command.
mkdir -p ~/multi-gitter/$REPOSITORY
cp -r . ~/multi-gitter/$REPOSITORY |
Beta Was this translation helpful? Give feedback.
The name of the repository is available via the
REPOSITORY
environment variable, as shown in the first example script of the README:https://github.com/lindell/multi-gitter/blob/master/README.md?plain=1#L731-L732