auto_labeler.yml 679 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright (c) 2006-2024, RT-Thread Development Team
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Change Logs:
  7. # Date Author Notes
  8. # 2024-08-26 supperthomas the first version
  9. #
  10. #这个action用来自动给pull request 添加标签
  11. #当一个pull request被打开时,这个action会自动给这个pull request添加标签
  12. name: "Pull Request Labeler"
  13. on:
  14. - pull_request_target
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  17. cancel-in-progress: true
  18. jobs:
  19. labeler:
  20. permissions:
  21. contents: read
  22. pull-requests: write
  23. runs-on: ubuntu-22.04
  24. steps:
  25. - uses: actions/labeler@v5