-
Notifications
You must be signed in to change notification settings - Fork 45
add content id for attachments #30
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,5 +39,5 @@ | |
| attachments: | ||
| type: "array" | ||
| items: | ||
| type: "string" | ||
| description: "The absolute paths to the files to be included as attachments." | ||
| type: "Object" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like simply converting this over, because it would break this action for all users and all workflows that are currently using this action and passing in strings here. We should be able to use attachments:
type: array
description: |
An array or list of items, either strings or objects/dictionaries, that specifies
each file to be included as attachments.
items:
oneOf: # this should be camelCase, as defined by JSONSchema
- type: string
description: The absolute path to the file to be attached
- type: object
description: An object containing file_id and file_path keys
properties:
file_id:
type: string
description: A unique identifier for the attachment in the mail envelope
file_path:
type: string
description: The absolute path to the file to be attachedNote that |
||
| description: "Array of object containing the absolute paths to the files and the file id" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, it should be possible to make this backwards compatible, so users of this pack do not have to update every single place they call this action. Please modify the Python to use the old code path if
elis a string, and the new codepath ifelis a dictionary.Also, please use
snake_casefor dictionary keys in StackStorm, notcamelCase.