-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (37 loc) · 1.19 KB
/
open_actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: When Opened
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Label PR
uses: actions/labeler@v4
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: ''
- name: 'Comment Draft PR'
uses: actions/github-script@v6
if: github.event.pull_request.draft == true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thank you for your draft pull request! Do you know that you can use `[ci skip]` or `[skip ci]` in your commit messages to skip running continuous integration tests until you are ready?'
})
#- name: Special comment
# uses: pllim/action-special_pr_comment@main
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}