forked from adempiere/adempiere
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (31 loc) · 1.32 KB
/
auto-assign-pull-requests.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
# This pull request sets the assignee to the user who creates the pull request
# It also sets the label "09 Pending Peer Review"
name: Pull Request Assignment
on:
pull_request_target:
types: [opened]
permissions:
contents: read
pull-requests: write
jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
# Disable temporarily this action, because of following error:
# Assigning issue 3923 to users ["marcalwestf"]
#/home/runner/work/_actions/pozil/auto-assign-issue/v1/node_modules/@octokit/request/dist-node/index.js:86
# const error = new requestError.RequestError(toErrorMessage(data), status, {
# ^
#RequestError [HttpError]: Resource not accessible by integration
# at /home/runner/work/_actions/pozil/auto-assign-issue/v1/node_modules/@octokit/request/dist-node/index.js:86:21
#- name: 'Auto-assign pullrequest'
# uses: pozil/[email protected]
# with:
# #repo-token: ${{ secrets.GITHUB_TOKEN }}
# assignees: ${{github.actor}}
- name: 'Sets label 09 Pending Peer Review'
if: ${{ always() }}
uses: actions-ecosystem/action-add-labels@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
labels: 09 Pending Peer Review