From 26060464776218f4a1dec8bc340c6069bc4cade7 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 6 Apr 2021 01:50:01 -0700 Subject: [PATCH] Switch to the `dependent-issues` action. (#432) This supports tracking PR-to-issue and issue-to-issue dependencies in addition to PR-to-PR, and this seems likely to be increasingly important as we have decisions being made via issues. --- .github/workflows/dependent-issues.yaml | 31 +++++++++++++++++++++++++ .github/workflows/dependent-pr.yaml | 16 ------------- 2 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/dependent-issues.yaml delete mode 100644 .github/workflows/dependent-pr.yaml diff --git a/.github/workflows/dependent-issues.yaml b/.github/workflows/dependent-issues.yaml new file mode 100644 index 000000000000..bcbf5dd1a62c --- /dev/null +++ b/.github/workflows/dependent-issues.yaml @@ -0,0 +1,31 @@ +# Part of the Carbon Language project, under the Apache License v2.0 with LLVM +# Exceptions. See /LICENSE for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +name: Dependent Issues + +on: + issues: + types: + - opened + - edited + - reopened + pull_request_target: + types: + - opened + - edited + - reopened + schedule: + - cron: '0 0 * * *' # daily + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: z0al/dependent-issues@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + label: dependent + check_issues: on + keywords: depends on, blocked by diff --git a/.github/workflows/dependent-pr.yaml b/.github/workflows/dependent-pr.yaml deleted file mode 100644 index d97bbb33b580..000000000000 --- a/.github/workflows/dependent-pr.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Part of the Carbon Language project, under the Apache License v2.0 with LLVM -# Exceptions. See /LICENSE for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -name: Dependencies - -on: [pull_request] - -jobs: - check_dependencies: - runs-on: ubuntu-latest - name: check PRs landed - steps: - - uses: gregsdennis/dependencies-action@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}