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
| `days_ahead` | Number of days ahead to check for expiring flags | No | `7` |
162
191
| `include_past_due` | Include flags that are past their expiry date | No | `true` |
163
-
| `custom_property_key` | Name of the custom property containing the expiry date | No | `flag.expiry.date` |
192
+
| `custom_property_name` | Name of the custom property containing the expiry date | No | `flag.expiry.date` |
193
+
| `create_issues` | Create GitHub issues for expired flags | No | `false` |
194
+
| `github_token` | GitHub token for creating issues | No | `${{ secrets.GITHUB_TOKEN }}` |
164
195
165
196
## Outputs
166
197
@@ -208,6 +239,39 @@ The action supports multiple date formats:
208
239
- `YYYY-MM-DD`(e.g., `2024-03-15`)
209
240
- `YYYY/MM/DD`(e.g., `2024/03/15`)
210
241
242
+
## GitHub Issue Creation
243
+
244
+
The action can automatically create GitHub issues for expired flags using the `create_issues: 'true'` option.
245
+
246
+
### Issue Template
247
+
248
+
The action looks for an `ISSUE_TEMPLATE.md` file in your repository root. If not found, it uses a built-in template. You can customize the template with these placeholders:
249
+
250
+
- `{{flagName}}`- The display name of the flag
251
+
- `{{flagKey}}`- The flag key
252
+
- `{{expiryDate}}`- The expiry date
253
+
- `{{daysOverdue}}`- Number of days past expiry
254
+
- `{{projectKey}}`- LaunchDarkly project key
255
+
- `{{auditDate}}`- Date the audit was run
256
+
- `{{repoOwner}}`- Repository owner
257
+
- `{{repoName}}`- Repository name
258
+
259
+
### Issue Features
260
+
261
+
- **Duplicate Prevention**: Checks for existing open issues before creating new ones
262
+
- **Auto-labeling**: Issues are labeled with `launchdarkly`, `expired-flag`, and `task`
263
+
- **Task Checklist**: Includes cleanup steps as checkboxes
264
+
- **Context Information**: Provides all necessary details for flag cleanup
0 commit comments