forked from hashicorp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (53 loc) · 2.53 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
on:
- pull_request_target
name: Pull Request Target (All types)
jobs:
Labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apply Labels
uses: actions/labeler@v3
with:
configuration-path: .github/labeler-pr-triage.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}
NeedsTriageLabeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apply needs-triage Label
uses: actions/labeler@v3
if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding"]'), github.actor)
with:
configuration-path: .github/labeler-pr-needs-triage.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}
SizeLabeler:
runs-on: ubuntu-latest
steps:
# See also: https://github.com/CodelyTV/pr-size-labeler/pull/26
- name: Apply Size Label
uses: bflad/pr-size-labeler@7df62b12a176513631973abfe151d2b6213c3f12
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/XS'
xs_max_size: '30'
s_label: 'size/S'
s_max_size: '60'
m_label: 'size/M'
m_max_size: '150'
l_label: 'size/L'
l_max_size: '300'
xl_label: 'size/XL'
message_if_xl: ''
PullRequestComments:
runs-on: ubuntu-latest
steps:
- name: Add comment to add helpful context for new contributors
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |-
Welcome @${{github.actor}} :wave:
It looks like this is your first Pull Request submission to the [Terraform AWS Provider](https://github.com/hashicorp/terraform-provider-aws)! If you haven’t already done so please make sure you have checked out our [CONTRIBUTING](https://github.com/hashicorp/terraform-provider-aws/blob/main/docs/contributing) guide and [FAQ](https://github.com/hashicorp/terraform-provider-aws/blob/main/docs/contributing/faq.md) to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our [FAQ](https://github.com/hashicorp/terraform-provider-aws/blob/main/docs/contributing/faq.md) which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! :smiley: