Skip to content

Commit 5e2bfbb

Browse files
Merge pull request #62 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 6608ca8 + de30b64 commit 5e2bfbb

447 files changed

Lines changed: 19243 additions & 8493 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/agents/CIPP-Alert-Agent.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: CIPP Frontend Alert Registrar
3+
description: >
4+
Adds new alert entries to src/data/alerts.json in the CIPP frontend.
5+
The agent must never modify any other file or perform any other change.
6+
---
7+
8+
# CIPP Frontend Alert Registrar
9+
10+
## Mission
11+
12+
You are a **frontend alert registrar** responsible for updating the `src/data/alerts.json` file to include new alerts.
13+
14+
Your role is **strictly limited** to adding a new JSON entry describing the alert’s metadata.
15+
You do not touch or inspect any other part of the codebase.
16+
17+
---
18+
19+
## Scope of Work
20+
21+
This agent is used when a new alert must be surfaced to the frontend — for example, after a new backend `Get-CIPPAlert*.ps1` alert has been added.
22+
23+
Tasks include:
24+
25+
- Opening `src/data/alerts.json`
26+
- Appending one new JSON object describing the new alert
27+
- Preserving JSON structure, indentation, and trailing commas exactly as in the existing file
28+
- Validating that the resulting JSON is syntactically correct
29+
30+
31+
## Alert Format
32+
33+
Each alert entry in `src/data/alerts.json` is a JSON object with the following structure:
34+
35+
```json
36+
{
37+
"name": "<alertName>",
38+
"label": "A nice label for the alert",
39+
"requiresInput": true,
40+
"inputType": "switch",
41+
"inputLabel": "Exclude disabled users?",
42+
"inputName": "InactiveLicensedUsersExcludeDisabled",
43+
"recommendedRunInterval": "1d"
44+
}
45+
```
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: CIPP Frontend Alert Registrar
3+
description: >
4+
Adds new alert entries to src/data/alerts.json in the CIPP frontend.
5+
The agent must never modify any other file or perform any other change.
6+
---
7+
8+
# CIPP Frontend Alert Registrar
9+
10+
## Mission
11+
12+
You are a **frontend alert registrar** responsible for updating the `src/data/alerts.json` file to include new alerts.
13+
14+
Your role is **strictly limited** to adding a new JSON entry describing the alert’s metadata.
15+
You do not touch or inspect any other part of the codebase.
16+
17+
---
18+
19+
## Scope of Work
20+
21+
This agent is used when a new alert must be surfaced to the frontend — for example, after a new backend `Get-CIPPAlert*.ps1` alert has been added.
22+
23+
Tasks include:
24+
25+
- Opening `src/data/alerts.json`
26+
- Appending one new JSON object describing the new alert
27+
- Preserving JSON structure, indentation, and trailing commas exactly as in the existing file
28+
- Validating that the resulting JSON is syntactically correct
29+
30+
31+
## Alert Format
32+
33+
Each alert entry in `src/data/alerts.json` is a JSON object with the following structure:
34+
35+
```json
36+
{
37+
"name": "<alertName>",
38+
"label": "A nice label for the alert",
39+
"requiresInput": true,
40+
"inputType": "switch",
41+
"inputLabel": "Exclude disabled users?",
42+
"inputName": "InactiveLicensedUsersExcludeDisabled",
43+
"recommendedRunInterval": "1d"
44+
}
45+
```

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
target-branch: "dev"
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
target-branch: "dev"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
name: 'Assign Issue to Volunteer'
3-
on: [issue_comment] # yamllint disable-line rule:truthy
2+
name: "Assign Issue to Volunteer"
3+
on: [issue_comment] # yamllint disable-line rule:truthy
44
jobs:
55
build:
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-slim
77
steps:
88
- uses: bhermann/issue-volunteer@v0.1.12
99
with:
10-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
10+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/Check_for_Version_Update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build:
99
if: github.repository_owner == 'KelvinTegelaar'
1010
name: "Check for Version Update"
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-slim
1212
steps:
1313
- name: Check for Changed Files
1414
uses: brettcannon/check-for-changed-files@v1.1.0
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
---
2-
name: 'Close stale issues and PRs'
2+
name: "Close stale issues"
33
on:
44
schedule:
5-
- cron: '30 1 * * *'
5+
- cron: "30 1 * * *"
66
jobs:
77
stale:
88
if: github.repository_owner == 'KelvinTegelaar'
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-slim
1010
steps:
1111
- uses: actions/stale@v4
1212
with:
13-
stale-issue-message: 'This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.'
14-
close-issue-message: 'This issue was closed because it has been stalled for 14 days with no activity.'
15-
stale-issue-label: 'no-activity'
16-
exempt-issue-labels: 'planned,bug,roadmap'
13+
stale-issue-message: "This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself."
14+
close-issue-message: "This issue was closed because it has been stalled for 14 days with no activity."
15+
stale-issue-label: "no-activity"
16+
exempt-issue-labels: "planned,bug,roadmap"
1717
days-before-stale: 9
1818
days-before-close: 5
19+
days-before-pr-stale: -1
20+
days-before-pr-close: -1
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
name: 'CodeQL'
2+
name: "CodeQL"
33
on:
44
pull_request:
55
branches: [master, main, dev, react]
66
schedule:
7-
- cron: '26 17 * * 0'
7+
- cron: "26 17 * * 0"
88
jobs:
99
analyze:
1010
if: github.repository_owner == 'KelvinTegelaar'
@@ -17,15 +17,15 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
language: ['javascript']
20+
language: ["javascript"]
2121
steps:
2222
- name: Checkout Repository
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v6
2424
- name: Initialize CodeQL
25-
uses: github/codeql-action/init@v1
25+
uses: github/codeql-action/init@v4
2626
with:
2727
languages: ${{ matrix.language }}
2828
- name: Autobuild
29-
uses: github/codeql-action/autobuild@v1
29+
uses: github/codeql-action/autobuild@v4
3030
- name: Perform CodeQL Analysis
31-
uses: github/codeql-action/analyze@v1
31+
uses: github/codeql-action/analyze@v4

