Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Test PR change - #9

Closed
PillageDev wants to merge 1 commit into
productionfrom
staging
Closed

Test PR change#9
PillageDev wants to merge 1 commit into
productionfrom
staging

Conversation

@PillageDev

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings August 10, 2025 02:40
@PillageDev PillageDev closed this Aug 10, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 modifies the GitHub Actions workflow to skip CI checks for staging-to-production pull requests by adding conditional logic and a dedicated skip job.

  • Added conditional checks to prevent CI jobs from running on staging → production PRs
  • Introduced a new job to explicitly handle and log the skipping of staging → production PRs
  • Updated workflow triggers to ignore PRs targeting the production branch

Comment thread .github/workflows/pr.yml
Comment on lines +5 to +6
branches-ignore:
- production

Copilot AI Aug 10, 2025

Copy link

Choose a reason for hiding this comment

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

The branches-ignore configuration conflicts with the conditional logic in jobs. Since you're adding if conditions to skip staging → production PRs, the branches-ignore: production will prevent the workflow from running at all for PRs targeting production, making the skip job unreachable.

Suggested change
branches-ignore:
- production

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/pr.yml

lint:
if: github.event.pull_request.base.ref != 'production' || github.event.pull_request.head.ref != 'staging'
types: [opened, synchronize, reopened, ready_for_review]

Copilot AI Aug 10, 2025

Copy link

Choose a reason for hiding this comment

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

The types key is incorrectly placed inside the lint job definition. The types configuration should be under the pull_request trigger at the workflow level, not within individual jobs.

Suggested change
types: [opened, synchronize, reopened, ready_for_review]

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/pr.yml
steps:
- run: echo "Skipping PR checks for staging -> production PR."
outputs:
skipped: true

Copilot AI Aug 10, 2025

Copy link

Choose a reason for hiding this comment

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

The output value true should be quoted as 'true' in GitHub Actions. Unquoted boolean values may not be properly interpreted as strings when consumed by other jobs.

Suggested change
skipped: true
skipped: 'true'

Copilot uses AI. Check for mistakes.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants