Skip to content

Commit

Permalink
chore(ci): fix failing actions/labeler (hashicorp#2096)
Browse files Browse the repository at this point in the history
Reformatted the `actions/labeler` configuration for v5.0.0 requirements.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam authored Dec 15, 2023
1 parent 93a1a48 commit 0c2be2d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 22 deletions.
19 changes: 0 additions & 19 deletions .github/labeler-pull-request-triage.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/labeler-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

chore:
- changed-files:
- any-glob-to-any-file:
- ".github/**/*"
- ".gitignore"
- ".release"
- "scripts/**/*"
- ".go-version"
- "go.mod"
- "go.sum"
dependencies:
- changed-files:
- any-glob-to-any-file:
- ".go-version"
- "go.mod"
- "go.sum"
documentation:
- changed-files:
- any-glob-to-any-file:
- "**/*.md"
- "website/**/*"
github-actions:
- changed-files:
- any-glob-to-any-file:
- ".github/workflows/**/*"
needs-review:
- changed-files:
- any-glob-to-any-file:
- "**"
provider:
- changed-files:
- any-glob-to-any-file:
- "acctests/**/*"
- "vsphere/**/*"
- ".go-version"
- "GNUmakefile"
- "go.mod"
- "go.sum"
- "main.go"
20 changes: 17 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
name: "Pull Request Triage"
name: "Pull Request Labels"

on: [pull_request_target]
on:
pull_request_target:
branches:
- main
types:
- opened
- synchronize
- reopened
- edited
- ready_for_review

jobs:
triage:
labeler:
name: Labeler
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Apply Labels
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
configuration-path: .github/labeler-pull-request-triage.yml
Expand Down

0 comments on commit 0c2be2d

Please sign in to comment.