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

add new base_ref output #67

Merged
merged 1 commit into from
Feb 20, 2025
Merged

add new base_ref output #67

merged 1 commit into from
Feb 20, 2025

Conversation

GrantBirki
Copy link
Member

base_ref output

This pull request adds a new base_ref output. This variable will be set by this Action when running in the context of a pull request event if it is available.


resolves: #66

@GrantBirki GrantBirki added the enhancement New feature or request label Feb 20, 2025
@GrantBirki GrantBirki self-assigned this Feb 20, 2025
@Copilot Copilot bot review requested due to automatic review settings February 20, 2025 19:32

Choose a reason for hiding this comment

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

PR Overview

This pull request adds a new output variable, base_ref, which provides the base branch reference for pull request events.

  • Added extraction of base_ref within the prechecks function
  • Updated action.yml and corresponding tests and documentation to include the new base_ref output

Reviewed Changes

File Description
src/functions/prechecks.js Extracts and outputs the new base_ref from the pull request data
action.yml Updates the outputs section with the new base_ref description
tests/schemas/action.schema.yml Adds validation for the new base_ref output in the schema
README.md Documents the new base_ref output in the examples

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@GrantBirki GrantBirki merged commit b78c52a into main Feb 20, 2025
4 checks passed
@GrantBirki GrantBirki deleted the base_ref branch February 20, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Would it be possible to add the base_ref as an output if triggered from the pull_request context?
1 participant