Skip to content

feat: use custom JS script for PR labeling#32

Merged
utkarsh232005 merged 1 commit into
KDM-cli:mainfrom
utkarsh232005:feat/custom-js-labeler
May 16, 2026
Merged

feat: use custom JS script for PR labeling#32
utkarsh232005 merged 1 commit into
KDM-cli:mainfrom
utkarsh232005:feat/custom-js-labeler

Conversation

@utkarsh232005
Copy link
Copy Markdown
Member

@utkarsh232005 utkarsh232005 commented May 16, 2026

Replaces actions/labeler with a custom JavaScript bot script to handle pull request labeling natively via the GitHub API.

Summary by CodeRabbit

  • Chores
    • Updated pull request labeling workflow to use a custom labeler implementation.

Review Change Stack

Copilot AI review requested due to automatic review settings May 16, 2026 20:17
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 16, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

The GitHub Actions workflow for PR labeling transitions from the standard actions/labeler action to a custom script-based approach. The workflow checks out the repository and executes ./.github/scripts/pr-labeler.js via actions/github-script@v7, with updated safety documentation for the pull_request_target trigger.

Changes

Labeler workflow automation update

Layer / File(s) Summary
Workflow labeler script migration
.github/workflows/labeler.yml
The label job replaces the actions/labeler action with a checkout step followed by a actions/github-script@v7 step that executes the custom ./.github/scripts/pr-labeler.js script. The pull_request_target safety comment is updated to document the API-only, minimal-permissions approach.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • KDM-cli/kdm-cli#31: Introduces the initial PR labeling workflow; this PR evolves it to use a custom script rather than the standard actions/labeler action.

Poem

🏷️ From templated steps to custom script we go,
Where GitHub flows through minimal permissions' glow.
Checkout and label, a dance precise—
Automation crafted with security's spice. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: replacing the GitHub Actions labeler with a custom JavaScript script for PR labeling.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the ci/cd label May 16, 2026
@utkarsh232005 utkarsh232005 merged commit 35ac7a2 into KDM-cli:main May 16, 2026
3 of 5 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@utkarsh232005 utkarsh232005 deleted the feat/custom-js-labeler branch May 17, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants