You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-28Lines changed: 12 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,12 @@ Automatically label issues with their duration and color-code based on configura
9
9
| Parameter | Description | Required | Default |
10
10
|-----------|-------------|----------|---------|
11
11
|`github-token`| GitHub token for authentication | Yes | N/A |
12
-
|`short_threshold`| Number of days considered short duration | No | '3' |
13
-
|`medium_threshold`| Number of days considered medium duration | No | '10' |
12
+
|`short_threshold`| Number of days considered short duration | No | '7' |
13
+
|`medium_threshold`| Number of days considered medium duration | No | '30' |
14
14
|`short_color`| Color for short duration labels (hex without #) | No | '00FF00' |
15
15
|`medium_color`| Color for medium duration labels (hex without #) | No | 'FFA500' |
16
16
|`long_color`| Color for long duration labels (hex without #) | No | 'FF0000' |
17
+
|`thresholded_update`| Update issue duration only when a threshold is met | No | 'true' |
17
18
18
19
## Description
19
20
@@ -22,9 +23,11 @@ The Issue Duration Labeler action scans all issues in your repository (both open
22
23
- For closed issues: from creation date to closed date
23
24
24
25
Labels are color-coded based on configurable thresholds:
25
-
- Short duration (default: ≤3 days): Green
26
-
- Medium duration (default: 4-10 days): Orange
27
-
- Long duration (default: >10 days): Red
26
+
- Short duration (default: 1-7 days): Green
27
+
- Medium duration (default: 8-30 days): Orange
28
+
- Long duration (default: >1 month): Red
29
+
30
+
When `thresholded_update` is set to true (default), labels are only updated when a threshold is met. This reduces unnecessary label changes for minor duration updates. If its set to false all issues will be updated with the current duration every day.
28
31
29
32
This action can be run on a schedule or triggered manually, allowing you to keep your issues consistently labeled with up-to-date duration information.
30
33
@@ -65,31 +68,12 @@ jobs:
65
68
- uses: mireklzicar/issue-duration@main
66
69
with:
67
70
github-token: ${{ secrets.GITHUB_TOKEN }}
68
-
short_threshold: '5'
69
-
medium_threshold: '15'
71
+
short_threshold: '7'
72
+
medium_threshold: '30'
70
73
short_color: '0E8A16'
71
74
medium_color: 'FFA500'
72
75
long_color: 'B60205'
76
+
thresholded_update: 'true'
73
77
```
74
78
75
-
---
76
-
77
-
## Contributing Guidelines
78
-
79
-
We welcome contributions to the Issue Duration Labeler! Here's how you can help:
80
-
81
-
1. **Fork the repository** and create your branch from `main`.
82
-
2. **Make your changes** and test them thoroughly.
83
-
3. **Add or update tests** if necessary.
84
-
4. **Ensure your code lints** without errors.
85
-
5. **Create a pull request** with a clear title and description.
86
-
87
-
### Reporting Bugs
88
-
89
-
If you find a bug, please open an issue with a clear title and description. Include as much relevant information as possible and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
90
-
91
-
### Suggesting Enhancements
92
-
93
-
For feature requests, open an issue and outline the feature you'd like to see added. Explain why this feature would be useful to users of the action.
94
-
95
-
Thank you for contributing to Issue Duration Labeler!
0 commit comments