Skip to content

Action Required: Fix Mend Configuration File - .mend - autoclosed #425

Action Required: Fix Mend Configuration File - .mend - autoclosed

Action Required: Fix Mend Configuration File - .mend - autoclosed #425

name: Project automations
on:
issues:
types:
- opened
pull_request:
types:
- opened
- ready_for_review
- converted_to_draft
- review_requested
env:
no_status: No Status
in_progress: In Progress 🚧
needs_review: Needs Review 🔎
concurrency:
group: ci-project-automation-${{ github.ref }}-1
cancel-in-progress: true
jobs:
issue_opened:
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'opened'
steps:
- name: Move issue to ${{ env.no_status }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.VNG_VVD_PAT }}
organization: vonage
project_id: 3
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.no_status }}
pr_draft:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.draft == true && github.event.action == 'opened' || github.event.action == 'converted_to_draft'
steps:
- name: Move PR to ${{ env.in_progress }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.VNG_VVD_PAT }}
organization: vonage
project_id: 3
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: ${{ env.needs_review }}
pr_ready_for_review:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.event.action == 'opened' || github.event.action == 'review_requested' || github.event.action == 'ready_for_review'
steps:
- name: Move PR to ${{ env.needs_review }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.VNG_VVD_PAT }}
organization: vonage
project_id: 3
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: ${{ env.needs_review }}