Skip to content

Commit

Permalink
Add missing migration label (#44)
Browse files Browse the repository at this point in the history
* add missing migration label

* add missing label

* only welcome external contributors

* disable mergable check
  • Loading branch information
osterman authored Mar 5, 2024
1 parent f7b5f82 commit 36b5426
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 43 deletions.
81 changes: 45 additions & 36 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ shared:
- "-author=dependabot[bot]"
- "-author=renovate[bot]"

external_contributor: &external_contributor
- and:
- "-author=@engineering"
- "-author=@contributors"
- "-author=@admins"
- "-author=@bots"
- "-author=@approvers"
- "-author=@security"

# Default branches
default_branch: &default_branch
- "base=main"
Expand Down Expand Up @@ -202,7 +211,7 @@ pull_request_rules:
comment:
message: |
> [!IMPORTANT]
> ## Title is necessary and should not be empty.
> #### Title is necessary and should not be empty.
>
> Kindly provide a meaningful title for this Pull Request.
Expand All @@ -215,7 +224,7 @@ pull_request_rules:
comment:
message: |
> [!IMPORTANT]
> ## Description is necessary and should not be empty.
> #### Description is necessary and should not be empty.
>
> Kindly provide details with **what** was changed, **why** it was changed.
Expand Down Expand Up @@ -339,18 +348,18 @@ pull_request_rules:
conditions:
- and: *is_open
- and: *not_a_bot
- and: *external_contributor
actions:
comment:
message: |
Thanks @{{author}} for creating this pull request!
A maintainer will review your changes shortly.
Please don't be discouraged if it takes a while.
While you wait, make sure to review our
[contributor guidelines](https://github.com/cloudposse/.github/blob/main/CONTRIBUTING.md).
A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.
While you wait, make sure to review our [contributor guidelines](https://github.com/cloudposse/.github/blob/main/CONTRIBUTING.md).
> [!TIP]
> ## Need help or want to ask for a PR review to be expedited?
> #### Need help or want to ask for a PR review to be expedited?
> Join us on [Slack](https://slack.cloudposse.com) in the `#pr-reviews` channel.
- name: add triage label for new pull requests
Expand Down Expand Up @@ -407,10 +416,10 @@ pull_request_rules:
comment:
message: |
> [!IMPORTANT]
> This pull request modifies files that require Cloud Posse's review.
> Please be patient, and a core maintainer will review your changes.
> To expedite this process, reach out to us on [Slack](https://slack.cloudposse.com)
> in the `#pr-reviews` channel.
> #### Cloud Posse Engineering Team Review Required
> This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.
>
> To expedite this process, reach out to us on [Slack](https://slack.cloudposse.com) in the `#pr-reviews` channel.
- name: rebase pull request when it's more than 10 commits behind main
conditions:
Expand All @@ -429,28 +438,28 @@ pull_request_rules:
remove:
- rebase

- name: mergeable
conditions:
- and: *is_open
- or: *default_branch
actions:
post_check:
success_conditions:
- and:
- and: *not_wip
- and: *pr_metadata
- and: *readme_updated
- and: *is_approved
- and: *checks_passing
- and: *require_terraform_checks_passing
- and: *require_codeowners_checks_passing
title: |
{% if check_status == "success" %}
This PR is ready to be merged
{% else %}
This PR is not ready to be merged
{% endif %}
summary: |
{% if check_status == "failure" %}
Your pull request needs to be updated before it can be merged.
{% endif %}
#- name: mergeable
# conditions:
# - and: *is_open
# - or: *default_branch
# actions:
# post_check:
# success_conditions:
# - and:
# - and: *not_wip
# - and: *pr_metadata
# - and: *readme_updated
# - and: *is_approved
# - and: *checks_passing
# - and: *require_terraform_checks_passing
# - and: *require_codeowners_checks_passing
# title: |
# {% if check_status == "success" %}
# This PR is ready to be merged
# {% else %}
# This PR is not ready to be merged
# {% endif %}
# summary: |
# {% if check_status == "failure" %}
# Your pull request needs to be updated before it can be merged.
# {% endif %}
22 changes: 15 additions & 7 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,21 @@ labels:
color: '#B60205'
description: 'This PR has conflicts'

- name: "no-changes"
color: "#cccccc"
description: "No changes were made in this PR"
- name: no-changes
color: '#cccccc'
description: 'No changes were made in this PR'

- name: "stale"
color: "#e69138"
description: "This PR has gone stale"
- name: stale
color: '#e69138'
description: 'This PR has gone stale'

- name: migration
color: '#2f81f7'
description: 'This PR involves a migration'

- name: terraform/0.13
color: '#ffd9c4'
description: 'Module requires Terraform 0.13 or later'

# Note: `permission` is only valid on organization-owned repositories.
# The permission to grant the collaborator. Can be one of:
Expand All @@ -182,4 +190,4 @@ teams:
- name: contributors
permission: triage
- name: security
permission: pull
permission: pull

0 comments on commit 36b5426

Please sign in to comment.