Skip to content

Conversation

@KubaZ2
Copy link
Member

@KubaZ2 KubaZ2 commented Nov 8, 2025

Replaced direct use of ${{ github.event.pull_request.number }} with the PULL_REQUEST_NUMBER environment variable for improved readability and reusability. Added envs and env sections to define and declare the PULL_REQUEST_NUMBER variable, ensuring it is accessible during job execution. This change simplifies debugging and enhances maintainability.

Replaced direct use of `${{ github.event.pull_request.number }}`
with the `PULL_REQUEST_NUMBER` environment variable for improved
readability and reusability. Added `envs` and `env` sections to
define and declare the `PULL_REQUEST_NUMBER` variable, ensuring
it is accessible during job execution. This change simplifies
debugging and enhances maintainability.
@KubaZ2 KubaZ2 requested a review from Copilot November 8, 2025 17:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the cleanup documentation preview workflow to use environment variables instead of directly interpolating GitHub context variables in the SSH script command.

Key Changes:

  • Replace inline GitHub context interpolation with an environment variable approach for the pull request number in the SSH cleanup script

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Nov 8, 2025

The documentation preview is available at https://preview.netcord.dev/212.

@KubaZ2 KubaZ2 closed this Nov 8, 2025
@KubaZ2 KubaZ2 reopened this Nov 8, 2025
@KubaZ2 KubaZ2 merged commit 816c6d1 into alpha Nov 8, 2025
9 checks passed
@KubaZ2 KubaZ2 deleted the chore/use-env-vars-in-ssh-action branch November 8, 2025 17:34
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