datalad / datalad-installer

Installation script for Datalad and related components
MIT License
6 stars 3 forks source link

run-tests.sh: Get GitHub token from `gh` if envvar not set #202

Closed jwodder closed 3 months ago

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 65.53%. Comparing base (97928c4) to head (6ab391d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #202 +/- ## ========================================== - Coverage 65.77% 65.53% -0.25% ========================================== Files 1 1 Lines 1648 1648 Branches 409 409 ========================================== - Hits 1084 1080 -4 - Misses 460 465 +5 + Partials 104 103 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

yarikoptic commented 3 months ago

what is this solving?

NB windows tests seems to generally fail ATM, unrelated to this PR

jwodder commented 3 months ago

@yarikoptic

what is this solving?

I want to stop storing my GitHub token under hub.oauthtoken in my ~/.gitconfig. Currently, I need to keep it there for whenever I run this project's tests locally.

yarikoptic commented 3 months ago

FWIW could be stored in external file and "included" within ~/.gitconfig

[include]
  path = ~/.gitconfig-priv.inc