Skip to content

Commit

Permalink
chore: add pr label by file path action
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk committed Nov 26, 2024
1 parent 8339858 commit bee0ec7
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/config/pr-label-file-paths.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
pkg:libro-ai-native:
- packages/libro-ai-native/**/*
pkg:libro-app:
- packages/libro-app/**/*
pkg:libro-code-cell:
- packages/libro-code-cell/**/*
pkg:libro-code-editor:
- packages/libro-code-editor/**/*
pkg:libro-codemirror:
- packages/libro-codemirror/**/*
pkg:libro-cofine-editor:
- packages/libro-cofine-editor/**/*
pkg:libro-cofine-editor-contribution:
- packages/libro-cofine-editor-contribution/**/*
pkg:libro-cofine-editor-core:
- packages/libro-cofine-editor-core/**/*
pkg:libro-cofine-textmate:
- packages/libro-cofine-textmate/**/*
pkg:libro-common:
- packages/libro-common/**/*
pkg:libro-core:
- packages/libro-core/**/*
pkg:libro-jupyter:
- packages/libro-jupyter/**/*
pkg:libro-kernel:
- packages/libro-kernel/**/*
pkg:libro-l10n:
- packages/libro-l10n/**/*
pkg:libro-lab:
- packages/libro-lab/**/*
pkg:libro-language-client:
- packages/libro-language-client/**/*
pkg:libro-lsp:
- packages/libro-lsp/**/*
pkg:libro-markdown:
- packages/libro-markdown/**/*
pkg:libro-markdown-cell:
- packages/libro-markdown-cell/**/*
pkg:libro-output:
- packages/libro-output/**/*
pkg:libro-prompt-cell:
- packages/libro-prompt-cell/**/*
pkg:libro-raw-cell:
- packages/libro-raw-cell/**/*
pkg:libro-rendermime:
- packages/libro-rendermime/**/*
pkg:libro-search:
- packages/libro-search/**/*
pkg:libro-search-code-cell:
- packages/libro-search-code-cell/**/*
pkg:libro-shared-model:
- packages/libro-shared-model/**/*
pkg:libro-sql-cell:
- packages/libro-sql-cell/**/*
pkg:libro-terminal:
- packages/libro-terminal/**/*
pkg:libro-toc:
- packages/libro-toc/**/*
pkg:libro-virtualized:
- packages/libro-virtualized/**/*
pkg:libro-widget:
- packages/libro-widget/**/*
15 changes: 15 additions & 0 deletions .github/workflows/pr-label-file-paths.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 🏷️ Label(File Paths)
on: pull_request_target
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/use-app-token@v2
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- uses: actions/labeler@v2
with:
repo-token: ${{ env.BOT_TOKEN }}
configuration-path: .github/workflows/config/pr-label-file-paths.yml

0 comments on commit bee0ec7

Please sign in to comment.