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

[CI] Fix permissions value for the PR Labeler, switch to a new labeler #1007

Merged
28 changes: 13 additions & 15 deletions .github/labeler_files.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
labeler-strategy: append # only add new labels, never remove already assigned

new notebook:
- files:
added: notebooks/**/*.ipynb
files:
added: notebooks/**/*.ipynb
enhancement:
- files:
modified: notebooks/**/*
added: notebooks/**/*
files:
modified: notebooks/**/*
added: notebooks/**/*
documentation:
- files:
modified: "**/*.md"
added: "**/*.md"
files:
modified: "**/*.md"
added: "**/*.md"
dependencies:
- files:
added: "**/*requirements*"
modified:
- "**/*requirements*"
- "**/Pipfile*"
files:
added: "**/*requirements*"
modified:
- "**/*requirements*"
- "**/Pipfile*"
14 changes: 7 additions & 7 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: "PR Labeler"

on:
pull_request:

permissions:
actions: read
contents: read
issues: read|write
pull-requests: read|write

on:
pull_request:
types: [opened, edited]
issues: write
pull-requests: write

jobs:
labelling:
Expand All @@ -25,7 +24,8 @@ jobs:
include-title: 1
sync-labels: 1
- name: Add labels (Changed Files)
uses: doka-guide/doka-labeler@v1.0.1
uses: akashchi/pr-labeler@v2.0
with:
token: "${{ secrets.GITHUB_TOKEN }}"
config: ".github/labeler_files.yml"
strategy: "append"