Skip to content

Commit fe32e1a

Browse files
committed
rename extension
1 parent fc3fc62 commit fe32e1a

File tree

9 files changed

+202
-25
lines changed

9 files changed

+202
-25
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Bug Report
2+
description: Report a bug
3+
labels: [bug]
4+
assignees: []
5+
body:
6+
- type: checkboxes
7+
id: checks
8+
attributes:
9+
label: Prerequisites
10+
description: |
11+
*If **all** checks are not passed then the issue will be closed.*
12+
options:
13+
- label: I have checked that no other similar issue already exists.
14+
required: true
15+
- label: I have checked that this issue is actually a bug and not a feature.
16+
required: true
17+
- label: I am running the latest release version.
18+
required: true
19+
20+
- type: input
21+
id: os
22+
attributes:
23+
label: Operating System
24+
description: |
25+
Operating system name and version.
26+
placeholder: |
27+
ex: Windows 10
28+
validations:
29+
required: true
30+
31+
- type: input
32+
id: browser
33+
attributes:
34+
label: Browser
35+
description: |
36+
Browser name and version if possible.
37+
placeholder: |
38+
ex: Google Chrome, Google Chrome 96
39+
validations:
40+
required: true
41+
42+
- type: input
43+
id: version
44+
attributes:
45+
label: Extension Version
46+
description: |
47+
Release version or branch commit where the issue occured. Do not write 'latest'.
48+
placeholder: |
49+
ex: v1.1, cc4cbc0
50+
validations:
51+
required: true
52+
53+
- type: checkboxes
54+
id: component
55+
attributes:
56+
label: Components
57+
description: |
58+
Select which components are the wrong color.
59+
options:
60+
- label: Pinned issues
61+
required: false
62+
- label: Closed issues
63+
required: false
64+
- label: Issue timeline
65+
required: false
66+
- label: Issues tab
67+
required: false
68+
- label: Issue hovercard
69+
required: false
70+
- label: Closed pulls
71+
required: false
72+
- label: Pull timeline
73+
required: false
74+
- label: Pull hovercard
75+
required: false
76+
- label: Subscriptions
77+
required: false
78+
- label: Search
79+
required: false
80+
- label: Projects
81+
required: false
82+
- label: Projects (beta)
83+
required: false
84+
- label: Insights
85+
required: false
86+
87+
- type: textarea
88+
id: issue
89+
attributes:
90+
label: Issue
91+
description: |
92+
Explain your issue, add any relevant stacktraces here.
93+
validations:
94+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Feature Request
2+
description: Suggest a new feature
3+
labels: [enhancement]
4+
assignees: []
5+
body:
6+
- type: checkboxes
7+
id: checks
8+
attributes:
9+
label: Prerequisites
10+
description: |
11+
*If **all** checks are not passed then the issue will be closed.*
12+
options:
13+
- label: I have checked that no other similar feature request already exists.
14+
required: true
15+
- label: This feature request makes sense for the project.
16+
required: true
17+
- label: I have checked that this feature does not already exist.
18+
required: true
19+
- label: I am running the latest release version.
20+
required: true
21+
22+
- type: textarea
23+
id: feature
24+
attributes:
25+
label: Feature
26+
description: |
27+
Explain your feature. Add any examples here.
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: reason
33+
attributes:
34+
label: Reason
35+
description: |
36+
Explain why you think this feature should be added.
37+
validations:
38+
required: true

.github/pull_request_template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Prerequisites
2+
*If checks are not passed then the pull request will be closed.*
3+
4+
- [ ] I have checked that no other similar pull request already exists.
5+
- [ ] My code follows the general code style as the rest of the code.
6+
7+
### Changes Made
8+
*List any changes made and/or other relevant issues.*
9+
10+
-

.github/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
changelog:
2+
categories:
3+
- title: ⚠ Breaking Change
4+
labels:
5+
- breaking change
6+
- title: ❌ Removed
7+
labels:
8+
- deprecated
9+
- title: ⭐ New Features
10+
labels:
11+
- enhancements
12+
- experimental
13+
- feature
14+
- feature request
15+
- title: 🐞 Bug Fixes
16+
labels:
17+
- bug
18+
- critical bug
19+
- title: 📄 Documentation
20+
labels:
21+
- documentation
22+
- title: 🔧 Optimizations
23+
labels:
24+
- optimization
25+
- title: 🧰 Internal
26+
labels:
27+
- internal
28+
- refactor
29+
- title: 📘 Dependencies
30+
labels:
31+
- dependencies

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# GitHub Red Closed Issues Extension
1+
# GitHub Red Issues
22

