From 6b9bfee21c129f32e14959e9ae9cfcc18d714743 Mon Sep 17 00:00:00 2001 From: Assem Hafez Date: Thu, 12 Sep 2024 08:19:36 +0000 Subject: [PATCH 1/3] check dependent PR --- .github/workflows/dependent-issues.yml | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/dependent-issues.yml diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml new file mode 100644 index 000000000..b9a8fa8b5 --- /dev/null +++ b/.github/workflows/dependent-issues.yml @@ -0,0 +1,44 @@ +name: Dependent Issues + +on: + issues: + types: + - opened + - edited + - closed + - reopened + pull_request_target: + types: + - opened + - edited + - closed + - reopened + # Makes sure we always add status check for PRs. Useful only if + # this action is required to pass before merging. Otherwise, it + # can be removed. + - synchronize + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: z0al/dependent-issues@v1 + env: + # (Required) The token to use to make API calls to GitHub. + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + with: + # (Optional) The label to use to mark dependent issues + label: dependent + + # (Optional) A comma-separated list of keywords. Default + # "depends on, blocked by" + keywords: depends on, blocked by + + # (Optional) A custom comment body. It supports `{{ dependencies }}` token. + comment: > + This PR/issue depends on: + + {{ dependencies }} + + PRs are only allowed to get merged after its dependecies. From 433a2d9c61b1887ad5e860d4a3ffbfd0451d67f6 Mon Sep 17 00:00:00 2001 From: Assem Hafez Date: Thu, 12 Sep 2024 08:36:33 +0000 Subject: [PATCH 2/3] add target branches --- .github/workflows/dependent-issues.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index b9a8fa8b5..ac19d1bce 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -1,13 +1,10 @@ name: Dependent Issues on: - issues: - types: - - opened - - edited - - closed - - reopened pull_request_target: + branches: + - release/4.0.0 + - master types: - opened - edited From ce4a3be046908208b27cfa1717e4605bfcf7474b Mon Sep 17 00:00:00 2001 From: Assem Hafez Date: Thu, 12 Sep 2024 08:40:02 +0000 Subject: [PATCH 3/3] update indentation --- .github/workflows/dependent-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index ac19d1bce..446a6a0a5 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -2,7 +2,7 @@ name: Dependent Issues on: pull_request_target: - branches: + branches: - release/4.0.0 - master types: