Skip to content

Commit

Permalink
Remove-kind command
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <[email protected]>
  • Loading branch information
kerthcet committed Jun 23, 2024
1 parent 8e4e3da commit 23cc2a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/kube-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ jobs:
echo "The label '$LABEL' cannot be removed using /remove-kind."
exit 0
else
gh pr edit $PR_NUMBER --remove-label $LABEL
if gh pr view $PR_NUMBER --json labels --jq '.labels[].name' | grep -q $LABEL; then
gh pr edit $PR_NUMBER --remove-label $LABEL
fi
fi
else
echo "$COMMENT_BODY is not supported"
exit 0
fi
- name: Merge PR if lgtmed and approved
- name: Merge PR if LGTMed and approved
run: |
PR_NUMBER=$(jq -r '.issue.number' $GITHUB_EVENT_PATH)
LABELS=$(gh pr view $PR_NUMBER --json labels --jq '.labels[].name')
Expand Down

0 comments on commit 23cc2a5

Please sign in to comment.