Skip to content

Commit

Permalink
SOLR-17249 Edit .asf.yaml on main branch (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy authored Oct 7, 2024
1 parent 5e231f7 commit 33b74e6
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions dev-tools/scripts/releaseWizard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ groups:
title: Create a new minor branch off the stable branch
description: |
In our case we'll create {{ release_branch }}.
Also edit `.asf.yaml` to add the new branch under `protected_branches`.
types:
- major
- minor
Expand All @@ -417,15 +416,37 @@ groups:
- !Command
cmd: git push --set-upstream origin {{ release_branch }}
tee: true
- !Command
cmd: "{{ editor }} .asf.yaml"
comment: |
Add the new branch {{ release_branch }} under `protected_branches` in `.asf.yaml`. An editor will open.
stdout: true
- !Command
cmd: git add .asf.yaml && git commit -m "Add branch protection for {{ release_branch }}" && git push
logfile: commit-branch-protection.log
tee: true
- !Todo
id: protect_branches
title: Protect the new git branch(es)
vars:
branch_names: "{{ release_branch }}{% if release_type == 'major' %} and {{ stable_branch }}{% endif %}"
description: >
Edit `.asf.yaml` to protect new git branch(es) {{ branch_names }}.
types:
- major
- minor
depends: create_minor_branch
commands: !Commands
root_folder: '{{ git_checkout_folder }}'
commands_text: Run these commands to edit `.asf.yaml` and protect the new branch(es)
commands:
- !Command
cmd: git checkout main
tee: true
- !Command
cmd: git pull --ff-only
tee: true
- !Command
cmd: "{{ editor }} .asf.yaml"
comment: >
Add the newly created branch(es) {{ branch_names }}
under `protected_branches` in `.asf.yaml`. An editor will open.
stdout: true
- !Command
cmd: git add .asf.yaml && git commit -m "Add branch protection for {{ branch_names }}" && git push
logfile: commit-branch-protection.log
tee: true
- !Todo
id: update_minor_branch_prerelease_antora
title: Update Ref Guide Metadata for new Minor Branch
Expand Down

0 comments on commit 33b74e6

Please sign in to comment.