Skip to content
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

Add workflow for language-based PR assignment #27

Merged

Conversation

adrienpessu
Copy link
Contributor

@adrienpessu adrienpessu commented Jun 11, 2024

This pull request introduces a new GitHub Actions workflow named language-detection-and-assignment.yml to automatically detect the programming language of files changed in a pull request and assign the pull request to specific users based on the detected language.

  • Workflow Trigger: Configures the workflow to run on pull request events targeting the main branch.
  • Language Detection: Utilizes a script to detect changes in files with extensions specific to Java, Kotlin, JavaScript, TypeScript, Go, Python, Rust, and CodeQL.
  • User Assignment:
    • Assigns pull requests to @adrienpessu if changes are detected in Java, Kotlin, JavaScript, TypeScript, or Go files.
    • Assigns pull requests to @GeekMasher for changes in Python, Go, CodeQL, or Rust files.
    • Additionally, assigns pull requests to @felickz for changes in Python, JavaScript, TypeScript, or CodeQL files.

For more details, open the Copilot Workspace session.

@adrienpessu adrienpessu requested a review from a team as a code owner June 11, 2024 13:21
@adrienpessu adrienpessu requested review from felickz and GeekMasher and removed request for felickz and GeekMasher June 11, 2024 13:21
adrienpessu

This comment was marked as outdated.

Copy link
Contributor

@GeekMasher GeekMasher left a comment

Choose a reason for hiding this comment

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

I think for now this works, it would be nice to have a "YAML file" in this repo and it looks it up

@GeekMasher GeekMasher merged commit 3f3e44f into advanced-security:main Jun 13, 2024
2 checks passed
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.

2 participants