diff --git a/.github/workflows/github2gerrit.yaml b/.github/workflows/github2gerrit.yaml new file mode 100644 index 0000000..de64236 --- /dev/null +++ b/.github/workflows/github2gerrit.yaml @@ -0,0 +1,39 @@ +--- +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2024 The Linux Foundation + +name: call-github2gerrit-reusable-workflow + +# yamllint disable-line rule:truthy +on: + workflow_dispatch: + pull_request_target: + types: [opened, reopened, edited, synchronize] + branches: + - master + - main + +concurrency: + # yamllint disable-line rule:line-length + group: ${{ github.workflow }}-${{ github.run_id }} + cancel-in-progress: true + +jobs: + issue-id: + permissions: + contents: write + uses: os-climate/osc-github-devops/.github/workflows/reuse-issue-id.yaml@main + + call-in-g2g-workflow: + needs: issue-id + permissions: + contents: read + pull-requests: write + uses: lfit/github2gerrit/.github/workflows/github2gerrit.yaml@main + with: + GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }} + GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }} + GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }} + ORGANIZATION: ${{ vars.ORGANIZATION }} + secrets: + GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }} diff --git a/package.json b/package.json index 6a6d386..2e0ab6c 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@types/lodash": "4.14.188", "@types/node": "18.0.0", "@types/uuid": "^8.3.4", - "@typescript-eslint/eslint-plugin": "^5.59.2", + "@typescript-eslint/eslint-plugin": "^8.25.0", "@typescript-eslint/parser": "^5.59.2", "eslint": "^8.39.0", "git-format-staged": "3.0.0",