Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(ci): assign upgrade-impact PR reviewer to current release author

Tre Dubravaca85e25c537b
diff --git a/.github/workflows/generate-upgrade-impact.yml b/.github/workflows/generate-upgrade-impact.yml
index 6cfb4cfbbc..200f8d62a7 100644
--- a/.github/workflows/generate-upgrade-impact.yml
+++ b/.github/workflows/generate-upgrade-impact.yml
@@ -102,18 +102,16 @@ jobs:
git commit -m "$PR_TITLE"
git push --set-upstream origin "$BRANCH_NAME"
- # Request review from whoever cut the previous GitHub release so a real
- # human gets pinged rather than only the github-actions bot.
+ # Request review from whoever cut this GitHub release so a real
+ # human with context on the changes gets pinged rather than only the
+ # github-actions bot.
REVIEWER_FLAG=()
- PREVIOUS_TAG="$(awk '/^previousTag:/ { print $2; exit }' "upgrade-impact/data/releases/${TAG_NAME}.yaml")"
- if [ -n "$PREVIOUS_TAG" ]; then
- PREVIOUS_AUTHOR="$(gh release view "$PREVIOUS_TAG" --json author --jq .author.login 2>/dev/null || true)"
- if [ -n "$PREVIOUS_AUTHOR" ]; then
- REVIEWER_FLAG=(--reviewer "$PREVIOUS_AUTHOR")
- echo "Requesting review from previous release author: $PREVIOUS_AUTHOR"
- else
- echo "Skipping reviewer assignment (could not resolve previous release author)."
- fi
+ RELEASE_AUTHOR="$(gh release view "$TAG_NAME" --json author --jq .author.login 2>/dev/null || true)"
+ if [ -n "$RELEASE_AUTHOR" ]; then
+ REVIEWER_FLAG=(--reviewer "$RELEASE_AUTHOR")
+ echo "Requesting review from release author: $RELEASE_AUTHOR"
+ else
+ echo "Skipping reviewer assignment (could not resolve release author)."
fi
gh pr create \