From 612a1e2b9fcfbd35739859265fa589047e6d5ecd Mon Sep 17 00:00:00 2001 From: pixelass Date: Wed, 21 Feb 2024 22:17:58 +0100 Subject: [PATCH] chore: add workflows --- .github/workflows/set-pr-title.yml | 30 ----------------------------- .github/workflows/test-client.yml | 1 + .github/workflows/test-e2e.yml | 1 + .github/workflows/test-electron.yml | 1 + 4 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/set-pr-title.yml diff --git a/.github/workflows/set-pr-title.yml b/.github/workflows/set-pr-title.yml deleted file mode 100644 index 6e9b5b05a..000000000 --- a/.github/workflows/set-pr-title.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Set PR Title to First Commit Message - -on: - pull_request: - types: [opened, synchronize] - -jobs: - set-pr-title: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - # Fetches the entire commit history so that we can access the first commit - fetch-depth: 0 - - - name: Get first commit message - run: | - # Get the SHA of the first commit in the PR - FIRST_COMMIT_SHA=$(git log --reverse --format="%H" "${{ github.event.pull_request.base.sha }}..HEAD" | head -n 1) - # Get the message of the first commit in the PR - FIRST_COMMIT_MESSAGE=$(git log -n 1 --format=%B "$FIRST_COMMIT_SHA") - echo "FIRST_COMMIT_MESSAGE=$FIRST_COMMIT_MESSAGE" >> $GITHUB_ENV - - - name: Update PR title - run: gh pr edit "$PR_NUMBER" --title "$FIRST_COMMIT_MESSAGE" - env: - FIRST_COMMIT_MESSAGE: ${{ env.FIRST_COMMIT_MESSAGE }} - GITHUB_TOKEN: ${{ secrets.PIXELASS_PAT_BLIBLA }} - PR_NUMBER: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/test-client.yml b/.github/workflows/test-client.yml index 09a864160..afb36357e 100644 --- a/.github/workflows/test-client.yml +++ b/.github/workflows/test-client.yml @@ -4,6 +4,7 @@ on: push: branches: [ alpha, beta, rc, main ] pull_request: + types: [ opened, synchronize ] branches: [ alpha, beta, rc, main ] jobs: diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index ce94ba28b..2581fd81e 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -4,6 +4,7 @@ on: push: branches: [ alpha, beta, rc, main ] pull_request: + types: [opened, synchronize] branches: [ alpha, beta, rc, main ] jobs: diff --git a/.github/workflows/test-electron.yml b/.github/workflows/test-electron.yml index 6d1f50bc6..d0a813889 100644 --- a/.github/workflows/test-electron.yml +++ b/.github/workflows/test-electron.yml @@ -4,6 +4,7 @@ on: push: branches: [ alpha, beta, rc, main ] pull_request: + types: [opened, synchronize] branches: [ alpha, beta, rc, main ] jobs: