Skip to content

PATCH : changed title in issues and PRs #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug Report / Feature Request
about: Report a bug or request a new feature
title: '[Bug/Feature]: <short description>'
labels: ['needs triage']
assignees: ''
---

### 🔍 Actual Behaviour

What is currently happening?

### ✅ Expected Behaviour

What should ideally happen?

### 📸 Screenshots

If applicable, add screenshots to help explain the issue.

### 🧪 Steps to Reproduce (for bugs)

1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See the error

### 💡 Possible Solution

(Optional) Suggest a fix or reason for the bug.

### 🙋‍♂️ Would You Like to Work on It?

Yes / No
1 change: 1 addition & 0 deletions .github/workflows/publish-chrome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C3ElB,KAAK,CAACW,OAAO,IAAI,OAAOX,KAAK,CAACW,OAAO,KAAK,QAAQ,IAAIX,KAAK,CAACW,OAAO,CAACM,WAAW,CAAC,CAAC,CAACC,QAAQ,CAAC,mBAAmB,CAAE,EAAE;MACnHnB,OAAO,CAACoB,IAAI,CAAC,6EAA6E,CAAC;MAC3F,OAAO;QACHxB,OAAO,EAAE,KAAK;QACdyB,UAAU,EAAE,IAAI;QAChBnB,OAAO,EAAE;MACb,CAAC;IACL;IACA,MAAMD,KAAK;EACf;AACJ,CAAC;;AAED;AACA,OAAO,MAAMqB,YAAY,GAAG,MAAAA,CAAO;EAAEC,OAAO;EAAEC,OAAO;EAAEtB,OAAO;EAAEuB,SAAS;EAAEC,MAAM;EAAEC,eAAe;EAAEC,mBAAmB,GAAG;AAAK,CAAC,KAAK;EACjI,IAAI;IACA,MAAMC,OAAO,GAAG;MACZN,OAAO;MAAE;MACTC,OAAO;MAAE;MACTtB,OAAO;MACPuB,SAAS;MACTC,MAAM;MACNC,eAAe;MACfC;IACJ,CAAC;IACD;IACA,MAAMlC,MAAM,GAAG,MAAMP,oBAAoB,CAAC0C,OAAO,CAAC;IAClD,OAAOnC,MAAM,CAACC,IAAI;EACtB,CAAC,CAAC,OAAOM,KAAK,EAAE;IACZD,OAAO,CAACC,KAAK,CAAC,wBAAwB,EAAEA,KAAK,CAAC;IAC9C,MAAMA,KAAK;EACf;AACJ,CAAC;AAED,OAAO,MAAM6B,qBAAqB,GAAG,MAAAA,CAAOC,YAAY,EAAEd,UAAU,KAAK;EACrE,IAAI;IACA,MAAMvB,MAAM,GAAG,MAAMN,yBAAyB,CAAC;MAAE2C,YAAY;MAAEd;IAAW,CAAC,CAAC;IAC5E,OAAOvB,MAAM,CAACC,IAAI;EACtB,CAAC,CAAC,OAAOM,KAAK,EAAE;IACZD,OAAO,CAACC,KAAK,CAAC,kCAAkC,EAAEA,KAAK,
Binary file added Screenshot 2025-05-30 205822.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/old_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/standalone2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/image copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
349 changes: 349 additions & 0 deletions src/icons/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 31 additions & 9 deletions src/scripts/scrumHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1417,15 +1417,20 @@ ${userReason}`;
startDateFilter = new Date(lastWeek.toISOString().split('T')[0] + 'T00:00:00Z');
endDateFilter = new Date(today.toISOString().split('T')[0] + 'T23:59:59Z');
}

const today = new Date();
today.setHours(0,0,0,0);
const itemCreatedDate = new Date(item.created_at);
itemCreatedDate.setHours(0,0,0,0);
const isCreatedToday = today.getTime() === itemCreatedDate.getTime();

const isNewPR = prCreatedDate >= startDateFilter && prCreatedDate <= endDateFilter;
const isNewPR = prCreatedDate >= startDateFilter && prCreatedDate << endDateFilter;
const prUpdatedDate = new Date(item.updated_at);
const isUpdatedInRange = prUpdatedDate >= startDateFilter && prUpdatedDate <= endDateFilter;

// Check if PR has commits in the date range
const hasCommitsInRange = item._allCommits && item._allCommits.length > 0;

log(`[PR DEBUG] PR #${number} - isNewPR: ${isNewPR}, isUpdatedInRange: ${isUpdatedInRange}, state: ${item.state}, hasCommitsInRange: ${hasCommitsInRange}, created: ${item.created_at}, updated: ${item.updated_at}`);

