Skip to content

Commit 5151150

Browse files
Initial Setups
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent b228e6d commit 5151150

30 files changed

+10716
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
npm-debug.log
3+
*.pem
4+
!mock-cert.pem
5+
.env*
6+
coverage
7+
bin
8+
temp/*

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"bracketSpacing": true,
8+
"arrowParens": "always",
9+
"endOfLine": "lf"
10+
}

app.yml

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# This is a GitHub App Manifest. These settings will be used by default when
2+
# initially configuring your GitHub App.
3+
#
4+
# NOTE: changing this file will not update your GitHub App settings.
5+
# You must visit github.com/settings/apps/your-app-name to edit them.
6+
#
7+
# Read more about configuring your GitHub App:
8+
# https://probot.github.io/docs/development/#configuring-a-github-app
9+
#
10+
# Read more about GitHub App Manifests:
11+
# https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/
12+
13+
# The list of events the GitHub App subscribes to.
14+
# Uncomment the event names below to enable them.
15+
default_events:
16+
# - check_run
17+
# - check_suite
18+
# - commit_comment
19+
# - create
20+
# - delete
21+
# - deployment
22+
# - deployment_status
23+
# - fork
24+
# - gollum
25+
# - issue_comment
26+
- issues
27+
# - label
28+
# - milestone
29+
# - member
30+
# - membership
31+
# - org_block
32+
# - organization
33+
# - page_build
34+
# - project
35+
# - project_card
36+
# - project_column
37+
# - public
38+
# - pull_request
39+
# - pull_request_review
40+
# - pull_request_review_comment
41+
# - push
42+
# - release
43+
# - repository
44+
# - repository_import
45+
# - status
46+
# - team
47+
# - team_add
48+
# - watch
49+
50+
# The set of permissions needed by the GitHub App. The format of the object uses
51+
# the permission name for the key (for example, issues) and the access type for
52+
# the value (for example, write).
53+
# Valid values are `read`, `write`, and `none`
54+
default_permissions:
55+
# Repository creation, deletion, settings, teams, and collaborators.
56+
# https://developer.github.com/v3/apps/permissions/#permission-on-administration
57+
# administration: read
58+
59+
# Checks on code.
60+
# https://developer.github.com/v3/apps/permissions/#permission-on-checks
61+
# checks: read
62+
63+
# Repository contents, commits, branches, downloads, releases, and merges.
64+
# https://developer.github.com/v3/apps/permissions/#permission-on-contents
65+
# contents: read
66+
67+
# Deployments and deployment statuses.
68+
# https://developer.github.com/v3/apps/permissions/#permission-on-deployments
69+
# deployments: read
70+
71+
# Issues and related comments, assignees, labels, and milestones.
72+
# https://developer.github.com/v3/apps/permissions/#permission-on-issues
73+
issues: write
74+
75+
# Search repositories, list collaborators, and access repository metadata.
76+
# https://developer.github.com/v3/apps/permissions/#metadata-permissions
77+
metadata: read
78+
79+
# Retrieve Pages statuses, configuration, and builds, as well as create new builds.
80+
# https://developer.github.com/v3/apps/permissions/#permission-on-pages
81+
# pages: read
82+
83+
# Pull requests and related comments, assignees, labels, milestones, and merges.
84+
# https://developer.github.com/v3/apps/permissions/#permission-on-pull-requests
85+
# pull_requests: read
86+
87+
# Manage the post-receive hooks for a repository.
88+
# https://developer.github.com/v3/apps/permissions/#permission-on-repository-hooks
89+
# repository_hooks: read
90+
91+
# Manage repository projects, columns, and cards.
92+
# https://developer.github.com/v3/apps/permissions/#permission-on-repository-projects
93+
# repository_projects: read
94+
95+
# Retrieve security vulnerability alerts.
96+
# https://developer.github.com/v4/object/repositoryvulnerabilityalert/
97+
# vulnerability_alerts: read
98+
99+
# Commit statuses.
100+
# https://developer.github.com/v3/apps/permissions/#permission-on-statuses
101+
# statuses: read
102+
103+
# Organization members and teams.
104+
# https://developer.github.com/v3/apps/permissions/#permission-on-members
105+
# members: read
106+
107+
# View and manage users blocked by the organization.
108+
# https://developer.github.com/v3/apps/permissions/#permission-on-organization-user-blocking
109+
# organization_user_blocking: read
110+
111+
# Manage organization projects, columns, and cards.
112+
# https://developer.github.com/v3/apps/permissions/#permission-on-organization-projects
113+
# organization_projects: read
114+
115+
# Manage team discussions and related comments.
116+
# https://developer.github.com/v3/apps/permissions/#permission-on-team-discussions
117+
# team_discussions: read
118+
119+
# Manage the post-receive hooks for an organization.
120+
# https://developer.github.com/v3/apps/permissions/#permission-on-organization-hooks
121+
# organization_hooks: read
122+
123+
# Get notified of, and update, content references.
124+
# https://developer.github.com/v3/apps/permissions/
125+
# organization_administration: read
126+
# The name of the GitHub App. Defaults to the name specified in package.json
127+
# name: My Probot App
128+
129+
# The homepage of your GitHub App.
130+
# url: https://example.com/
131+
132+
# A description of the GitHub App.
133+
# description: A description of my awesome app
134+
135+
# Set to true when your GitHub App is available to the public or false when it is only accessible to the owner of the app.
136+
# Default: true
137+
# public: false

configs/operations/hello-world.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Hello World Operation
3+
4+
events:
5+
- issues.labeled
6+
7+
tasks:
8+
- name: Print a message to the console
9+
call: print-to-console@default
10+
args:
11+
text: Hello World!
12+
- call: create-issue-comment@createIssueCommentTagUser
13+
args:
14+
text: This comment is created by Hello World Operation
15+
tagUser: peterzhuamazon
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
organizations:
3+
- name: peterzhu-organization
4+
projects:
5+
- name: github-project-1
6+
number: 1
7+
fields:
8+
- name: Sprint
9+
- name: Dates
10+
- name: Status
11+
- name: github-project-2
12+
number: 2
13+
fields:
14+
- name: Values
15+
- name: Home Address
16+
repositories:
17+
- name: github-repo-1
18+
- name: github-repo-2

jest.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
testEnvironment: 'node',
3+
roots: ['<rootDir>/test'],
4+
testMatch: ['**/*.test.ts'],
5+
transform: {
6+
'^.+\\.tsx?$': 'ts-jest'
7+
}
8+
};

0 commit comments

Comments
 (0)