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

Broken pull request labeler #28 #51

Merged
merged 17 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
---
documentation:
- "**/*.md"
- "README.md"
- "docs/**"
- any:
- changed-files:
- any-glob-to-any-file:
- "**/*.md"
- any-glob-to-any-file:
- "README.md"
- any-glob-to-any-file:
- "docs/**"

examples:
- any:
- changed-files:
- any-glob-to-any-file:
- "examples/**/*"

github:
- any:
- changed-files:
- any-glob-to-any-file:
- ".github/**/*"

source-code:
- any:
- changed-files:
- any-glob-to-any-file:
- "**/*.c"

scripts:
- any:
- changed-files:
- any-glob-to-any-file:
- "**/*.sh"

repo:
- any:
- changed-files:
- any-glob-to-any-file:
- "*"
jbampton marked this conversation as resolved.
Show resolved Hide resolved
29 changes: 16 additions & 13 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
---
name: "Pull Request Labeler"
name: "Pull Request Labeler"

on:
pull_request:
types: [opened, synchronize]
on:
pull_request_target: # Change from pull_request to pull_request_target
types: [opened, synchronize]
push: # Keep the push event
jbampton marked this conversation as resolved.
Show resolved Hide resolved

jobs:
label:
runs-on: ubuntu-latest
jobs:
label:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Ensure write access for PRs

steps:
- name: Pull Request Labeler
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yml"
steps:
- name: Pull Request Labeler
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yml"
jbampton marked this conversation as resolved.
Show resolved Hide resolved