forked from voxmedia/github-action-slack-notify-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfixtures.js
More file actions
37 lines (35 loc) · 696 Bytes
/
fixtures.js
File metadata and controls
37 lines (35 loc) · 696 Bytes
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
const repository = {
name: 'github-action-slack-notify-build',
owner: {
login: 'voxmedia',
},
};
export const GITHUB_PUSH_EVENT = {
context: {
payload: {
repository,
},
ref: 'refs/heads/my-branch',
workflow: 'CI',
eventName: 'push',
sha: 'abc123',
},
};
export const GITHUB_PR_EVENT = {
context: {
payload: {
repository,
pull_request: {
html_url: 'https://github.com/voxmedia/github-action-slack-notify-build/pulls/1',
title: 'This is a PR',
head: {
ref: 'my-branch',
sha: 'xyz678',
},
},
},
workflow: 'CI',
eventName: 'pull_request',
sha: 'abc123',
},
};