Skip to content

Commit 18d2239

Browse files
authored
Update carmel-judgment-bot.yml For Reals.
1 parent 86cb41c commit 18d2239

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed
Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Carmel Judgment Bot
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened]
66

77
jobs:
88
carmel-judges:
99
runs-on: ubuntu-latest
10-
1110
permissions:
1211
pull-requests: write
12+
issues: write
1313

1414
steps:
1515
- name: Post Carmel Judgment Stamp
@@ -23,35 +23,15 @@ jobs:
2323
const prAuthor = pr.user.login;
2424
2525
const stamps = [
26-
{
27-
label: "Carmel Judgment Stamp™",
28-
emoji: "😼",
29-
color: "🟪",
30-
quote: "Hmm. Acceptable… for now."
31-
},
32-
{
33-
label: "Carmel Approval Stamp™",
34-
emoji: "😼✨",
35-
color: "🟩",
36-
quote: "Adequate work, human."
37-
},
38-
{
39-
label: "Carmel Chaos Stamp™",
40-
emoji: "😼🔥",
41-
color: "🔥",
42-
quote: "I sense nonsense. Proceed."
43-
},
44-
{
45-
label: "Carmel Epistemic Stamp™",
46-
emoji: "😼📘",
47-
color: "📘",
48-
quote: "Your logic is sound… shockingly."
49-
}
26+
{ label: "Carmel Judgment Stamp™", emoji: "😼", color: "🟪", quote: "Hmm. Acceptable… for now." },
27+
{ label: "Carmel Approval Stamp™", emoji: "😼✨", color: "🟩", quote: "Adequate work, human." },
28+
{ label: "Carmel Chaos Stamp™", emoji: "😼🔥", color: "🔥", quote: "I sense nonsense. Proceed." },
29+
{ label: "Carmel Epistemic Stamp™", emoji: "😼📘", color: "📘", quote: "Your logic is sound… shockingly." }
5030
];
5131
5232
const chosen = stamps[Math.floor(Math.random() * stamps.length)];
5333
54-
const body = `
34+
const body = `
5535
## ${chosen.emoji} ${chosen.label}
5636
5737
${chosen.color} **${chosen.label}**
@@ -64,8 +44,8 @@ jobs:
6444
`;
6545
6646
await github.rest.issues.createComment({
67-
owner: context.repo.owner,
68-
repo: context.repo.name,
47+
owner: pr.base.repo.owner.login,
48+
repo: pr.base.repo.name,
6949
issue_number: prNumber,
7050
body,
7151
});

0 commit comments

Comments
 (0)