Skip to content

Commit 649ba2d

Browse files
committed
Merge develop into master - Package renaming and QTI 3.0 foundation
2 parents a8305fb + 7098ec3 commit 649ba2d

884 files changed

Lines changed: 10168 additions & 1855 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.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "public",
88
"baseBranch": "master",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["@acme/likert-scale-plugin", "@pie-qti/qti2-example", "@pie-qti/transform-cli"]
10+
"ignore": ["@acme/likert-scale-plugin", "@pie-qti/example", "@pie-qti/transform-cli"]
1111
}

.github/GITHUB_PAGES_SETUP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ adapter: adapter({
227227

228228
For offline support, add a service worker:
229229
```bash
230-
cd packages/qti2-example
230+
cd packages/example
231231
bun add -D @sveltejs/service-worker
232232
```
233233

@@ -252,6 +252,6 @@ For private repos, you need a paid plan.
252252
## Related Documentation
253253

254254
- [.github/workflows/deploy-pages.yml](.github/workflows/deploy-pages.yml) - Deployment workflow
255-
- [packages/qti2-example/svelte.config.js](../packages/qti2-example/svelte.config.js) - SvelteKit config
255+
- [packages/example/svelte.config.js](../packages/example/svelte.config.js) - SvelteKit config
256256
- [SvelteKit Static Adapter](https://kit.svelte.dev/docs/adapter-static) - Official docs
257257
- [GitHub Pages](https://docs.github.com/en/pages) - Official docs

.github/workflows/deploy-pages.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,99 @@ jobs:
8282
- name: Deploy to GitHub Pages
8383
id: deployment
8484
uses: actions/deploy-pages@v4
85+
86+
- name: Notify Slack on Success
87+
if: success()
88+
uses: slackapi/slack-github-action@v1.27.0
89+
with:
90+
payload: |
91+
{
92+
"text": "✅ PIE QTI Docs Deployment Successful",
93+
"blocks": [
94+
{
95+
"type": "header",
96+
"text": {
97+
"type": "plain_text",
98+
"text": "✅ Docs Site Deployment Successful"
99+
}
100+
},
101+
{
102+
"type": "section",
103+
"fields": [
104+
{
105+
"type": "mrkdwn",
106+
"text": "*Repository:*\n${{ github.repository }}"
107+
},
108+
{
109+
"type": "mrkdwn",
110+
"text": "*Branch:*\n${{ github.ref_name }}"
111+
},
112+
{
113+
"type": "mrkdwn",
114+
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
115+
},
116+
{
117+
"type": "mrkdwn",
118+
"text": "*Author:*\n${{ github.event.head_commit.author.name }}"
119+
},
120+
{
121+
"type": "mrkdwn",
122+
"text": "*Site URL:*\n<${{ steps.deployment.outputs.page_url }}|View Site>"
123+
},
124+
{
125+
"type": "mrkdwn",
126+
"text": "*Workflow:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run>"
127+
}
128+
]
129+
}
130+
]
131+
}
132+
env:
133+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
134+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
135+
136+
- name: Notify Slack on Failure
137+
if: failure()
138+
uses: slackapi/slack-github-action@v1.27.0
139+
with:
140+
payload: |
141+
{
142+
"text": "❌ PIE QTI Docs Deployment Failed",
143+
"blocks": [
144+
{
145+
"type": "header",
146+
"text": {
147+
"type": "plain_text",
148+
"text": "❌ Docs Site Deployment Failed"
149+
}
150+
},
151+
{
152+
"type": "section",
153+
"fields": [
154+
{
155+
"type": "mrkdwn",
156+
"text": "*Repository:*\n${{ github.repository }}"
157+
},
158+
{
159+
"type": "mrkdwn",
160+
"text": "*Branch:*\n${{ github.ref_name }}"
161+
},
162+
{
163+
"type": "mrkdwn",
164+
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
165+
},
166+
{
167+
"type": "mrkdwn",
168+
"text": "*Author:*\n${{ github.event.head_commit.author.name }}"
169+
},
170+
{
171+
"type": "mrkdwn",
172+
"text": "*Workflow:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run>"
173+
}
174+
]
175+
}
176+
]
177+
}
178+
env:
179+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
180+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
name: PR Notifications
2+
3+
on:
4+
pull_request:
5+
types: [opened, closed, reopened]
6+
pull_request_review:
7+
types: [submitted]
8+
9+
jobs:
10+
notify:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Notify Slack on PR Opened
14+
if: github.event.action == 'opened'
15+
uses: slackapi/slack-github-action@v1.27.0
16+
with:
17+
payload: |
18+
{
19+
"text": "🔔 New PR in pie-qti",
20+
"blocks": [
21+
{
22+
"type": "header",
23+
"text": {
24+
"type": "plain_text",
25+
"text": "🔔 New Pull Request"
26+
}
27+
},
28+
{
29+
"type": "section",
30+
"fields": [
31+
{
32+
"type": "mrkdwn",
33+
"text": "*Repository:*\n${{ github.repository }}"
34+
},
35+
{
36+
"type": "mrkdwn",
37+
"text": "*PR:*\n<${{ github.event.pull_request.html_url }}|#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}>"
38+
},
39+
{
40+
"type": "mrkdwn",
41+
"text": "*Author:*\n${{ github.event.pull_request.user.login }}"
42+
},
43+
{
44+
"type": "mrkdwn",
45+
"text": "*Base:*\n${{ github.event.pull_request.base.ref }}"
46+
},
47+
{
48+
"type": "mrkdwn",
49+
"text": "*Head:*\n${{ github.event.pull_request.head.ref }}"
50+
}
51+
]
52+
}
53+
]
54+
}
55+
env:
56+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }}
57+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
58+
59+
- name: Notify Slack on PR Merged
60+
if: github.event.action == 'closed' && github.event.pull_request.merged == true
61+
uses: slackapi/slack-github-action@v1.27.0
62+
with:
63+
payload: |
64+
{
65+
"text": "✅ PR Merged in pie-qti",
66+
"blocks": [
67+
{
68+
"type": "header",
69+
"text": {
70+
"type": "plain_text",
71+
"text": "✅ Pull Request Merged"
72+
}
73+
},
74+
{
75+
"type": "section",
76+
"fields": [
77+
{
78+
"type": "mrkdwn",
79+
"text": "*Repository:*\n${{ github.repository }}"
80+
},
81+
{
82+
"type": "mrkdwn",
83+
"text": "*PR:*\n<${{ github.event.pull_request.html_url }}|#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}>"
84+
},
85+
{
86+
"type": "mrkdwn",
87+
"text": "*Author:*\n${{ github.event.pull_request.user.login }}"
88+
},
89+
{
90+
"type": "mrkdwn",
91+
"text": "*Merged by:*\n${{ github.event.pull_request.merged_by.login }}"
92+
},
93+
{
94+
"type": "mrkdwn",
95+
"text": "*Into:*\n${{ github.event.pull_request.base.ref }}"
96+
}
97+
]
98+
}
99+
]
100+
}
101+
env:
102+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }}
103+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
104+
105+
- name: Notify Slack on PR Closed (not merged)
106+
if: github.event.action == 'closed' && github.event.pull_request.merged == false
107+
uses: slackapi/slack-github-action@v1.27.0
108+
with:
109+
payload: |
110+
{
111+
"text": "❌ PR Closed in pie-qti",
112+
"blocks": [
113+
{
114+
"type": "header",
115+
"text": {
116+
"type": "plain_text",
117+
"text": "❌ Pull Request Closed"
118+
}
119+
},
120+
{
121+
"type": "section",
122+
"fields": [
123+
{
124+
"type": "mrkdwn",
125+
"text": "*Repository:*\n${{ github.repository }}"
126+
},
127+
{
128+
"type": "mrkdwn",
129+
"text": "*PR:*\n<${{ github.event.pull_request.html_url }}|#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}>"
130+
},
131+
{
132+
"type": "mrkdwn",
133+
"text": "*Author:*\n${{ github.event.pull_request.user.login }}"
134+
}
135+
]
136+
}
137+
]
138+
}
139+
env:
140+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }}
141+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
142+
143+
- name: Notify Slack on PR Review
144+
if: github.event_name == 'pull_request_review'
145+
uses: slackapi/slack-github-action@v1.27.0
146+
with:
147+
payload: |
148+
{
149+
"text": "👀 PR Review in pie-qti",
150+
"blocks": [
151+
{
152+
"type": "header",
153+
"text": {
154+
"type": "plain_text",
155+
"text": "${{ github.event.review.state == 'approved' && '✅ PR Approved' || github.event.review.state == 'changes_requested' && '🔄 Changes Requested' || '💬 PR Reviewed' }}"
156+
}
157+
},
158+
{
159+
"type": "section",
160+
"fields": [
161+
{
162+
"type": "mrkdwn",
163+
"text": "*Repository:*\n${{ github.repository }}"
164+
},
165+
{
166+
"type": "mrkdwn",
167+
"text": "*PR:*\n<${{ github.event.pull_request.html_url }}|#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}>"
168+
},
169+
{
170+
"type": "mrkdwn",
171+
"text": "*Reviewer:*\n${{ github.event.review.user.login }}"
172+
},
173+
{
174+
"type": "mrkdwn",
175+
"text": "*State:*\n${{ github.event.review.state }}"
176+
}
177+
]
178+
}
179+
]
180+
}
181+
env:
182+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }}
183+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 commit comments

Comments
 (0)