Skip to content

[RFC]: Add slash command for posting a PR-specific command comment #9

@Planeshifter

Description

@Planeshifter

This RFC proposes adding a new slash command /stdlib commands-comment that automatically generates and posts PR-specific build and test commands as a comment from the @stdlib-bot. This will help streamline the PR review process by providing contributors with the exact commands needed to build, test, and benchmark their changes.

The slash command should:

  • Automatically detect the package path from the PR's changed files

  • Generate the appropriate make commands for:

    • Building native add-ons
    • Running C examples
    • Running C benchmarks
    • Running JavaScript examples
    • Running JavaScript benchmarks
    • Running tests

In the new GitHub actions workflow for this slash command, we will need to Implement logic to:

  • Identify changed package paths
  • Generate appropriate command strings based on package path
  • Format commands in markdown
  • Post formatted comment via GitHub API

One open question is how to handle the case when multiple packages are modified in one PR.

Time estimate without AI: 4h.
Time estimate with AI: 3h.

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: 4-8hrsTask which should take between 4 to 8 hours.❌ No AINot allowed to use AI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions