mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-23 10:39:25 -05:00
1/ 2
This commit is contained in:
parent
bd6bc97a6d
commit
e92c65fd50
13
.github/workflows/pr-bot.yml
vendored
13
.github/workflows/pr-bot.yml
vendored
@ -1,26 +1,21 @@
|
|||||||
name: PR Bot
|
name: PR Bot
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr-bot:
|
pr-bot:
|
||||||
name: Automated PR Bot
|
name: Automated PR Bot
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Label by file path
|
- name: Label by file path
|
||||||
uses: actions/labeler@v5
|
uses: actions/labeler@v5
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Label by size
|
- name: Label by size
|
||||||
uses: Gascon1/pr-size-labeler@v1.3.0
|
uses: Gascon1/pr-size-labeler@v1.3.0
|
||||||
with:
|
with:
|
||||||
@ -31,12 +26,7 @@ jobs:
|
|||||||
s_diff: '99999'
|
s_diff: '99999'
|
||||||
fail_if_xl: 'false'
|
fail_if_xl: 'false'
|
||||||
excluded_files: >
|
excluded_files: >
|
||||||
/\.lock$/
|
/\.lock$/ /\.txt$/ ^src-ui/pnpm-lock\.yaml$ ^src-ui/messages\.xlf$ ^src/locale/en_US/LC_MESSAGES/django\.po$
|
||||||
/\.txt$/
|
|
||||||
^src-ui/pnpm-lock\.yaml$
|
|
||||||
^src-ui/messages\.xlf$
|
|
||||||
^src/locale/en_US/LC_MESSAGES/django\.po$
|
|
||||||
|
|
||||||
- name: Label bot-generated PRs
|
- name: Label bot-generated PRs
|
||||||
if: ${{ contains(github.actor, 'dependabot') || contains(github.actor, 'crowdin-bot') }}
|
if: ${{ contains(github.actor, 'dependabot') || contains(github.actor, 'crowdin-bot') }}
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
@ -62,7 +52,6 @@ jobs:
|
|||||||
labels,
|
labels,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Welcome comment
|
- name: Welcome comment
|
||||||
if: ${{ !contains(github.actor, 'bot') }}
|
if: ${{ !contains(github.actor, 'bot') }}
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user