-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# **what?** | ||
# Label a PR with a `community` label when a PR is opened by a user outside core/adapters | ||
|
||
# **why?** | ||
# To streamline triage and ensure that community contributions are recognized and prioritized | ||
|
||
# **when?** | ||
# When a PR is opened, not in draft or moved from draft to ready for review | ||
|
||
|
||
name: Label community PRs | ||
|
||
on: | ||
pull_request: | ||
types: [opened, ready_for_review] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
pull-requests: write # labels PRs | ||
|
||
jobs: | ||
open_issues: | ||
# If this PR already has the community label, no need to relabel it | ||
# If this PR is opened and not draft, determine if it needs to be labeled | ||
# if the PR is converted out of draft, determine if it needs to be labeled | ||
if: | | ||
(!contains(github.event.pull_request.labels.*.name, 'community') && | ||
(github.event.action == 'opened' && github.event.pull_request.draft == false ) || | ||
github.event.action == 'ready_for_review' ) | ||
uses: dbt-labs/actions/.github/workflows/label-community.yml@main | ||
with: | ||
github_team: "core" | ||
label: 'community' | ||
secrets: inherit |