-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update default value of git_ref
🧷
#190
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #190 +/- ##
==========================================
+ Coverage 88.33% 88.38% +0.05%
==========================================
Files 10 10
Lines 686 689 +3
Branches 72 73 +1
==========================================
+ Hits 606 609 +3
Misses 78 78
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Also, you also have access to these variables within the typescript code: Might be good, because there you can actually check what trigger it was and so on. |
1f5ad9d
to
e273c58
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
By default use `github.ref` and use `master` as a fallback.
I think this is a breaking change. I would consider releasing it with tfaga 3.0 sometime in the future (although 3.0 is not yet even planned). |
I don't think this is a breaking change, but it changes behavior a bit and might surprise some users. |
Initially I thought so too, but it is a breaking change because it changes from |
But only in the sense that TF would be using plans from the PR branch, right? |
As far as I can think of that would be the only implication, but even there that is quite limited for repos that have But, why guess, there are only 28 instances of the action usage: https://sourcegraph.com/search?q=context:global+++%22uses:+sclorg/testing-farm-as-github-action%22+&patternType=keyword&sm=0 |
For sure I would add it into |
[test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are passing. Let's get merge it and release v3
.
By default use
github.base_ref
and usemaster
as a fallback.This will primarily help when running on
pull_request_target
.