forked from ubiquity/ubiquibot
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.07 KB
/
Copy pathqa-automation.yml
File metadata and controls
35 lines (31 loc) · 1.07 KB
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
name: Automate QA
on:
pull_request_target:
types:
- review_requested
branches: [development, main]
jobs:
add-to-project:
env:
ADD_TO_PROJECT_PAT: ${{ secrets.ADD_TO_PROJECT_PAT }}
name: Add issue to project
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Add PR to QA project
if: contains(github.event.pull_request.requested_reviewers.*.login, 'Draeieg')
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/ubiquity/projects/23
github-token: ${{ env.ADD_TO_PROJECT_PAT }}
- name: Create QA Issue
if: contains(github.event.pull_request.requested_reviewers.*.login, 'Draeieg')
uses: dacbd/create-issue-action@v1
with:
token: ${{ env.ADD_TO_PROJECT_PAT }}
owner: ubiquibot
repo: staging
title: QA for ${{ github.event.pull_request.title }}
body: |
Testing pr <a href="${{ github.event.pull_request.html_url }}">${{ github.event.pull_request.number }}</a>