Skip to content

[Bug] PRs created today always show "Updated PR" instead of "Made PR" due to wrong property case #535

@PhilixTheExplorer

Description

@PhilixTheExplorer

Bug Description

PRs/MRs created today incorrectly display "Updated PR" (or "Updated Merge Request" for GitLab)
instead of "Made PR" in the scrum report.

Root Cause

Two bugs in scrumHelper.js (lines 1768 and 1775):

  1. Wrong property case: The code checked item.State (capital S), but both APIs
    return lowercase state:

  2. Wrong state value for GitLab: The GitLab branch also compared against 'open',
    but GitLab uses 'opened' for open merge requests. The mapGitLabItem() function
    normalizes this for issues (line 272/342) but passes through the raw state for MRs,
    so the comparison must use 'opened' in the GitLab code path.

Steps to Reproduce

  1. Create a new PR today on any repository
  2. Generate scrum report with "Yesterday" timeframe
  3. The PR shows "Updated PR" instead of "Made PR"

Expected Behavior

Scenario Before After
GitHub PR created today "Updated PR" ❌ "Made PR" ✅
GitLab MR created today "Updated Merge Request" ❌ "Made Merge Request" ✅

Screenshots

Image

Additional Context

Add any other context about the problem here.


Contribution Checklist

  • I have searched existing issues to ensure this bug hasn't been reported
  • I have provided clear reproduction steps
  • I have included relevant environment details
  • I have described both expected and actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions