Skip to content

fix(labeler): generate comment after XL label is added#99

Open
scastd wants to merge 2 commits intoCodelyTV:mainfrom
scastd:fix/pr_comment_not_generated_on_xl
Open

fix(labeler): generate comment after XL label is added#99
scastd wants to merge 2 commits intoCodelyTV:mainfrom
scastd:fix/pr_comment_not_generated_on_xl

Conversation

@scastd
Copy link
Copy Markdown

@scastd scastd commented Jul 12, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

When a PR has XL size, the message is not published in the thread after adding the label.

How to test

Before

pr-comment-not-generated-on-xl

After

all-workflow

Link to issues addressed

@sreecodeslayer
Copy link
Copy Markdown

This seems to be working, can this be merged?

local -r body=$(curl -sSL -H "Authorization: token $GITHUB_TOKEN" -H "$GITHUB_API_HEADER" "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number/labels")
for label in $(echo "$body" | jq -r '.[] | @base64'); do
if [ "$(echo ${label} | base64 -d | jq -r '.name')" = "$label_to_check" ]; then
echo "1"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is the function of these echos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants