8000 [FEATURE] Support for pull_request_target event (#34) · openmsa/commit-message-checker@689e258 · GitHub
[go: up one dir, main page]

Skip to content

Commit 689e258

Browse files
nasukugilbertsoft
andauthored
[FEATURE] Support for pull_request_target event (GsActions#34)
* [FEATURE] support pull_request_target * [TASK] Update readme Co-authored-by: Gilbertsoft <25326036+gilbertsoft@users.noreply.github.com>
1 parent c61c811 commit 689e258

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ on:
3838
- edited
3939
- reopened
4040
- synchronize
41+
pull_request_target:
42+
types:
43+
- opened
44+
- edited
45+
- reopened
46+
- synchronize
4147
push:
4248
branches:
4349
- main

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4902,6 +4902,7 @@ function getMessages(pullRequestOptions) {
49024902
const messages = [];
49034903
core.debug(` - eventName: ${github.context.eventName}`);
49044904
switch (github.context.eventName) {
4905+
case 'pull_request_target':
49054906
case 'pull_request': {
49064907
if (!github.context.payload) {
49074908
throw new Error('No payload found in the context.');

src/input-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ async function getMessages(
104104
core.debug(` - eventName: ${github.context.eventName}`)
105105

106106
switch (github.context.eventName) {
107+
case 'pull_request_target':
107108
case 'pull_request': {
108109
if (!github.context.payload) {
109110
throw new Error('No payload found in the context.')

0 commit comments

Comments
 (0)
0