-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (67 loc) · 3.47 KB
/
project-board-automation.yml
File metadata and controls
76 lines (67 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 📋 Project Board Automation
on:
workflow_dispatch:
permissions:
issues: write
contents: read
jobs:
move-to-boards:
runs-on: ubuntu-latest
steps:
- name: Move Bug Reports to Bug Triage
if: contains(github.event.issue.title, '[BUG]') && github.event.action == 'opened'
uses: actions/github-script@v7
with:
script: |
// Add to Bug Tracking Board - New column
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🐛 **Bug Report Received**\n\nThis bug has been added to the Bug Tracking board for triage.\n\n**Next Steps:**\n1. Technical investigation\n2. Impact assessment\n3. Priority assignment\n4. Resolution planning\n\n*Automated by Sharothee Wedding Project Management*'
})
- name: Move Feature Requests to Backlog
if: contains(github.event.issue.title, '[FEATURE]') && github.event.action == 'opened'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✨ **Feature Request Received**\n\nThis feature request has been added to the Product Backlog for review.\n\n**Next Steps:**\n1. Requirements analysis\n2. Technical feasibility review\n3. Priority assessment\n4. Sprint planning consideration\n\n*Automated by Sharothee Wedding Project Management*'
})
- name: Move Deployment Tasks to Pipeline
if: contains(github.event.issue.title, '[DEPLOY]') && github.event.action == 'opened'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🚀 **Deployment Task Created**\n\nThis deployment has been added to the Deployment Pipeline board.\n\n**Pre-Deployment Checklist:**\n- [ ] Code review complete\n- [ ] Tests passing\n- [ ] Environment variables ready\n- [ ] Database backup created\n- [ ] Rollback plan confirmed\n\n*Automated by Sharothee Wedding Project Management*'
})
- name: Celebrate Issue Completion
if: github.event.action == 'closed'
uses: actions/github-script@v7
with:
script: |
const title = context.payload.issue.title;
let message = '🎉 **Issue Completed!**\n\n';
if (title.includes('[BUG]')) {
message += 'Bug has been resolved and verified. Thank you for reporting this issue!';
} else if (title.includes('[FEATURE]')) {
message += 'Feature has been implemented and deployed. Enjoy the new functionality!';
} else if (title.includes('[DEPLOY]')) {
message += 'Deployment completed successfully. All systems are operational!';
} else {
message += 'Task completed successfully!';
}
message += '\n\n*Automated by Sharothee Wedding Project Management*';
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: message
})