Skip to content

Commit 181be30

Browse files
authored
Merge pull request #158 from Preeti9764/organization
corrected the organisation to organization
2 parents 35f67d5 + 6316ea2 commit 181be30

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/popup.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,19 @@ <h6 class="text-base font-semibold">Scrum Report</h6>
130130
<div id="settingsSection" class="tab-content hidden">
131131
<div class="">
132132
<div class="flex items-center mt-4">
133-
<h4>Organisation Name</h4>
133+
<h4>Organization Name</h4>
134134
<span class="tooltip-container ml-2">
135135
<i class="fa fa-question-circle question-icon"></i>
136136
<span class="tooltip-bubble">
137-
<b>Which organisation's GitHub activity?</b><br>
138-
Enter the GitHub organisation name to fetch activites for. Default is <b>fossasia</b>.
139-
Organisation name is not case-sensitive.
137+
<b>Which organization's GitHub activity?</b><br>
138+
Enter the GitHub organization name to fetch activites for. Default is <b>fossasia</b>.
139+
Organization name is not case-sensitive.
140140
</span>
141141
</span>
142142
</div>
143143
<input id="orgInput" type="text"
144144
class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2"
145-
placeholder="Enter organisation name (default: fossasia)">
145+
placeholder="Enter organization name (default: fossasia)">
146146
</div>
147147
<div class="">
148148
<div class="flex items-center justify-between">

src/scripts/popup.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ document.addEventListener('DOMContentLoaded', function () {
368368
.then(res => {
369369
console.log('[Org Check] Response status for', org, ':', res.status);
370370
if (res.status === 404) {
371-
console.log('[Org Check] Organisation not found on GitHub:', org);
371+
console.log('[Org Check] Organization not found on GitHub:', org);
372372
// Remove any existing toast with the same id
373373
const oldToast = document.getElementById('invalid-org-toast');
374374
if (oldToast) oldToast.parentNode.removeChild(oldToast);
@@ -386,7 +386,7 @@ document.addEventListener('DOMContentLoaded', function () {
386386
toastDiv.style.left = '50%';
387387
toastDiv.style.transform = 'translateX(-50%)';
388388
toastDiv.style.zIndex = '9999';
389-
toastDiv.innerText = 'Organisation not found on GitHub.';
389+
toastDiv.innerText = 'Organization not found on GitHub.';
390390
document.body.appendChild(toastDiv);
391391
setTimeout(() => {
392392
if (toastDiv.parentNode) toastDiv.parentNode.removeChild(toastDiv);
@@ -397,14 +397,14 @@ document.addEventListener('DOMContentLoaded', function () {
397397
// Remove any existing toast with the same id (for valid orgs)
398398
const oldToast = document.getElementById('invalid-org-toast');
399399
if (oldToast) oldToast.parentNode.removeChild(oldToast);
400-
console.log('[Org Check] Organisation exists on GitHub:', org);
400+
console.log('[Org Check] Organization exists on GitHub:', org);
401401
// Valid org: update storage and fetch data
402402
chrome.storage.local.set({ orgName: org }, function () {
403403
if (window.generateScrumReport) window.generateScrumReport();
404404
});
405405
})
406406
.catch((err) => {
407-
console.log('[Org Check] Error validating organisation:', org, err);
407+
console.log('[Org Check] Error validating organization:', org, err);
408408
// Remove any existing toast with the same id
409409
const oldToast = document.getElementById('invalid-org-toast');
410410
if (oldToast) oldToast.parentNode.removeChild(oldToast);
@@ -422,7 +422,7 @@ document.addEventListener('DOMContentLoaded', function () {
422422
toastDiv.style.left = '50%';
423423
toastDiv.style.transform = 'translateX(-50%)';
424424
toastDiv.style.zIndex = '9999';
425-
toastDiv.innerText = 'Error validating organisation.';
425+
toastDiv.innerText = 'Error validating organization.';
426426
document.body.appendChild(toastDiv);
427427
setTimeout(() => {
428428
if (toastDiv.parentNode) toastDiv.parentNode.removeChild(toastDiv);

src/scripts/scrumHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ function allIncluded(outputTarget = 'email') {
381381

382382
if (issuesRes.status === 404 || prRes.status === 404) {
383383
if (outputTarget === 'popup') {
384-
Materialize.toast && Materialize.toast('Organisation not found on GitHub', 3000);
384+
Materialize.toast && Materialize.toast('Organization not found on GitHub', 3000);
385385
}
386-
throw new Error('Organisation not found');
386+
throw new Error('Organization not found');
387387
}
388388

389389
if (!issuesRes.ok) throw new Error(`Error fetching Github issues: ${issuesRes.status} ${issuesRes.statusText}`);

0 commit comments

Comments
 (0)