Skip to content

Commit 1761661

Browse files
authored
Changed bucket name to env variable (#26)
Signed-off-by: Brandon Shien <bshien@amazon.com>
1 parent abfeaa1 commit 1761661

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensearch-automation-app",
3-
"version": "0.1.9",
3+
"version": "0.1.10",
44
"description": "An Automation App that handles all your GitHub Repository Activities",
55
"author": "Peter Zhu",
66
"homepage": "https://github.com/opensearch-project/automation-app",

src/call/github-events-to-s3.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default async function githubEventsToS3(app: Probot, context: any, resour
2626
try {
2727
const s3Client = new S3Client({ region: String(process.env.REGION) });
2828
const putObjectCommand = new PutObjectCommand({
29-
Bucket: 'opensearch-project-github-events',
29+
Bucket: String(process.env.OPENSEARCH_EVENTS_BUCKET),
3030
Body: JSON.stringify(context),
3131
Key: `${context.name}.${context.payload.action}/${year}-${month}-${day}/${repoName}-${context.id}`,
3232
});

0 commit comments

Comments
 (0)