percy / snapshot-action

[Deprecated] A GitHub action to visually test static sites with Percy
https://docs.percy.io/docs/github-actions#section-snapshot-action
MIT License
14 stars 2 forks source link

fix: Set branch name for PRs #1

Closed Robdel12 closed 4 years ago

Robdel12 commented 4 years ago

Turns out the env var GitHub provides isn't good enough for all applications. So for PRs lets set the branch name from the webhook playload. See: https://github.com/percy/example-percy-jekyll/pull/12

Robdel12 commented 4 years ago

Hahah commit suggestion does not work very well. Worth the try 😆

wwilsman commented 4 years ago

Last bit leftover from no longer breaking out those pr/branch vars ✂️

https://github.com/percy/snapshot-action/blob/74011861c4e0fb510b7594efd8cf4c1d81cf700a/src/index.js#L17