Skip to content

Fix Execution URL when using `src batch remote`

Warren Gifford requested to merge bo/fix-url-execution-for-batch-remote into main

Created by: BolajiOlajide

Test plan

Run src batch remote -f comby-go-refactor.batch.yml

comby-go-refactor.batch.yml

name: comby-go-fmt
description: Run `comby` and `go fmt`

# Find all repositories that contain a README.md file.
on:
  - repositoriesMatchingQuery: lang:go fmt.Sprintf("%d", :[v]) patterntype:structural

steps:
  - run: comby -in-place 'fmt.Sprintf("%d", :[v])' 'strconv.Itoa(:[v])' ${{ join repository.search_result_paths " " }}
    container: comby/comby
  - run: goimports -w ${{ join previous_step.modified_files " " }}
    container: unibeautify/goimports

# Describe the changeset (e.g., GitHub pull request) you want for each repository.
changesetTemplate:
  title: Replacing fmt.Sprintf with strconv.Itoa
  body: This campiagn replaces `fmt.Sprintf` with `strconv.Itoa`
  branch: batch-changes/comby-go-fmt # Push the commit to this branch.
  commit:
    message: Replacing fmt.Sprintf with strconv.Iota

The result is an execution URL that doesn't 404. Screenshot 2022-04-20 at 15 46 36

Closes #33696

Merge request reports

Loading