Skip to content

Conversation

@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Oct 28, 2025

By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened

Source: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request

Description

Validation

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95 aduh95 requested a review from a team as a code owner October 28, 2025 19:27
Copilot AI review requested due to automatic review settings October 28, 2025 19:27
@vercel
Copy link

vercel bot commented Oct 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nodejs-org Ready Ready Preview Oct 28, 2025 7:38pm

Added conditions to run jobs only for non-draft pull requests.

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@MattIPv4
Copy link
Member

MattIPv4 commented Oct 28, 2025

Why? Is it not useful for folks to have CI (linting, tests, builds) run on draft PRs to check their work?

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
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 modifies the GitHub Actions build workflow to add PR type filters and skip builds for draft pull requests.

  • Added PR event type filters to trigger on specific PR lifecycle events
  • Added a condition to skip builds for draft pull requests

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

@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.57%. Comparing base (04bbc56) to head (e8577a1).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8286      +/-   ##
==========================================
+ Coverage   76.53%   76.57%   +0.04%     
==========================================
  Files         117      117              
  Lines        9733     9733              
  Branches      329      328       -1     
==========================================
+ Hits         7449     7453       +4     
+ Misses       2282     2278       -4     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@MattIPv4 MattIPv4 left a comment

Choose a reason for hiding this comment

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

Putting a formal block on this until I understand what benefit having folks be blind to lint errors, test failures + build issues on drafts provides.

@avivkeller
Copy link
Member

I'm okay with adding the additional triggers, but -1 on removing CI from draft PRs entirely

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@avivkeller avivkeller requested a review from MattIPv4 October 28, 2025 19:37
@avivkeller avivkeller changed the title chore(ci): do not run GHA on draft PR chore(ci): run GHA on ready_for_review Oct 28, 2025
Copy link
Member

@MattIPv4 MattIPv4 left a comment

Choose a reason for hiding this comment

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

Curious to see if this counts as a non-GitHub-Actions actor when you undraft a GHA PR

@avivkeller
Copy link
Member

Curious to see if this counts as a non-GitHub-Actions actor when you undraft a GHA PR

It does

@avivkeller avivkeller added the fast-track Fast Tracking PRs label Oct 28, 2025
@avivkeller avivkeller added this pull request to the merge queue Oct 28, 2025
@avivkeller
Copy link
Member

Fast tracking!

Merged via the queue into main with commit a140e80 Oct 28, 2025
16 checks passed
@avivkeller avivkeller deleted the no-gha-draft branch October 28, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track Fast Tracking PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants