Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codepipeline): variables for CodeStar Connections source Action #18086

Merged
merged 7 commits into from
Dec 29, 2021

Conversation

kornicameister
Copy link
Contributor

@kornicameister kornicameister commented Dec 18, 2021

Adds variables method that allows to retrieve action's variables
using type safe approach.
With that we can rely on compiler to pick up incorrect access instead
of hacking it with plain strings.

fixes: #17807


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Dec 18, 2021

@mergify
Copy link
Contributor

mergify bot commented Dec 18, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@kornicameister kornicameister force-pushed the fix_17807 branch 3 times, most recently from 69a37ae to 891c647 Compare December 18, 2021 22:56
@kornicameister
Copy link
Contributor Author

@skinny85 no idea what I am doing wrong with semantic pull request. I think it follows the guideline but apparently I am missing an important detail

@skinny85 skinny85 changed the title (code_pipeline_actions): variables for source action feat(codepipeline): variables for CodeStar Connections source Action Dec 20, 2021
@github-actions github-actions bot added the @aws-cdk/aws-codepipeline Related to AWS CodePipeline label Dec 20, 2021
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @kornicameister! A few tiny comments before we merge this in, but this is in great shape already.

@kornicameister
Copy link
Contributor Author

On holiday now. I will try to get back to it after Xmas but I cannot promise that.

@mergify mergify bot dismissed skinny85’s stale review December 28, 2021 22:46

Pull request has been modified.

Adds `variables` method that allows to retrieve action's
[variables](https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-variables.html)
using type safe approach.
With that we can rely on compiler to pick up incorrect access instead
of hacking it with plain strings.

fixes: aws#17807
@kornicameister
Copy link
Contributor Author

@skinny85 ready for another round.

@skinny85
Copy link
Contributor

Looks like the linter is failing the build:

@aws-cdk/aws-codepipeline-actions: /codebuild/output/src457305986/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-codepipeline-actions/test/codestar-connections/codestar-connections-source-action.test.ts
@aws-cdk/aws-codepipeline-actions:   213:59  error  Missing semicolon  semi
@aws-cdk/aws-codepipeline-actions:   243:59  error  Missing semicolon  semi

@kornicameister
Copy link
Contributor Author

Yeah, it wasn't picked by yarn watch. After I ran yarn build it did pop up for me.

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @kornicameister! A few suggestions on the test, that I will address myself.

@mergify mergify bot dismissed skinny85’s stale review December 29, 2021 00:00

Pull request has been modified.

skinny85
skinny85 previously approved these changes Dec 29, 2021
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @kornicameister!

@mergify mergify bot dismissed skinny85’s stale review December 29, 2021 00:45

Pull request has been modified.

skinny85
skinny85 previously approved these changes Dec 29, 2021
@mergify mergify bot dismissed skinny85’s stale review December 29, 2021 06:43

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: f0f31e0
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit c99da16 into aws:master Dec 29, 2021
@mergify
Copy link
Contributor

mergify bot commented Dec 29, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@kornicameister kornicameister deleted the fix_17807 branch December 29, 2021 10:17
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…ws#18086)

Adds `variables` method that allows to retrieve action's [variables](https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-variables.html)
using type safe approach.
With that we can rely on compiler to pick up incorrect access instead
of hacking it with plain strings.

fixes: aws#17807

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(code_pipeline_actions): Access to variables in CodeStarConnectionsSourceAction
3 participants