Skip to content

Enhance CodeQL workflow triggers and conditions for pull requests#316

Merged
shibayan merged 1 commit intomasterfrom
optimize-codeql
Mar 7, 2026
Merged

Enhance CodeQL workflow triggers and conditions for pull requests#316
shibayan merged 1 commit intomasterfrom
optimize-codeql

Conversation

@shibayan
Copy link
Member

@shibayan shibayan commented Mar 7, 2026

No description provided.

@shibayan shibayan requested a review from Copilot March 7, 2026 07:20
@shibayan shibayan self-assigned this Mar 7, 2026
@shibayan shibayan added the enhancement New feature or request label Mar 7, 2026
Copy link

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 enhances the CodeQL Advanced workflow by adding path filters to avoid unnecessary runs, specifying PR event types to properly handle draft PRs, and adding a job-level condition to skip analysis on draft pull requests.

Changes:

  • Added paths filters (src/**, .github/workflows/**) to both push and pull_request triggers so CodeQL analysis only runs when relevant files change.
  • Added types: [ opened, reopened, synchronize, ready_for_review ] to the pull_request trigger and a job-level if condition to skip draft PRs while correctly re-triggering when a draft is marked ready.

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

@shibayan shibayan merged commit 82f007f into master Mar 7, 2026
8 checks passed
@shibayan shibayan deleted the optimize-codeql branch March 7, 2026 07:48
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.

2 participants