Skip to content

fix: refactor Python lint workflow to dynamically determine target projects and streamline directory handling #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

haru-256
Copy link
Owner

@haru-256 haru-256 commented Apr 8, 2025

Summary

  • fix: refactor Python lint workflow to dynamically determine target projects and streamline directory handling
    This pull request includes significant updates to the GitHub Actions workflow for Python linting and testing. The changes aim to improve the flexibility and efficiency of the workflow by introducing a new job to dynamically determine the target projects based on the changes in the pull request.

Key updates to the GitHub Actions workflow:

Copy link

github-actions bot commented Apr 8, 2025

Failed to generate code suggestions for PR

@haru-256 haru-256 requested a review from Copilot April 8, 2025 10:40
Copy link
Contributor

@Copilot 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 reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

.github/workflows/python-lint-test.yml:25

  • [nitpick] Consider using consistent naming conventions for job names. For example, using 'Find target projects' or 'find-target-projects' could improve clarity and consistency.
name: Find target Projects

dispatch_inputs = "${{ github.event.inputs.target_projects }}";
if (dispatch_inputs !== "") {
dispatch_inputs = dispatch_inputs.split(',').map(path => path.trim());
core.setOutput('projects', JSON.stringify(dispatch_inputs));
Copy link
Preview

Copilot AI Apr 8, 2025

Choose a reason for hiding this comment

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

The script in the 'Get Python projects' step uses core.setOutput without importing the '@actions/core' module. Please import core at the beginning of the script to ensure it is defined.

Copilot uses AI. Check for mistakes.

Copy link
Owner Author

Choose a reason for hiding this comment

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

We can utilize the @actions/core library without the need for explicit imports. The core module is automatically provided as an argument to your script, allowing direct access to its functions.

@haru-256 haru-256 merged commit af0716d into main Apr 8, 2025
1 check passed
@haru-256 haru-256 deleted the fix/github-actions-ci branch April 8, 2025 10:54
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.

1 participant