Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/bump-gitstream-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
required: false
type: boolean
default: true
reviewer:
description: GitHub username to assign as reviewer
required: false

jobs:
publish_pr:
Expand All @@ -39,6 +42,12 @@ jobs:
if: inputs.auto-deploy
run: |
echo "LABEL_ARG=--label auto-deploy" >> "$GITHUB_ENV"
echo "REVIEWER_ARG=" >> "$GITHUB_ENV"
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting REVIEWER_ARG to empty string in the auto-deploy step will override any reviewer setting. This step should only set LABEL_ARG since REVIEWER_ARG is handled separately in the 'Set reviewer' step.

Suggested change
echo "REVIEWER_ARG=" >> "$GITHUB_ENV"

Copilot uses AI. Check for mistakes.

- name: Set reviewer
if: inputs.reviewer
run: |
echo "REVIEWER_ARG=--reviewer ${{ inputs.reviewer }}" >> "$GITHUB_ENV"

- name: Init npmrc
run: |
Expand All @@ -64,5 +73,4 @@ jobs:
--base develop \
--title "Bump \`@linearb/gitstream-core\` to \`${{ env.VERSION }}\`" \
--body-file pr_description.txt \
--head ${{ env.BRANCH_NAME }} \
--reviewer ${{ github.actor }} ${{ env.LABEL_ARG }}
--head ${{ env.BRANCH_NAME }} ${{ env.REVIEWER_ARG }} ${{ env.LABEL_ARG }}