mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
* ci: add pr label workflow Signed-off-by: liyang <daviderli614@gmail.com> * move permissions to jobs Signed-off-by: liyang <daviderli614@gmail.com> * add checkout step Signed-off-by: liyang <daviderli614@gmail.com> * add job permissions Signed-off-by: liyang <daviderli614@gmail.com> * custom sizes Signed-off-by: liyang <daviderli614@gmail.com> * Update .github/workflows/pr-labeling.yaml Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com> --------- Signed-off-by: liyang <daviderli614@gmail.com> Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com>
43 lines
844 B
YAML
43 lines
844 B
YAML
name: 'PR Labeling'
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
issues: write
|
|
|
|
jobs:
|
|
labeler:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: actions/labeler@v5
|
|
with:
|
|
configuration-path: ".github/labeler.yaml"
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
size-label:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: pascalgn/size-label-action@v0.5.5
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
with:
|
|
sizes: >
|
|
{
|
|
"0": "XS",
|
|
"100": "S",
|
|
"300": "M",
|
|
"1000": "L",
|
|
"1500": "XL",
|
|
"2000": "XXL"
|
|
}
|