Skip to content

Commit

Permalink
Merge branch 'hackclub:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaisinh authored Jan 27, 2025
2 parents 8aefb7c + 35d5b80 commit 75d3b2e
Show file tree
Hide file tree
Showing 30 changed files with 1,635 additions and 1,390 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/comment-message.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Hey!! awesome job on this asylum submission. Can't wait to see you build it.

This is just a friendly reminder to make sure your PR follows the example format, including **directory structure**:

- For weather stations: [Example here](https://github.com/hackclub/asylum/tree/main/designs/weather_stations/dari_awesome_example)
- For NFC tags: [Example here](https://github.com/hackclub/asylum/tree/main/designs/nfc_keytags/hack_club_keytag)

The most important part is that you have a README.md file documenting your design. Make sure there are images of your design in it! Otherwise it will *not* be accepted.

This *is* an automated message, so you can ignore it if you have everything already!

Send a message in #asylum once you've made the changes - you'll get your PR reviewed faster
18 changes: 18 additions & 0 deletions .github/workflows/comment-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR Auto Comment
on:
workflow_dispatch: # Allows you to trigger the workflow manually
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Comment on all open PRs
run: |
MESSAGE=$(cat .github/workflows/comment-message.md)
PRS=$(gh pr list --state open --json number -q '.[].number')
for PR in $PRS; do
echo "$MESSAGE" | gh pr comment $PR --body-file -
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/delete-comments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Delete PR Comments
on:
workflow_dispatch:

jobs:
delete-comments:
runs-on: ubuntu-latest
steps:
- name: Delete comments
run: |
PRS=$(gh pr list --state open --json number -q '.[].number')
for PR in $PRS; do
# Get all comments on the PR
COMMENTS=$(gh api /repos/${{ github.repository }}/issues/$PR/comments \
--jq '.[] | select(.body | contains("Can't wait to you build it")) | .id')
# Delete each matching comment
for COMMENT_ID in $COMMENTS; do
gh api --method DELETE /repos/${{ github.repository }}/issues/comments/$COMMENT_ID
echo "Deleted comment $COMMENT_ID from PR #$PR"
done
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
*/*/*-backups
2 changes: 2 additions & 0 deletions designs/gameboy/gameboy.kicad_pcb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(kicad_pcb (version 20241129) (generator "pcbnew") (generator_version "8.99")
)
113 changes: 113 additions & 0 deletions designs/gameboy/gameboy.kicad_prl
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"board": {
"active_layer": 0,
"active_layer_preset": "",
"auto_track_width": true,
"hidden_netclasses": [],
"hidden_nets": [],
"high_contrast_mode": 0,
"net_color_mode": 1,
"opacity": {
"images": 0.6,
"pads": 1.0,
"shapes": 1.0,
"tracks": 1.0,
"vias": 1.0,
"zones": 0.6
},
"selection_filter": {
"dimensions": true,
"footprints": true,
"graphics": true,
"keepouts": true,
"lockedItems": false,
"otherItems": true,
"pads": true,
"text": true,
"tracks": true,
"vias": true,
"zones": true
},
"visible_items": [
0,
1,
2,
3,
4,
5,
8,
11,
12,
13,
15,
16,
17,
18,
19,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
32,
33,
34,
35,
36,
39,
40,
41,
42,
43
],
"visible_layers": "ffffffff_ffffffff",
"zone_display_mode": 0
},
"git": {
"repo_password": "",
"repo_type": "",
"repo_username": "",
"ssh_key": ""
},
"meta": {
"filename": "gameboy.kicad_prl",
"version": 4
},
"net_inspector_panel": {
"col_hidden": [],
"col_order": [],
"col_widths": [],
"custom_group_rules": [],
"expanded_rows": [],
"filter_by_net_name": true,
"filter_by_netclass": true,
"filter_text": "",
"group_by_constraint": false,
"group_by_netclass": false,
"show_unconnected_nets": false,
"show_zero_pad_nets": false,
"sort_ascending": true,
"sorting_column": -1
},
"project": {
"files": []
},
"schematic": {
"selection_filter": {
"graphics": true,
"images": true,
"labels": true,
"lockedItems": false,
"otherItems": true,
"pins": true,
"symbols": true,
"text": true,
"wires": true
}
}
}
Loading

0 comments on commit 75d3b2e

Please sign in to comment.