-
Notifications
You must be signed in to change notification settings - Fork 1
IRWA website redesign #9
base: main
Are you sure you want to change the base?
Changes from all commits
87a1ea5
7b85ec1
a99046a
89bb73c
c02ec5d
52a22fc
e5afd99
3a5a17f
ff09ba5
0422d69
fa1fc6b
b685cbe
82b924d
db3fbb9
e34348d
458f996
26c7d36
27fe402
00be5c6
f16e22c
02cf079
162a187
a945017
76d696f
aa62471
03ce454
3847432
4135ca9
23d4992
9408f9e
42ced10
94c9a42
0029c07
f2baa07
1c2f3bd
670c152
8541f0e
37d7edd
1c95d5a
2a9e2cf
d99c91f
81727fc
986faa8
9292215
77485c1
cc4be91
3da7ef5
90f7e89
5677b2d
248a5cf
bcc1520
1741b88
e93412f
b4a33f7
e48424e
bace053
e2960ad
d0fbb0e
01e5217
0a055f9
8468028
511b608
a87ef9e
2eb2365
e3b1611
1d6c08d
50bb976
23236c0
36c765b
be746c5
ea4f805
8c788fe
7dfc46a
4fb9c26
3b0a5f8
fd29e29
8daccff
26da97c
87b4238
cef5cd6
9c5a4e6
e695ae4
45ffd6f
2616c6a
df584cf
00a7c35
b0b0c66
57eabcd
45f5f4c
792f28c
31dd455
078a044
aed7758
4c78453
ca84370
39b1c4b
d7b5bff
486cfcd
0132e15
7ba0bbb
399c6a4
3fe78db
956cade
6dbc411
2fdb5ee
b4375f2
0094c40
2d3efc6
8fae5b3
3d497d2
75fdc38
5ef3126
91e12b6
30ddd9f
4d046a1
fc45f70
cfcc05d
b39056c
c2a3be1
098be12
11964f9
ae8bb0d
c9b0c5c
19f6a79
95f8d88
688e8e8
147249e
f21b57f
7c837c2
bac7264
416ff57
aed31d5
53eb953
5bddd51
8c8db5d
c7c372b
487a868
296114f
e23ce68
73686c0
c6fabc4
8d86727
3fa2b28
fb637a2
991a1c8
2efd840
4d12823
0342644
1b4454d
d2cb135
ce0c6b4
cd6bb3e
bfd1917
2b54b48
32bf072
ab5c6ea
9dba520
9126898
8bb5aee
cce58a6
b73c0be
81b3cbc
47b7911
9b1eb9c
2592578
50aef74
8148886
8417390
2f42e60
bd7072f
b114ae8
5a1b13e
6838a43
a51e89f
059b7a5
6a876a5
7a5450f
641c06d
5739685
82f5dbd
3a85a26
c311e4c
80d6b60
580bbd1
0d745e1
5fabf3c
0859662
df7d87c
4d7849a
f3992ec
e7a0eba
9d99f63
5f65b54
a56b4a8
7e44f95
85396c9
45e31f1
9e14816
0cb4e68
30d3bff
c8b5875
8dcef7f
704b40a
524084f
a06fcaf
669103b
d87d126
3eab4c2
95b5fa4
3b0fe7a
f69c3da
c20ba32
184126f
1bf1451
0eac2cb
092ff26
4fa9187
7bb7923
f11e60c
9c2eb07
7f13267
470c452
8d9172b
bb3cf09
bcfe9f2
c90a971
4b9f8ce
0779db9
cd27bd9
7bd26c8
2de80d7
50f39e9
b34326e
20e96fd
cbcb30a
b64e0ab
ee2dded
f1543a8
d287ee9
3cc4e46
bedc6eb
91efdec
b0cc455
67d8f10
33c61b5
7a4acdb
d7dd628
bcbb9a1
cf85f31
6857562
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| name: Request Wiki Addition | ||
| description: Request to have your wiki added to the IRWA website. | ||
| title: "[New Wiki] <Replace with your wiki name> " | ||
| labels: ["wiki addition request"] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Welcome! Please only request wikis to be added that are part of the Indie Roblox Wiki Alliance (IRWA). To join the alliance, please see [this page](https://indierobloxwikis.org/joining/) for more information. | ||
| Note that a bureaucrat on the wiki must either submit this request or confirm it for it to be handled. You should only continue with this form if you have applied and have been accepted via our Discord Server. | ||
|
|
||
| Here is a preview of how a listing looks like: <img width="800" alt="Image" src="https://github.com/user-attachments/assets/4c786d63-e44a-411b-be75-cfbd0a5bc1ed" /> | ||
|
|
||
| - type: input | ||
| id: wiki-url | ||
| attributes: | ||
| label: Wiki URL | ||
| description: The URL to your wiki. | ||
| placeholder: https://dovedale.wiki | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: input | ||
| id: wiki-name | ||
| attributes: | ||
| label: Wiki Name | ||
| description: Your chosen display name for the wiki | ||
| placeholder: Dovedale Railway Wiki | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: wiki-logo | ||
| attributes: | ||
| label: Wiki Logo | ||
| description: | | ||
| Please attach your wiki logo image here. The image will be displayed as **400x400px**. | ||
| You can drag and drop the file into this text box, or click the attachment icon to upload it. | ||
| placeholder: Drag and drop your chosen logo image here... | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: checkboxes | ||
| id: social-links | ||
| attributes: | ||
| label: Wiki Social Links | ||
| description: Your wiki listing includes some social links. Please select what you would like to add. | ||
| options: | ||
| - label: Wiki Discord | ||
| - label: Game/Community Discord | ||
| - label: Twitter / X | ||
| - label: Ko-fi/Patreon/Donation Page (Only for self-hosted sites to cover costs) | ||
| - label: Other (please describe in the additional info field below) | ||
|
|
||
| - type: textarea | ||
| id: social-links-urls | ||
| attributes: | ||
| label: Social Link URLs | ||
| description: Provide the URLs for each social link you selected above. One per line. | ||
| placeholder: | | ||
| Wiki Discord: https://discord.gg/hmqCYg4P23 | ||
| Game Discord: https://discord.gg/dovedale | ||
| Twitter: https://twitter.com/DovedaleRailway | ||
| Ko-fi: https://ko-fi.com/Dovedale | ||
|
|
||
| - type: textarea | ||
| id: wiki-staff | ||
| attributes: | ||
| label: Wiki Staff | ||
| description: Let us know the names of your staff team. | ||
| placeholder: Billie, Jaiden, Uchu, Bonnie | ||
|
|
||
| - type: textarea | ||
| id: wiki-description | ||
| attributes: | ||
| label: Wiki Description | ||
| description: Please give a short and succinct description of your wiki for others. We may edit this for clarity or to fix grammar. | ||
| placeholder: The official and independent community focused wiki site for Dovedale Railway that works with developers to provide the best in class information for the game. | ||
|
|
||
|
|
||
| - type: checkboxes | ||
| id: captchas | ||
| attributes: | ||
| label: Before you submit... | ||
| description: Please complete the following declaration | ||
| options: | ||
| - label: I confirm my wiki that I am submitting is already an existing approved IRWA member, and all the information I am submitting is true and accurate. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,6 @@ name: Compile LESS to CSS | |
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - patch-1 | ||
| paths: | ||
| - '**/*.less' | ||
| workflow_dispatch: | ||
|
|
@@ -15,6 +12,7 @@ concurrency: | |
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
@@ -35,21 +33,28 @@ jobs: | |
| - name: Compile all LESS to CSS | ||
| run: | | ||
| # Find all .less files, excluding those starting with _ (common for partials) | ||
| # and also excluding mixins.less which is a known partial here | ||
| find . -name "*.less" ! -name "_*" ! -name "mixins.less" | while read -r file; do | ||
| find . -name "*.less" ! -name "_*" | while read -r file; do | ||
| css_file="${file%.less}.css" | ||
| echo "Compiling $file to $css_file" | ||
| lessc --math=strict "$file" "$css_file" | ||
| done | ||
|
|
||
| - name: Commit and push CSS changes | ||
| run: | | ||
| git config --local user.email "action@github.com" | ||
| git config --local user.name "GitHub Action" | ||
| git add "**/*.css" | ||
| if git diff --cached --quiet; then | ||
| echo "No changes to commit" | ||
| else | ||
| git commit -m "Auto-compile LESS to CSS" | ||
| git push | ||
| fi | ||
| - name: Create Pull Request | ||
| id: cpr | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| commit-message: "style: compile LESS to CSS" | ||
| committer: GitHub <noreply@github.com> | ||
| author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | ||
| branch: patch/compile-less/${{ github.ref_name }} | ||
| base: ${{ github.ref_name }} | ||
| title: "Update Compiled CSS" | ||
| body: "This is an automated PR to compile LESS to CSS." | ||
| delete-branch: true | ||
|
|
||
| - name: Auto-merge PR | ||
| if: steps.cpr.outputs.pull-request-operation == 'created' | ||
| run: gh pr merge "${{ steps.cpr.outputs.pull-request-number }}" --squash --admin | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
Comment on lines
+56
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: The gh pr merge --admin flag in GitHub CLI allows using administrator privileges to merge a pull request that does not meet branch protection requirements, such as bypassing required approvals or status checks. It also bypasses merge queues to merge directly. To use this in GitHub Actions with GITHUB_TOKEN (set as GH_TOKEN environment variable): 1. Grant sufficient permissions in the workflow YAML at job or workflow level: permissions: contents: write pull-requests: write checks: write # Often needed for status checks issues: write # Sometimes required 2. Example step: - name: Merge PR run: gh pr merge ${{ github.event.pull_request.number }} --admin --squash --delete-branch env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} Caveats: - Works if the authenticating actor (github-actions[bot] via GITHUB_TOKEN) has admin rights on the repo/branch. - May fail if branch protections explicitly block admins, merge queue requires "Require review from Code Owners", or rulesets override. - For merge queue bypass, ensure no "Do not allow bypassing the above settings" is checked. - GITHUB_TOKEN has repo-scoped permissions; for org-level admin, may need PAT or GitHub App token. - Test with contents: write and pull-requests: write minimum; add others if errors occur like "not authorized to push". Citations:
🏁 Script executed: cat -n .github/workflows/compile-less.ymlRepository: whostacking/irwa-website Length of output: 2204 Remove The workflow defines Proposed fix - name: Auto-merge PR
if: steps.cpr.outputs.pull-request-operation == 'created'
- run: gh pr merge "${{ steps.cpr.outputs.pull-request-number }}" --merge --admin
+ run: gh pr merge "${{ steps.cpr.outputs.pull-request-number }}" --merge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Deploy Jekyll site to Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["patch-1"] | ||
| workflow_dispatch: | ||
|
whostacking marked this conversation as resolved.
|
||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '3.2' | ||
| bundler-cache: true | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
| - name: Build with Jekyll | ||
| run: bundle exec jekyll build | ||
| env: | ||
| JEKYLL_ENV: production | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
|
|
||
| deploy: | ||
| environment: | ||
| name: Production | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Minify JS | ||
| on: | ||
| push: | ||
| paths: | ||
| - 'assets/js/scripts.js' # Only trigger when source JS changes | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| minify-and-sync: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install Minifier | ||
| run: npm install -g terser | ||
|
|
||
| - name: Minify JavaScript | ||
| run: | | ||
| # Minify the JS asset used by the site | ||
| terser assets/js/scripts.js -o assets/js/scripts.min.js | ||
|
|
||
| - name: Create Pull Request | ||
| id: cpr | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| commit-message: "style: minify scripts.js" | ||
| committer: GitHub <noreply@github.com> | ||
| author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | ||
| branch: patch/sync-scripts-js/${{ github.ref_name }} | ||
| base: ${{ github.ref_name }} | ||
| title: "Update Minified scripts.js" | ||
| body: "Automated PR to update scripts.min.js" | ||
| delete-branch: true | ||
|
whostacking marked this conversation as resolved.
|
||
|
|
||
| - name: Auto-merge PR | ||
| if: steps.cpr.outputs.pull-request-operation == 'created' | ||
| run: gh pr merge "${{ steps.cpr.outputs.pull-request-number }}" --squash --admin | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
whostacking marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "githubPullRequests.ignoredPullRequestBranches": [ | ||
| "patch-1" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Contact: security@enews.link | ||
| Expires: 2026-01-01T00:00:00.000Z | ||
| Expires: 2027-01-01T00:00:00.000Z | ||
| Preferred-Languages: en, zh | ||
| Canonical: https://indierobloxwikis.org/security.txt | ||
| Instructions: Please do not post the vulnerability publicly by using our wikis servers or bug trackers for that. Rather, please read mail us at the address above, and we will get back to you shortly. |
Uh oh!
There was an error while loading. Please reload this page.