Skip to content

Conversation

@GrantBirki
Copy link
Contributor

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

@GrantBirkiGrantBirki added the enhancement New feature or request label Feb 20, 2025
@GrantBirkiGrantBirki self-assigned this Feb 20, 2025
CopilotAI review requested due to automatic review settings February 20, 2025 19:32
Copy link

CopilotAI left a comment

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

FileDescription
src/functions/prechecks.jsExtracts and outputs the new base_ref from the pull request data
action.ymlUpdates the outputs section with the new base_ref description
tests/schemas/action.schema.ymlAdds validation for the new base_ref output in the schema
README.mdDocuments 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

@GrantBirkiGrantBirki merged commit b78c52a into mainFeb 20, 2025
4 checks passed
@GrantBirkiGrantBirki deleted the base_ref branch February 20, 2025 19:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew 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?

2 participants

@GrantBirki