AST-36339 | enable Ai Guided Remediation only if the tenant has permission #291
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Automation | |
on: | |
pull_request_target: | |
types: [ready_for_review, opened, reopened] | |
permissions: | |
contents: none | |
issues: write | |
pull-requests: write | |
jobs: | |
add-assignee-and-reviewers: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.type != 'Bot' }} | |
steps: | |
- name: Request reviewers | |
env: | |
GH_REPO: ${{ github.repository }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
PRNUM: ${{ github.event.pull_request.number }} | |
PRAUTHOR: ${{ github.event.pull_request.user.login }} | |
run: gh pr edit $PRNUM --add-reviewer Checkmarx/ast-galactica-team |