Rename resourceNameId to resourceOwnerTeamId in ApprovalService.java #4378
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
# This workflow is called when a pull request is approved | |
# that targets the protected branch `main`. | |
# The job `merge-to-main` ("Status check for enabling merging to main") | |
# is a required status check. | |
# (https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28) | |
# We can only merge to main when this job has run and is green. | |
# The workflow can be triggered manually, too. | |
name: Checks enabling merge to main | |
on: | |
pull_request_review: | |
types: | |
- submitted | |
branches: | |
- main | |
pull_request: | |
types: | |
- synchronize | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
checkout-code: | |
if: (github.event_name == 'pull_request' && github.event.action == 'synchronize') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 #v4.1.2 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
run-coral-jobs: | |
if: (github.event_name == 'pull_request' && github.event.action == 'synchronize') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') | |
name: Run coral workflow before enabling merge to main | |
needs: checkout-code | |
uses: ./.github/workflows/jobs-coral.yaml | |
run-maven-jobs: | |
if: (github.event_name == 'pull_request' && github.event.action == 'synchronize') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') | |
name: Run maven workflow before enabling merge to main | |
needs: checkout-code | |
uses: ./.github/workflows/jobs-maven.yaml | |
run-e2e-tests: | |
if: (github.event_name == 'pull_request' && github.event.action == 'synchronize') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') | |
name: Run Playwright e2e test before enabling merge to main | |
needs: checkout-code | |
permissions: | |
actions: write | |
uses: ./.github/workflows/end-to-end-tests.yaml | |
merge-to-main: | |
name: Status check for enabling merging to main | |
if: (github.event_name == 'pull_request' && github.event.action == 'synchronize') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') | |
runs-on: ubuntu-latest | |
needs: [ run-maven-jobs, run-coral-jobs, run-e2e-tests ] | |
steps: | |
- name: Confirm check | |
run: echo "🎉 this was successful" | |