owncloud / data_exporter

Export/Import for ownCloud user data
GNU General Public License v2.0
7 stars 5 forks source link

[Tests-Only] See drone repo vars when PR comes from a fork #170

Closed phil-davis closed 3 years ago

phil-davis commented 3 years ago
+ echo "Repo slug     : owncloud/data_exporter"
Repo slug     : owncloud/data_exporter
+ echo "Repo name     : data_exporter"
Repo name     : data_exporter
+ echo "Repo namespace: owncloud"
Repo namespace: owncloud
+ echo "Repo branch   : master"
Repo branch   : master
+ echo "Build link       : https://github.com/owncloud/data_exporter/pull/170.diff"
Build link       : https://github.com/owncloud/data_exporter/pull/170.diff
+ echo "Build sender     : phil-davis"
Build sender     : phil-davis
+ echo "Build source     : phil-davis-patch-2"
Build source     : phil-davis-patch-2
+ echo "Build source_repo: phil-davis/data_exporter"
Build source_repo: phil-davis/data_exporter
+ make test-php-phpstan
phil-davis commented 3 years ago

ctx.build.source_repo has the data that exposes the fact that the PR came from a different repo to the current repo. phil-davis/data_exporter ctx.repo.slug has the repo where the PR is targeted. owncloud/data_exporter

So that can be used to work out if we are running drone CI for a PR that comes from a fork.

codecov[bot] commented 3 years ago

Codecov Report

Merging #170 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #170   +/-   ##
=========================================
  Coverage     85.67%   85.67%           
  Complexity      235      235           
=========================================
  Files            36       36           
  Lines          1117     1117           
=========================================
  Hits            957      957           
  Misses          160      160           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0ee91cb...f138e59. Read the comment docs.