Skip to content

Conversation

@HeshamHM28
Copy link
Contributor

@HeshamHM28 HeshamHM28 commented Apr 8, 2025

User description

Summary

This pull request adds a GitHub Actions workflow that automatically labels pull requests (PRs) that modify GitHub Actions workflows. When a PR modifies files within the .github/workflows/ directory, the workflow will:

  • Check if the workflow-modified label already exists.
  • Create the label if it doesn't exist.
  • Add the workflow-modified label to the PR.

This label helps identify PRs that introduce changes to the workflows, making it easier to track and review modifications related to automation.

Changes Included in this PR:

  • Created a new GitHub Actions workflow file under .github/workflows/pr-labeler.yml.
  • The workflow triggers on pull_request_target events for the .github/workflows/** path.
  • Adds a label called workflow-modified to PRs that modify GitHub Actions workflow files.

Screenshot 2025-04-08 at 5 50 11 PM


PR Type

  • Enhancement

Description

  • New GitHub Actions workflow file added.

  • Automates PR labeling for workflow modifications.

  • Dynamically creates and applies 'workflow-modified' label.


Changes walkthrough 📝

Relevant files
Enhancement
label-workflow-changes.yml
New workflow for labeling PR workflow changes.                     

.github/workflows/label-workflow-changes.yml

  • Adds a workflow triggering on pull_request_target events.
  • Checks for and creates 'workflow-modified' label if needed.
  • Applies the label to PRs modifying workflows.
  • +55/-0   

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • @github-actions
    Copy link

    github-actions bot commented Apr 8, 2025

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    @github-actions
    Copy link

    github-actions bot commented Apr 8, 2025

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    @HeshamHM28 HeshamHM28 requested a review from Saga4 April 8, 2025 13:21
    @github-actions github-actions bot added the workflow-modified This PR modifies GitHub Actions workflows label Apr 8, 2025
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Failure
    @Saga4 Saga4 had a problem deploying to external-trusted-contributors April 9, 2025 20:26 — with GitHub Actions Error
    @Saga4 Saga4 merged commit 3665e76 into main Apr 9, 2025
    8 of 16 checks passed
    KRRT7 pushed a commit that referenced this pull request Apr 14, 2025
    * Add PR labeler workflow to label PRs modifying workflows
    
    * Switch from `pull_request_target` to `pull_request`
    
    * Fix label color format
    
    ---------
    
    Co-authored-by: Sarthak Agarwal <[email protected]>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    Review effort 1/5 workflow-modified This PR modifies GitHub Actions workflows

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    3 participants