Skip to content

Missing event type: merge_group #54

Description

@aarokorhonen

Given the following Actions workflow definition:

name: Run on PR
run-name: Run on PR, ref: "${{ github.head_ref || github.event.merge_group.head_ref }}" # ← Warning

on:
    pull_request:
    merge_group:
        types:
            - checks_requested

jobs:
    # ...

The VSCode GitHub Actions produces the following warning on the run-name definition:

Context access might be invalid: merge_group

While in fact the workflow would work fine with the recently added merge_group event.

I tracked the issue to this repository – please let me know if you would prefer me to open the issue in another repository.

I am happy to contribute a fix if it is as simple as adding the new event type into the schema definition file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions