Skip to content

aviator-co/affected-targets-gha-action

Repository files navigation

Aviator MergeQueue affected targets calculator for GitHub Actions workflows

Calculate affected targets for Aviator MergeQueue based on GitHub Actions workflows.

Example

steps:
- uses: actions/checkout@v4
- uses: aviator-co/affected-targets-gha-action@v1
  with:
    aviator-token: ${{ secrets.AVIATOR_TOKEN }}

How it works

Affected targets is a feature that allows you to split the MergeQueue based on the test/build targets that a PR affects. For example, if a PR changes only Go files, you wouldn't need to queue PRs sequentially with Python modifying PRs because they are completely isolated, different project.

This GitHub Actions infer which build/test targets a PR affects based on GitHub Actions Workflow's paths specification.

In the workflow config, you can specify when to run a workflow. For example:

on:
  push:
    paths:
      - '**.go'

If you specify like this, this workflow only runs when Go files are modified. By reading this workflow spec, this GitHub Action automatically infers the affected targets.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •