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

Implement library for custom scaffolder actions. #59

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

Xantier
Copy link
Contributor

@Xantier Xantier commented Feb 20, 2024

  • Add functionality to receive custom scaffolder action triggering
  • Add context provider to handle action running
  • Add workspace manager to retrieve and upload wanted scaffolder workspace from/to S3 based on provided presigned URLs
  • Add CustomScaffolderAction class to wrap the needed endpoint calls to create a simpler library interface
  • Add docs

Copy link

This pull request has been linked to Shortcut Story #18723: Spike: Create epic for Custom Scaffolder Actions.

}


async log(content: string, context?: Record<string, string>) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simple custom scaffolder context which exposes a logger, workspace and the payload passed into when the action was triggered

@Xantier Xantier marked this pull request as draft February 20, 2024 16:12
@Xantier Xantier changed the title Add initial implementation of custom scaffolder actions. Implement library for custom scaffolder actions. Mar 18, 2024
@Xantier Xantier marked this pull request as ready for review March 18, 2024 14:22
Copy link
Contributor Author

Choose a reason for hiding this comment

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

entityProvider side of the agent is untouched, just moved to a folder

);

logger.info('File uploaded');
const etag = (response?.headers?.etag as string)?.replaceAll('"', '');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

AWS S3 produces etags that are wrapped in ". It's implemented according to spec and will never change

@Xantier Xantier requested a review from a team March 18, 2024 14:43
Copy link

@roadgork roadgork left a comment

Choose a reason for hiding this comment

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

can't see any problems

@Xantier Xantier merged commit ad701fa into main Mar 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants