sbt / sbt/sbt-github-actions

Is it possible to define different target branches for pull_request and push ?

Open
#52 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
199
Forks
67
Avg merge
6h 24m
Merged PRs (30d)
3

Description

For example, I want to trigger workflow on pull_request to all branches but only on push to "main" branch. Otherwise, there will be two identical workflows if I push and open pull_requests to the same repo without fork.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading how this sbt plugin generates GitHub Actions workflow triggers and compare the requested pull_request and push branch filters with GitHub Actions syntax. Done means one generated workflow can target all pull requests while restricting push events to main, without requiring duplicate workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, scala
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.