Skip to content

Semver Label Enforcement workflow does not exit when **no** semver/* label is present #219

@clicktodev

Description

@clicktodev

Summary

The Semver Label Enforcement workflow appears to continue running even when a pull request has no semver/* label. Instead of exiting early.

Expected Behavior

When a PR has no semver/* label, the workflow should:

  • Detect that no matching label exists
  • Log the “No semver label found” message
  • Exit successfully

Actual Behavior

Even when no semver/* label is present:

  • The workflow logs that no semver label was found
  • But it does not exit

Steps to Reproduce

  1. Open a PR in a repo using the PR Monitoring Bot
  2. Ensure the PR has zero labels matching semver/*
  3. Observe the workflow run for Semver Label Enforcement
  4. Notice that it logs the missing label but still continues and fails

Possible Cause

It looks like the step that checks for the label logs the absence but does not actually exit 0 or otherwise stop the job. The workflow may need an explicit if: guard or an early‑return mechanism.

Image

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