Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
.git
.jj
.claude
.env
ref
bin
.settings
.classpath
.project
.github
.vscode
build
Expand All @@ -14,7 +22,6 @@ secrets
.gitignore
LICENSE
README.md
install-util.sh
install.sh
CHANGELOG
docker-compose.yml.example
docker-compose.yml
docker-compose.example.yml
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Bug report
description: Create a report to help us improve
title: "[BUG]: "
labels: ['Type: Bug', 'Status: Needs Triage']
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an open or closed issue already exists for the feature you are requesting. If a request exists and is closed note that it may only be fixed in an unstable branch.
options:
- label: I have searched the existing open and closed issues
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: To Reproduce
description: |
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.
validations:
required: false
- type: input
attributes:
label: OS
description: e.g. Linux
validations:
required: false
- type: input
attributes:
label: Version
description: e.g. 22
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: Add any other context about the problem here.
validations:
required: false
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Feature Request
description: Suggest an idea for this project
title: "[FEAT]: "
labels: ['Type: Feature', 'Status: Needs Triage']
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an open or closed issue already exists for the feature you are requesting. If a request exists and is closed note that it may only be fixed in an unstable branch.
options:
- label: I have searched the existing open and closed issues
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe
description: A clear and concise description of what the problem is.
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Mockups? Anything that will give us more context about the feature you are encountering!

Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: true
17 changes: 17 additions & 0 deletions .github/workflows/integration-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Integration Test Dev Branch with Server

on:
push:
branches:
- dev
pull_request:

jobs:
integration-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: MediaGarrd/MediaGarrd-Stack-Testing@main
with:
server-branch: dev
client-branch: ${{ github.head_ref || github.ref_name }}
16 changes: 16 additions & 0 deletions .github/workflows/integration-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Integration Test Main Branch with Server

on:
push:
branches:
- main

jobs:
integration-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: MediaGarrd/MediaGarrd-Stack-Testing@main
with:
server-branch: main
client-branch: main
55 changes: 55 additions & 0 deletions .github/workflows/issue_handling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Handle duplicate status label

on:
issues:
types: [labeled, unlabeled]

jobs:
correct-status-labels:
runs-on: ubuntu-latest
steps:
- name: Ensure one Status label per issue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.MEDIAGARRD_CLIENT_ACTIONS_TOKEN }}
script: |
const issueNumber = context.payload.issue.number;
const statusLabelsToCheck = [
"Status: Needs Triage",
"Status: Approved",
"Status: Waiting on Child Issues",
"Status: Waiting on Server Update"
];

const existingLabels = context.payload.issue.labels.map(label => label.name);
const existingStatusLabels = existingLabels.filter(label => statusLabelsToCheck.includes(label));
const addedLabel = context.payload.action === "labeled" ? context.payload.label.name : null;

let keep = null;
if (statusLabelsToCheck.includes(addedLabel)) {
keep = addedLabel;
} else if (existingStatusLabels.length == 1) {
keep = existingStatusLabels[0];
}

for (const label of existingStatusLabels.filter(label => label !== keep)) {
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
name: label
});
console.log(`Removed label "${label}" from issue #${issueNumber}`);
}

if (keep) {
console.log(`Status label: "${keep}" is set correctly`);
} else {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
labels: ["Status: Needs Triage"]
});
}

46 changes: 46 additions & 0 deletions .github/workflows/pr_handling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Require approved issue

on:
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
require-approved-issue:
if: github.head_ref != 'dev'
runs-on: ubuntu-latest
permissions:
issues: read
pull-requests: read
steps:
- name: Ensure every linked issue is approved
uses: actions/github-script@v7
with:
script: |
const { repository } = await github.graphql(`
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
closingIssuesReferences(first: 25) {
nodes { number labels(first: 25) { nodes { name } } }
}
}
}
}`, {
owner: context.repo.owner,
repo: context.repo.repo,
number: context.payload.pull_request.number
});

const issues = repository.pullRequest.closingIssuesReferences.nodes;
if (issues.length === 0) {
core.setFailed("Link the approved issue this pull request resolves, e.g. \"Closes #12\" in the description");
return;
}

const unapproved = issues.filter(issue => !issue.labels.nodes.some(label => label.name === "Status: Approved"));
if (unapproved.length > 0) {
core.setFailed(`Linked issues without "Status: Approved": ${unapproved.map(issue => `#${issue.number}`).join(", ")}`);
return;
}

console.log(`All linked issues are approved: ${issues.map(issue => `#${issue.number}`).join(", ")}`);
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.gradle
.settings/
build
gradle/
**/.settings/
**/.project
**/.classpath
Expand Down
Loading
Loading