Skip to content

Conversation

@ayush-panta
Copy link
Contributor

Description of changes: Made it so that samcli-direct will check out main when it cannot find the PR branch. It seems when ref is not set at all it defaults to checking out main, but when ref is set to something that does not exist (eg a deleted branch after merging a PR) this behavior does not hold.

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ayush-panta ayush-panta requested a review from a team as a code owner October 22, 2025 00:19
@ayush-panta ayush-panta reopened this Oct 22, 2025
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
ref: ${{ github.head_ref || 'main' }}
Copy link
Contributor

@Swapnanil-Gupta Swapnanil-Gupta Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it okay to not add the same to samcli-vm.yaml? Also won't this suffer from the same "PR from a fork" issue?

Edit - Correct me if I'm wrong but I think ref can just be main for samcli-vm.yaml since it doesn't run on PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants