Skip to content

🦙 Tina - Add agentic workflow to leave approval/rejection comments on Tina PRs#4643

Merged
Calinator444 merged 12 commits intomainfrom
auto-approve-tina-content-changes
Apr 17, 2026
Merged

🦙 Tina - Add agentic workflow to leave approval/rejection comments on Tina PRs#4643
Calinator444 merged 12 commits intomainfrom
auto-approve-tina-content-changes

Conversation

@Calinator444
Copy link
Copy Markdown
Member

@Calinator444 Calinator444 commented Apr 10, 2026

Description

This PR is the first step for adding a GitHub agentic workflow that auto approves small content changes made on the website through Tina. For now the content change will only leave comments on PRs made by users, but once we're confident enough with the flows I will go back and uncomment the stubs for approving/rejecting PRs.

Notes:

  • The low works when PRs are marked as ready for review when the content change is in /public and/or /content.
  • The flow only runs when the PR author is either TinaCMS, or part of the SSW Organization

Todo

  • Add a COPILOT_GITHUB_TOKEN secret to the SSW Website so that the flow can run

(I used the GITHUB_COPILOT_TOKEN in Keeper | SSW.Rules GitHub Service account)

Note

I fixed the copilot CLI version to v1.0.20 to fix MCP firewall issues that were happening with the latest version.

Relevant issues

Screenshots

image

Figure: Agentic workflow approving a content change with a comment


CleanShot 2026-04-17 at 12 52 11

Figure: GitHub Agentic workflows rejecting a conent change with a comment

@Calinator444 Calinator444 marked this pull request as ready for review April 10, 2026 08:38
Copilot AI review requested due to automatic review settings April 10, 2026 08:38
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 0.19% 72/37293
🔴 Branches 5.62% 24/427
🔴 Functions 0.74% 3/406
🔴 Lines 0.19% 72/37293

Test suite run success

13 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from bb28d0d

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a GitHub agentic workflow (gh-aw + Copilot engine) intended to automatically review and approve PRs that contain publishable content-only updates in content/ and/or public/, triggered when a PR is marked ready for review.

Changes:

  • Adds an agent prompt definition for “AI Content Reviewer” with approval criteria and actions.
  • Adds the compiled gh-aw workflow lock file to run the agent and post an approval/comment via Safe Outputs.
  • Adds generated-file/merge handling for lock workflows and an actions SHA lock manifest.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/auto-approve-content-changes.md Defines the agent instructions, approval criteria, and tool usage for auto-approving content PRs.
.github/workflows/auto-approve-content-changes.lock.yml Generated gh-aw workflow that executes the agent and applies Safe Outputs (comment/review) back to the PR.
.github/aw/actions-lock.json Pins required GitHub Actions used by gh-aw (e.g., actions/github-script).
.gitattributes Marks lock workflows as generated and resolves merges using ours to reduce conflicts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/auto-approve-content-changes.md Outdated
Comment thread .github/workflows/auto-approve-content-changes.md
Comment thread .github/workflows/auto-approve-content-changes.md
Comment thread .github/workflows/auto-approve-content-changes.md Outdated
Comment thread .github/workflows/auto-approve-content-changes.md
@github-actions
Copy link
Copy Markdown
Contributor

Deployed changes to https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Lighthouse score comparison for PR slot and production

🌐 URL ⚡ Performance ♿ Accessibility ✅ Best Practices 🔍 SEO 📦 Bundle Size 🗑️ Unused Bundle
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/ 64 (⬆️2) 91 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/articles 64 (⬇️4) 96 59 57 (⬇️35) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/about-us 48 100 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/clients 63 (⬇️3) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/contact-us 62 (⬇️3) 91 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting 52 91 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/net-upgrade 47 (⬆️23) 89 56 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/web-applications 42 (⬆️17) 93 59 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/employment 57 (⬇️3) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/angular-superpowers-tour 57 (⬇️4) 96 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/ai-workshop 59 (⬆️4) 90 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/netug/sydney 56 (⬇️18) 93 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/training/internship-fullstack 66 (⬆️2) 91 59 61 (⬇️31) 0.00 MB 0.00 MB

Calinator444 and others added 3 commits April 13, 2026 10:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Aligned explicit tool call name for submitting reviews with Frontmatter
@github-actions
Copy link
Copy Markdown
Contributor

Deployed changes to https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Lighthouse score comparison for PR slot and production

🌐 URL ⚡ Performance ♿ Accessibility ✅ Best Practices 🔍 SEO 📦 Bundle Size 🗑️ Unused Bundle
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/ 62 91 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/articles 61 (⬇️7) 96 59 57 (⬇️35) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/about-us 49 (⬆️1) 100 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/clients 60 (⬇️6) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/contact-us 53 (⬇️12) 91 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting 46 (⬇️6) 91 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/net-upgrade 32 (⬆️8) 89 56 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/web-applications 31 (⬆️6) 93 59 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/employment 56 (⬇️4) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/angular-superpowers-tour 60 (⬇️1) 96 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/ai-workshop 55 90 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/netug/sydney 50 (⬇️24) 93 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/training/internship-fullstack 63 (⬇️1) 91 59 61 (⬇️31) 0.00 MB 0.00 MB

Comment thread .github/workflows/auto-approve-content-changes.md
@Calinator444 Calinator444 requested a review from suiyangqiu April 14, 2026 01:32
@github-actions
Copy link
Copy Markdown
Contributor

Deployed changes to https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Lighthouse score comparison for PR slot and production

🌐 URL ⚡ Performance ♿ Accessibility ✅ Best Practices 🔍 SEO 📦 Bundle Size 🗑️ Unused Bundle
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/ 60 (⬇️1) 91 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/articles 67 (⬆️3) 96 59 57 (⬇️35) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/about-us 50 (⬆️3) 100 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/clients 66 (⬆️4) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/contact-us 61 91 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting 51 (⬆️2) 91 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/net-upgrade 52 (⬆️27) 89 56 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/web-applications 51 (⬆️20) 93 59 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/employment 62 (⬇️16) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/angular-superpowers-tour 64 (⬆️7) 96 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/ai-workshop 67 (⬆️7) 90 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/netug/sydney 54 (⬇️2) 93 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/training/internship-fullstack 67 (⬆️7) 91 59 61 (⬇️31) 0.00 MB 0.00 MB

- Added guard to make content check only operate on small content changes
@github-actions
Copy link
Copy Markdown
Contributor

Deployed changes to https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Lighthouse score comparison for PR slot and production

🌐 URL ⚡ Performance ♿ Accessibility ✅ Best Practices 🔍 SEO 📦 Bundle Size 🗑️ Unused Bundle
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/ 62 (⬆️1) 91 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/articles 69 (⬆️5) 96 59 57 (⬇️35) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/about-us 54 (⬆️7) 100 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/clients 64 (⬆️2) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/contact-us 70 (⬆️9) 91 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting 54 (⬆️5) 91 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/net-upgrade 59 (⬆️34) 89 56 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/web-applications 56 (⬆️25) 93 59 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/employment 61 (⬇️17) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/angular-superpowers-tour 67 (⬆️10) 96 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/ai-workshop 69 (⬆️9) 90 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/netug/sydney 56 93 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/training/internship-fullstack 59 (⬇️1) 91 59 61 (⬇️31) 0.00 MB 0.00 MB

Comment thread .github/workflows/auto-approve-content-changes.md
Comment thread .github/workflows/auto-approve-content-changes.lock.yml
Copy link
Copy Markdown
Member

@suiyangqiu suiyangqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per my conversation w/ @Calinator444, we're adding a workflow to leave comments

@Calinator444 Calinator444 changed the title 🦙 Tina - Add agentic workflow to auto approve content changes 🦙 Tina - Add agentic workflow to leave approval comments on Tina PRs Apr 16, 2026
@Calinator444 Calinator444 changed the title 🦙 Tina - Add agentic workflow to leave approval comments on Tina PRs 🦙 Tina - Add agentic workflow to leave approval/rejection comments on Tina PRs Apr 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Deployed changes to https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Lighthouse score comparison for PR slot and production

🌐 URL ⚡ Performance ♿ Accessibility ✅ Best Practices 🔍 SEO 📦 Bundle Size 🗑️ Unused Bundle
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/ 62 (⬇️1) 91 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/articles 63 (⬇️1) 96 59 57 (⬇️35) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/about-us 51 (⬆️8) 100 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/clients 63 (⬇️1) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/contact-us 62 (⬆️9) 91 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting 50 (⬇️2) 91 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/net-upgrade 31 89 56 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/web-applications 32 (⬆️10) 93 59 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/employment 56 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/angular-superpowers-tour 59 (⬆️4) 96 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/ai-workshop 60 (⬆️6) 90 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/netug/sydney 52 (⬇️2) 93 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/training/internship-fullstack 64 (⬆️7) 91 59 61 (⬇️31) 0.00 MB 0.00 MB

@Calinator444 Calinator444 requested a review from 18-th as a code owner April 17, 2026 02:46
@github-actions
Copy link
Copy Markdown
Contributor

Deployed changes to https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net

@github-actions
Copy link
Copy Markdown
Contributor

🚀 Lighthouse score comparison for PR slot and production

🌐 URL ⚡ Performance ♿ Accessibility ✅ Best Practices 🔍 SEO 📦 Bundle Size 🗑️ Unused Bundle
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/ 63 91 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/articles 67 (⬆️3) 96 59 57 (⬇️35) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/about-us 55 (⬆️12) 100 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/clients 67 (⬆️3) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/company/contact-us 69 (⬆️16) 91 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting 55 (⬆️3) 91 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/net-upgrade 49 (⬆️18) 89 56 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/consulting/web-applications 49 (⬆️27) 93 59 54 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/employment 62 (⬆️6) 95 59 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/angular-superpowers-tour 64 (⬆️9) 96 56 69 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/events/ai-workshop 64 (⬆️10) 90 56 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/netug/sydney 56 (⬆️2) 93 59 61 (⬇️31) 0.00 MB 0.00 MB
https://app-sswwebsite-9eb3-pr-4643.azurewebsites.net/training/internship-fullstack 71 (⬆️14) 91 59 61 (⬇️31) 0.00 MB 0.00 MB

Copy link
Copy Markdown
Member

@18-th 18-th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Calinator444 Calinator444 merged commit 538da15 into main Apr 17, 2026
11 checks passed
@Calinator444 Calinator444 deleted the auto-approve-tina-content-changes branch April 17, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Small content changes do not need site deployments as a PR check

4 participants