Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft PRs fix for PR Board automation #3649

Merged
merged 41 commits into from Jan 17, 2024
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
fd7a295
- modified files to use slackapi for github workglow
The5cheduler Dec 21, 2023
70f358c
Merge branch 'WordPress:main' into main
The5cheduler Dec 21, 2023
d184028
- added original for the step
The5cheduler Dec 21, 2023
7df004c
- removed curl and applied slackapi
The5cheduler Dec 23, 2023
24e9580
Merge branch 'WordPress:main' into main
The5cheduler Dec 23, 2023
e7eeafc
Update Slack notification ID in PR ping workflow
The5cheduler Dec 23, 2023
f9f616a
Refactor GitHub Action payloads
The5cheduler Dec 23, 2023
cfeacbb
Update .github/workflows/discussion_ping.yml
obulat Dec 26, 2023
7dfe914
Update .github/workflows/pr_limit_reminders.yml
obulat Dec 26, 2023
a494f65
Update .github/workflows/pr_ping.yml
obulat Dec 26, 2023
2ec6ace
Remove trailing spaces to pass lint check
dhruvkb Dec 26, 2023
e18e3e4
Merge branch 'WordPress:main' into main
The5cheduler Dec 26, 2023
fb1db2e
Merge branch 'WordPress:main' into main
The5cheduler Dec 27, 2023
811ef8e
Merge branch 'WordPress:main' into main
The5cheduler Dec 30, 2023
7c71dda
fixed the vatiables discussion_ping.yml
The5cheduler Dec 30, 2023
ad3b37e
added variables and fixed the slack action api version for discussion…
The5cheduler Dec 30, 2023
d04fc98
added variables and fixed the slack action api version for pr_ping.yml
The5cheduler Dec 30, 2023
49dbd72
added variables and fixed the slack action api version for pr_limit_r…
The5cheduler Dec 31, 2023
bec2a53
Update discussion ping message variables
The5cheduler Dec 31, 2023
62fd6c3
Update Slack message format in PR limit reminders and PR ping workflows
The5cheduler Dec 31, 2023
190f1e2
Fix multiplication syntax in Slack message
The5cheduler Dec 31, 2023
793a6ca
Fix formatting in discussion_ping.yml
The5cheduler Dec 31, 2023
bcaae46
Update discussion_ping.yml to include additional notification message
The5cheduler Dec 31, 2023
174e516
Fixing linting issue
The5cheduler Dec 31, 2023
38de286
Update discussion ping message format
The5cheduler Dec 31, 2023
3db9221
Update variable names in GitHub workflow files
The5cheduler Dec 31, 2023
826006b
Merge branch 'WordPress:main' into main
The5cheduler Jan 2, 2024
704da9e
Update variable names in GitHub workflows
The5cheduler Jan 2, 2024
0cb727a
Fixed the variable Names added env. as Prefix
The5cheduler Jan 2, 2024
d7b0f28
Merge branch 'WordPress:main' into main
The5cheduler Jan 3, 2024
43963f0
Merge branch 'WordPress:main' into main
The5cheduler Jan 6, 2024
3a22a22
Merge branch 'WordPress:main' into main
The5cheduler Jan 8, 2024
c8d29ff
added additonal check for ready for review block
The5cheduler Jan 8, 2024
aada608
Merge branch 'WordPress:main' into pr-board-fix
The5cheduler Jan 10, 2024
0e5f07a
removed trailing spaces
The5cheduler Jan 10, 2024
04dded7
Fix formatting in prs.mjs
The5cheduler Jan 10, 2024
7901da0
- removed trailing space
The5cheduler Jan 10, 2024
1e08b33
Fix formatting in prs.mjs
The5cheduler Jan 10, 2024
304048b
- fixed the prettier issue
The5cheduler Jan 10, 2024
df605c3
Merge branch 'WordPress:main' into pr-board-fix
The5cheduler Jan 13, 2024
ec3305a
Fix PR card movement for draft pull requests
The5cheduler Jan 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion automations/js/src/project_automation/prs.mjs
Expand Up @@ -82,7 +82,11 @@ export const main = async (octokit, core) => {
core.debug(`PR card ID: ${prCard.id}`)

if (eventName === 'pull_request_review') {
await syncReviews(core, pr, prBoard, prCard)
if (pr.isDraft) {
await prBoard.moveCard(prCard.id, prBoard.columns.Draft)
} else {
await syncReviews(core, pr, prBoard, prCard)
}
} else {
switch (eventAction) {
case 'opened':
Expand Down