Skip to content

Titles in on.pull_request.types: edited are not captured #2

@SiegeSailor

Description

@SiegeSailor

Summary

The activity type on.pull_request.types: edited is not triggered with the PR title. A JSONDecodeError("Expecting value", s, err.value) from None error is raised. See https://github.com/SiegeSailor/Smarty-Notebook/actions/runs/19205915406/job/54901052719 for logs. In other words, CashStory/commitizen-action-pr@1.0.1 is unable to capture the title when a new commit is pushed to a PR.

My workflow snippet

on:
  push:
    branches:
      - main
      - release
  pull_request:
    branches:
      - main
      - release
    types:
      - edited
      - opened
      - reopened
      - synchronize

jobs:
  linting:
    runs-on: ubuntu-latest

    permissions:
      contents: read
      pull-requests: read

    steps:
      - name: Action | Validate PR Title
        if: github.event_name == 'pull_request'
        uses: CashStory/commitizen-action-pr@1.0.1

Expected Behavior

CashStory/commitizen-action-pr@1.0.1 is able to capture PR titles with on.pull_request.types: edited events. Before that, we should remove the recommended on setup from the sample workflow in README.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions