-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
38 lines (37 loc) · 1.25 KB
/
action.yml
File metadata and controls
38 lines (37 loc) · 1.25 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
36
37
38
name: 'mergify-merge-queue-labels-copier'
description: 'Mergify: copies pull request labels to merge queue draft PRs'
branding:
icon: arrow-up
color: 'blue'
inputs:
labels:
description: 'Comma separated list of labels to copy (all if empty)'
required: true
default: ''
additional-labels:
description: 'Comma separated list of additional labels to add to the merge queue PR'
required: false
default: ''
token:
description: 'The GitHub token to use for API requests'
required: false
default: ${{ github.token }}
runs:
using: "composite"
steps:
- name: Set GitHub Path
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
shell: bash
run: echo "$GITHUB_ACTION_PATH" >> "$GITHUB_PATH"
- name: Copying labels
shell: bash
if: startsWith(github.head_ref, 'mergify/merge-queue/')
env:
REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
MERGE_QUEUE_PR_URL: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.pull_request.number }}
GH_TOKEN: ${{ inputs.token }}
GH_ENTERPRISE_TOKEN: ${{ inputs.token }}
LABELS_TO_COPY: ${{ inputs.labels }}
ADDITIONAL_LABELS: ${{ inputs.additional-labels }}
run: run.sh