openrewrite / openrewrite/rewrite-github-actions

Append runner

Open
#40 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

recipe
Dominant language
Java
Stars
1
Forks
9
Avg merge
5h 27m
Merged PRs (30d)
12

Description

Similar to https://github.com/openrewrite/rewrite-github-actions/issues/25 but it should read the existing list of runners and append to it instead of replacing it.

The intention is so that the user does not need to pass the existing list and to only provide the new runner

  • Job : jobs.other
  • Runners : MyNewRunner, SomeOtherRunner

jobs:
  build:
    runs-on: ubuntu-latest
  other:
    runs-on: ubuntu-latest

Output:

jobs:
  build:
    runs-on: MyNewRunner
  other:
    runs-on: [ubuntu-latest,MyNewRunner, SomeOtherRunner]

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 comparing this request with issue 25 and locating the recipe or entry point that handles jobs and runs-on values. Verify how the existing runner list is read and how the output YAML is represented. Done means a new runner can be supplied for jobs.other without passing the existing runner list, while preserving and appending to that list.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.