简体   繁体   中英

How to make AWS Lambda open a pull request on Github with updates for files already existing on a repository?

  1. Lambda calls an API service to fetch the latest list of top-secret codenames. Don't worry, it's not really secrets, no security concerns here. Just play along.
  2. Lambda stores the codenames, in a file called secret-codenames.json , in an S3 bucket.
  3. A Github repo has an outdated list of codenames at /restricted/secret-codenames.json that needs to be updated.

Specifically, a Pull Request needs to be opened with the changes so that the list of codenames can be reviewed by a human agent before being merged to master.

How can I do this using the Lambda function?

Can I use Github API to achieve this? I read the documentation but I am not sure how.

我所相信的是,如果secret-codenames.json包含秘密,则不应b用git维护它应与Server EC2S3直接同步

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM