diff --git a/.asf.yaml b/.asf.yaml index ff2974baa3..e1dde177dc 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -28,23 +28,29 @@ github: del_branch_on_merge: true #labels: enabled_merge_buttons: - merge: true + merge: false + rebase: false squash: true - rebase: true protected_branches: master: required_status_checks: - # strict means "Require branches to be up to date before merging". + # strict means "Require branches to be up-to-date before merging". strict: true - # contexts are the names of checks that must pass - #contexts: - # - hugegraph ci/build - # - hugegraph-ci/build + # contexts are the names of checks that must pass (now only enable the basic check) + contexts: + - Analyze (java) + - CodeQL + - build (memory, 8) + - build (memory, 11) required_pull_request_reviews: dismiss_stale_reviews: true require_code_owner_reviews: false required_approving_review_count: 2 notifications: - issues: dev@hugegraph.apache.org - pullrequests: commits@hugegraph.apache.org + pullrequests_status: dev@hugegraph.apache.org + # before use the config, we should ensure the "mail" address has set well (exist) + #pullrequests_comment: issues@hugegraph.apache.org + #issues: issues@hugegraph.apache.org + #discussions: issues@hugegraph.apache.org + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6b0198195..17236051ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: hugegraph ci +name: hugegraph-ci on: push: @@ -31,7 +31,7 @@ jobs: steps: - name: Install JDK ${{ matrix.JAVA_VERSION }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.JAVA_VERSION }} distribution: 'zulu' @@ -44,7 +44,7 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 @@ -53,7 +53,7 @@ jobs: mvn clean compile -U -Dmaven.javadoc.skip=true | grep -v "Downloading\|Downloaded" - name: Install JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '8' distribution: 'zulu' @@ -63,7 +63,7 @@ jobs: $TRAVIS_DIR/install-backend.sh $BACKEND - name: Install JDK ${{ matrix.JAVA_VERSION }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.JAVA_VERSION }} distribution: 'zulu' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5bcfa103cb..17f41813fc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -4,10 +4,10 @@ name: "CodeQL" on: push: - branches: [ master, release-0.*, v0.* ] + branches: [ master, release-*, v*.* ] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + # branches: [ master ] # enable in all PR schedule: - cron: '33 0 * * 5' @@ -27,17 +27,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Java JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: '8' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -48,7 +48,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -62,4 +62,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2