if (platform === 'github') {
// For existing PRs (not new), they must be open AND have commits in the date range
Expand All @@ -1439,10 +1444,21 @@ ${userReason}`;
continue;
}
}
prAction = isNewPR ? 'Made PR' : 'Existing PR';
prAction = isNewPR ? 'Made PR' : 'Updated PR';
log(`[PR DEBUG] Including PR #${number} as ${prAction}`);

if (isCreatedToday && item.State === 'open') {
prAction = 'Made PR';
} else {
prAction = 'Updated PR';
}
} else if (platform === 'gitlab') {
prAction = isNewPR ? 'Made Merge Request' : 'Existing Merge Request';
prAction = isNewPR ? 'Made Merge Request' : 'Updated Merge Request';
if (isCreatedToday && item.State === 'open') {
prAction = 'Made Merge Request';
} else {
prAction = 'Updated Merge Request';
}
}

if (isDraft) {
Expand Down Expand Up @@ -1507,25 +1523,31 @@ ${userReason}`;
nextWeekArray.push(li2);
}

const today = new Date();
today.setHours(0,0,0,0);
const itemCreatedDate = new Date(item.created_at);
itemCreatedDate.setHours(0,0,0,0);
const isCreatedToday = today.getTime() === itemCreatedDate.getTime();
const issueActionText = isCreatedToday ? 'Opened Issue' : 'Updated Issue'
if (item.state === 'open') {
li = `<li><i>(${project})</i> - Opened Issue(#${number}) - <a href='${html_url}'>${title}</a>${showOpenLabel ? ' ' + issue_opened_button : ''}</li>`;
li = `<li><i>(${project})</i> - ${issueActionText}(#${number}) - <a href='${html_url}'>${title}</a>${showOpenLabel ? ' ' + issue_opened_button : ''}</li>`;

} else if (item.state === 'closed') {


// Use state_reason to distinguish closure reason
if (item.state_reason === 'completed') {
li = `<li><i>(${project})</i> - Opened Issue(#${number}) - <a href='${html_url}'>${title}</a> ${issue_closed_completed_button}</li>`;
li = `<li><i>(${project})</i> - ${issueActionText}(#${number}) - <a href='${html_url}'>${title}</a> ${issue_closed_completed_button}</li>`;
} else if (item.state_reason === 'not_planned') {
li = `<li><i>(${project})</i> - Opened Issue(#${number}) - <a href='${html_url}'>${title}</a> ${issue_closed_notplanned_button}</li>`;
li = `<li><i>(${project})</i> - ${issueActionText}(#${number}) - <a href='${html_url}'>${title}</a> ${issue_closed_notplanned_button}</li>`;
} else {
li = `<li><i>(${project})</i> - Opened Issue(#${number}) - <a href='${html_url}'>${title}</a> ${issue_closed_button}</li>`;
li = `<li><i>(${project})</i> - ${issueActionText}(#${number}) - <a href='${html_url}'>${title}</a> ${issue_closed_button}</li>`;
}


} else {
// Fallback for unexpected state
li = `<li><i>(${project})</i> - Opened Issue(#${number}) - <a href='${html_url}'>${title}</a></li>`;
li = `<li><i>(${project})</i> - ${issueActionText}(#${number}) - <a href='${html_url}'>${title}</a></li>`;
}

log('[SCRUM-DEBUG] Added issue to lastWeekArray:', li, item);
Expand Down
Loading