Skip to content

Commit

Permalink
Test actions/labeler instead of the existing, stale auto-label action…
Browse files Browse the repository at this point in the history
… that has an open issue for path read failures
  • Loading branch information
JackAtScaleSec committed Nov 6, 2023
1 parent 466e7ea commit c173dab
Show file tree
Hide file tree
Showing 5 changed files with 852 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/auto-label.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"rules": {
"automerge": "policies/org_policy.json"
"rules": {
"automerge": "policies/org_policy.json"
}
}
1 change: 1 addition & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
automerge-test: policies/org_policy_test.json
37 changes: 19 additions & 18 deletions .github/workflows/auto_label.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
####################################################################
## Add an 'automerge' label to the PR based on file touched ##
####################################################################
# ####################################################################
# ## Add an 'automerge' label to the PR based on file touched ##
# ####################################################################

name: Auto-label
# name: Auto-label

on:
pull_request:
types:
- opened
# on:
# pull_request:
# types:
# - opened
# - synchronize

jobs:
pr-automation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Auto label based on files touched.
uses: banyan/auto-label@1.2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# jobs:
# pr-automation:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Auto label based on files touched.
# uses: banyan/auto-label@1.2
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
####################################################################
## Add an 'automerge' label to the PR based on file touched ##
####################################################################

name: Labeler

on:
pull_request:
types:
- opened
- synchronize

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
Loading

0 comments on commit c173dab

Please sign in to comment.