Skip to content

Commit

Permalink
fix the broken create issue with adding needs (SatelliteQE#10251)
Browse files Browse the repository at this point in the history
Co-authored-by: Jitendra Yejare <[email protected]>

Co-authored-by: Jitendra Yejare <[email protected]>
  • Loading branch information
omkarkhatavkar and jyejare authored Nov 9, 2022
1 parent cd89511 commit a2cd5c1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto_assignment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Auto Assign'

on:
pull_request_target:
types:
- opened
- ready_for_review
- reopened
- synchronize


jobs:
add-assignees: # This needed for to create the gh issue in case of failed auto0-cherry-pick
name: Add author to assignee
if: "!contains(github.event.pull_request.labels.*.name, 'Auto_Cherry_Picked')"
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
repo-token: "${{ secrets.CHERRYPICK_PAT || github.token }}"
configuration-path: ".github/auto_assign.yml"
2 changes: 1 addition & 1 deletion .github/workflows/auto_cherry_pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
create-issue:
runs-on: ubuntu-latest
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') }}
needs: auto-cherry-pick
needs: [previous-branch, auto-cherry-pick]
env:
to-branch: ${{ fromJson(needs.previous-branch.outputs.previous_branch) }}
steps:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,3 @@ jobs:
- name: Analysis (git diff)
if: failure()
run: git diff

# This needed for to create the gh issue in case of failed auto0-cherry-pick
add-assignees:
name: Add author to assignee
if: "!contains(github.event.pull_request.labels.*.name, 'Auto_Cherry_Picked')"
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
configuration-path: '.github/auto_assign.yml'

0 comments on commit a2cd5c1

Please sign in to comment.