33
[![Creative Commons License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/)
44

55
Google Chrome extension to revert closed GitHub issues from purple back to red.
66

7-
|[Report an issue](https://github.com/Katsute/GitHub-Red-Closed-Issues-Extension/issues)|[Download](https://github.com/Katsute/GitHub-Red-Closed-Issues-Extension/archive/refs/heads/main.zip)|
7+
|[Report an issue](https://github.com/Katsute/GitHub-Red-Issues/issues)|[Download](https://github.com/Katsute/GitHub-Red-Issues/archive/refs/heads/main.zip)|
88
|---|---|
99

1010
## Installation
@@ -26,3 +26,12 @@ Reverted closed issues from purple to red on:
2626
- Issues on search
2727
- Issues on projects
2828
- Issues on projects (beta)
29+
30+
## Contributing
31+
32+
- Found a bug? Open a new [issue](https://github.com/Katsute/GitHub-Red-Issues/issues).
33+
- Want to contribute? Create a [fork](https://github.com/Katsute/GitHub-Red-Issues/fork) and open a [pull request](https://github.com/Katsute/GitHub-Red-Issues/pulls).
34+
35+
## License
36+
37+
This extension is released under the [CC-BY-NC-SA 4.0 License](https://github.com/Katsute/GitHub-Red-Issues/blob/main/LICENSE).

src/index.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@
44

55
identifyTimelineMerge();
66

7-
// run for 30s in case the site hasn't loaded yet
8-
let loop = 0;
9-
const interval = setInterval(() => {
10-
identifyTimelineMerge();
11-
if(loop++ >= 30)
12-
clearInterval(this);
13-
}, 1000);
7+
const interval = setInterval(identifyTimelineMerge, 1000);
148

159
// find merge
1610
function identifyTimelineMerge(){
1711
for(let element of document.getElementsByClassName("TimelineItem-badge color-fg-on-emphasis color-bg-done-emphasis"))
1812
if(element.getElementsByTagName("svg")[0].classList.contains("octicon-git-merge"))
19-
element.classList.add("rcie-merge");
13+
element.classList.add("rissue-merge");
2014
}

src/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"manifest_version": 2,
33

4-
"name": "GitHub Red Closed Issues",
4+
"name": "GitHub Red Issues",
55
"author": "Katsute",
66
"description": "Revert closed GitHub issues from purple back to red.",
7-
"version": "1.4",
8-
"homepage_url": "https://github.com/Katsute/GitHub-Red-Issues-Extension",
7+
"version": "1.5",
8+
"homepage_url": "https://github.com/Katsute/GitHub-Red-Issues",
99

1010
"permissions": ["tabs"],
1111
"content_scripts": [{

src/style.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
/* Copyright (C) 2021 Katsute <https://github.com/Katsute> */
22

3-
:root { /* this part provided by kidonng <https://github.com/kidonng> */
4-
--rcie-pull-merged : var(--color-done-emphasis, #8957e5);
5-
--rcie-issue-closed: var(--color-danger-fg, #F85149);
6-
--rcie-white : var(--color-fg-on-emphasis, #F0F6Fc);
3+
:root {
4+
--rissue-pull-merged : var(--color-done-emphasis, #8957e5);
5+
--rissue-issue-closed: var(--color-danger-fg, #F85149);
6+
--rissue-white : var(--color-fg-on-emphasis, #F0F6Fc);
77
}
88

99
/* issue icon */
1010

1111
svg.octicon-issue-closed.closed,
1212
svg.octicon-issue-closed.color-fg-done {
13-
color: var(--rcie-issue-closed) !important;
13+
color: var(--rissue-issue-closed) !important;
1414
}
1515

1616
/* issue badge */
1717

1818
span[title="Status: Closed"] {
19-
background-color: var(--rcie-issue-closed) !important;
19+
background-color: var(--rissue-issue-closed) !important;
2020
}
2121

2222
span[title="Status: Closed"] > svg.octicon-issue-closed {
23-
color: var(--rcie-white) !important;
23+
color: var(--rissue-white) !important;
2424
}
2525

2626
/* timeline */
2727

28-
:not(.rcie-merge).TimelineItem-badge.color-bg-done-emphasis {
29-
background-color: var(--rcie-issue-closed) !important;
28+
:not(.rissue-merge).TimelineItem-badge.color-bg-done-emphasis {
29+
background-color: var(--rissue-issue-closed) !important;
3030
}
3131

32-
:not(.rcie-merge).TimelineItem-badge.color-bg-done-emphasis > svg.octicon-issue-closed {
33-
color: var(--rcie-white) !important;
32+
:not(.rissue-merge).TimelineItem-badge.color-bg-done-emphasis > svg.octicon-issue-closed {
33+
color: var(--rissue-white) !important;
3434
}
3535

3636
/* projects beta */
3737

3838
svg[aria-label="Closed issue"] {
39-
color: var(--rcie-issue-closed) !important;
39+
color: var(--rissue-issue-closed) !important;
4040
}

0 commit comments

Comments
 (0)