From 97b371fa640662f2fa1d8b1ea801264f42629f92 Mon Sep 17 00:00:00 2001 From: Yuki Watanabe Date: Sun, 2 Jun 2024 00:34:48 +0900 Subject: [PATCH] add: automated create labels --- .github/labels.yml | 9 +++++++++ .github/workflows/update-pr-labels.yml | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/labels.yml create mode 100644 .github/workflows/update-pr-labels.yml diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..9a62abe --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,9 @@ +- color: 495057 + name: automated pr + description: Pull requests created by GitHub Actions +- color: 0b7285 + name: dependencies + description: Pull requests that update dependencies +- color: 1864ab + name: sync-template + description: Pull requests that sync the template repository diff --git a/.github/workflows/update-pr-labels.yml b/.github/workflows/update-pr-labels.yml new file mode 100644 index 0000000..a5ba159 --- /dev/null +++ b/.github/workflows/update-pr-labels.yml @@ -0,0 +1,14 @@ +name: Update labels + +on: pull_request +jobs: + build: + name: Sync labels + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: micnncim/action-label-syncer@v0.3.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + manifest: .github/labels.yml