.github/workflows/Comment_on_Issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
add-comment_bug:
99
if: github.repository_owner == 'KelvinTegelaar' && github.event.label.name == 'unconfirmed-by-user'
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-slim
1111
permissions:
1212
issues: write
1313
steps:
@@ -18,5 +18,5 @@ jobs:
1818
body: |
1919
Thank you for reporting a potential bug. If you would like to work on this bug, please comment:
2020
> I would like to work on this please!
21-
21+
2222
Thank you for helping us maintain the project!
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Detect Duplicate Issues
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
9+
permissions:
10+
models: read
11+
issues: write
12+
13+
jobs:
14+
detect-duplicates:
15+
if: github.repository_owner == 'KelvinTegelaar' && github.event.issue.user.type != 'Bot'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Calculate lookback date
19+
id: lookback
20+
run: echo "since=$(date -u -d '60 days ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_OUTPUT"
21+
- uses: pelikhan/action-genai-issue-dedup@v0
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
since: ${{ steps.lookback.outputs.since }}

.github/workflows/Label_Issues.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ on:
77
jobs:
88
label_issues_bugs:
99
if: github.repository_owner == 'KelvinTegelaar' && contains(github.event.issue.title, 'Bug')
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-slim
1111
permissions:
1212
issues: write
1313
steps:
1414
- name: Label Issues
1515
uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414
1616
with:
17-
add-labels: 'not-assigned'
17+
add-labels: "not-assigned"
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
label_issues_frs:
2020
if: github.repository_owner == 'KelvinTegelaar' && contains(github.event.issue.title, 'Feature')
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-slim
2222
permissions:
2323
issues: write
2424
steps:
2525
- name: Label Issues
2626
uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414
2727
with:
28-
add-labels: 'enhancement, not-assigned'
28+
add-labels: "enhancement, not-assigned"
2929
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)