Skip to content
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

Impl: Fallback channel ID #95

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TheKingOfAtlantis
Copy link

Related to Issue: #90

This pull request ensures that a preview channel id is always generated by falling back to the branch name and commit sha
Useful for when when a commit is added directly to the development branch which we don't want to go live but yet wish to see the changes of (especially on solo projects where PRs don't make sense in a lot of cases)

The implementation has been tested on my own fork and works

If user was to trigger a build & deploy action without a pull request the action would fail
This ensures that if no channel id is present the sha for the commit being used
ChannelId currently polluted with refs/heads/ segment of the git ref
we remove it to give a clear and more informative channelId name
@google-cla google-cla bot added the cla: yes Contributor has signed CLA label Mar 8, 2021
@jhuleatt jhuleatt linked an issue May 24, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Contributor has signed CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Channel ID from Commit
2 participants