2020-11-18 12:00:00 +00:00
|
|
|
---
|
2021-03-07 11:21:25 +00:00
|
|
|
name: "Pull Request Triage"
|
2020-11-18 12:00:00 +00:00
|
|
|
on: pull_request_target
|
2021-10-08 16:43:25 +00:00
|
|
|
env:
|
2021-10-11 11:05:34 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2020-11-12 17:07:44 +00:00
|
|
|
jobs:
|
2021-03-07 11:21:25 +00:00
|
|
|
pr-triage:
|
2020-11-12 17:07:44 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-10-08 16:43:25 +00:00
|
|
|
- name: Assign labels based on modified files
|
|
|
|
uses: actions/labeler@9794b1493b6f1fa7b006c5f8635a19c76c98be95
|
2020-11-18 12:00:00 +00:00
|
|
|
with:
|
|
|
|
sync-labels: ''
|
|
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
2022-04-18 16:50:52 +00:00
|
|
|
- name: Assign to Dashboard project
|
|
|
|
uses: srggrs/assign-one-project-github-action@65a8ddab497df42ef268001e67bbf976f8fd39e1
|
|
|
|
if: contains(github.event.pull_request.labels.*.name, 'dashboard')
|
|
|
|
with:
|
|
|
|
project: https://github.com/ceph/ceph/projects/6
|
2021-10-08 16:43:25 +00:00
|
|
|
- name: Assign milestone based on target brach name
|
|
|
|
uses: iyu/actions-milestone@dbf7e5348844c9ddc6b803a5721b85fa70fe3bb9
|
2021-03-07 11:21:25 +00:00
|
|
|
with:
|
|
|
|
configuration-path: .github/milestone.yml
|
|
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|