googleworkspace / apps-script-samples

Apps Script samples for Google Workspace products.
https://developers.google.com/apps-script
Apache License 2.0
4.49k stars 1.83k forks source link

3 #446

Open Iben1993 opened 5 months ago

Iben1993 commented 5 months ago

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Is it been tested?

Checklist

google-cla[bot] commented 5 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Iben1993 commented 5 months ago

d2c90495fc4c343edc07faa8d985dcf56953b8a9

Iben1993 commented 5 months ago

608416858c6d21ad2438d3494f1b3fa7ee9644de

snippet-bot[bot] commented 5 months ago

Here is the summary of possible violations 😱

There is a possible violation for not having product prefix.

The end of the violation section. All the stuff below is FYI purposes only.


Here is the summary of changes.

You are about to add 30 region tags. - [advanced/chat.gs:17](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/chat.gs#L17), tag `chat_post_message_with_user_credentials` - [advanced/chat.gs:33](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/chat.gs#L33), tag `chat_post_message_with_app_credentials` - [advanced/chat.gs:57](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/chat.gs#L57), tag `chat_get_space` - [advanced/chat.gs:74](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/chat.gs#L74), tag `chat_create_space` - [advanced/chat.gs:89](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/chat.gs#L89), tag `chat_list_memberships` - [advanced/classroom.gs:16](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/classroom.gs#L16), tag `apps_script_classroom_list_courses` - [advanced/driveLabels.gs:17](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/driveLabels.gs#L17), tag `apps_script_drive_labels_list_labels` - [advanced/driveLabels.gs:42](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/driveLabels.gs#L42), tag `apps_script_drive_labels_get_label` - [advanced/driveLabels.gs:60](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/driveLabels.gs#L60), tag `apps_script_drive_labels_list_labels_on_drive_item` - [advanced/people.gs:78](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/people.gs#L78), tag `people_get_group` - [advanced/people.gs:100](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/people.gs#L100), tag `people_get_contact_by_email` - [advanced/people.gs:126](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/people.gs#L126), tag `people_get_full_name` - [advanced/people.gs:147](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/people.gs#L147), tag `people_get_phone_numbers` - [advanced/people.gs:168](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/people.gs#L168), tag `people_get_single_phone_number` - [advanced/slides.gs:17](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/slides.gs#L17), tag `apps_script_slides_create_presentation` - [advanced/slides.gs:36](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/slides.gs#L36), tag `apps_script_slides_create_slide` - [advanced/slides.gs:68](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/slides.gs#L68), tag `apps_script_slides_read_page` - [advanced/slides.gs:91](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/slides.gs#L91), tag `apps_script_slides_add_text_box` - [advanced/slides.gs:149](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/slides.gs#L149), tag `apps_script_slides_format_shape_text` - [advanced/slides.gs:193](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/advanced/slides.gs#L193), tag `apps_script_slides_save_thumbnail` - [sheets/removingDuplicates/removingDuplicates.gs:35](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/sheets/removingDuplicates/removingDuplicates.gs#L35), tag `apps_script_sheets_new_data` - [slides/selection/selection.gs:29](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/slides/selection/selection.gs#L29), tag `apps_script_slides_selection_type` - [slides/selection/selection.gs:112](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/slides/selection/selection.gs#L112), tag `apps_script_slides_select_multiple_page_elements` - [slides/selection/selection.gs:161](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/slides/selection/selection.gs#L161), tag `apps_script_slides_range_selection_in_shape` - [slides/selection/selection.gs:181](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/slides/selection/selection.gs#L181), tag `apps_script_slides_cursor_selection_in_shape` - [slides/selection/selection.gs:201](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/slides/selection/selection.gs#L201), tag `apps_script_slides_range_selection_in_table` - [slides/selection/selection.gs:223](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/slides/selection/selection.gs#L223), tag `apps_script_slides_cursor_selection_in_table` - [solutions/automations/upload-files/Code.js:20](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/solutions/automations/upload-files/Code.js#L20), tag `apps_script_upload_files` - [solutions/automations/upload-files/Setup.js:17](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/solutions/automations/upload-files/Setup.js#L17), tag `apps_script_upload_files_setup` - [solutions/automations/youtube-tracker/email.html:17](https://github.com/Iben1993/apps-script-samples/blob/62f0374601d8fbce450e967d47b0094a8c2dbff0/solutions/automations/youtube-tracker/email.html#L17), tag `email_template`
You are about to delete 48 region tags. - [advanced/classroom.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/classroom.gs#L16), tag `classroom_list_courses` - [advanced/fusionTables.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/fusionTables.gs#L16), tag `apps_script_fusion_tables_list` - [advanced/fusionTables.gs:34](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/fusionTables.gs#L34), tag `apps_script_fusion_tables_run_query` - [advanced/googlePlus.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/googlePlus.gs#L16), tag `apps_script_plus_people` - [advanced/googlePlus.gs:42](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/googlePlus.gs#L42), tag `apps_script_plus_posts` - [advanced/googlePlusDomains.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/googlePlusDomains.gs#L16), tag `apps_script_plus_domains_profile` - [advanced/googlePlusDomains.gs:32](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/googlePlusDomains.gs#L32), tag `apps_script_plus_domains_circle` - [advanced/googlePlusDomains.gs:47](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/googlePlusDomains.gs#L47), tag `apps_script_plus_domains_get_posts` - [advanced/googlePlusDomains.gs:73](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/googlePlusDomains.gs#L73), tag `apps_script_plus_domains_create_post` - [advanced/mirror.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/mirror.gs#L16), tag `apps_script_mirror_timeline` - [advanced/mirror.gs:43](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/mirror.gs#L43), tag `apps_script_mirror_contact` - [advanced/mirror.gs:64](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/mirror.gs#L64), tag `apps_script_mirror_location` - [advanced/prediction.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/prediction.gs#L16), tag `apps_script_prediction_query_hosted_model` - [advanced/prediction.gs:55](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/prediction.gs#L55), tag `apps_script_prediction_create_new_model` - [advanced/prediction.gs:77](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/prediction.gs#L77), tag `apps_script_prediction_query_training_status` - [advanced/prediction.gs:93](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/prediction.gs#L93), tag `apps_script_prediction_query_trailed_model` - [advanced/slides.gs:17](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/slides.gs#L17), tag `slides_create_presentation` - [advanced/slides.gs:36](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/slides.gs#L36), tag `slides_create_slide` - [advanced/slides.gs:68](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/slides.gs#L68), tag `slides_read_page` - [advanced/slides.gs:91](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/slides.gs#L91), tag `slides_add_text_box` - [advanced/slides.gs:149](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/slides.gs#L149), tag `slides_format_shape_text` - [advanced/slides.gs:193](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/slides.gs#L193), tag `slides_save_thumbnail` - [advanced/urlShortener.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/urlShortener.gs#L16), tag `apps_script_url_shortener_shorten` - [advanced/urlShortener.gs:28](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/advanced/urlShortener.gs#L28), tag `apps_script_url_shortener_get_clicks` - [calendar/vacationCalendar/vacationCalendar.gs:16](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/calendar/vacationCalendar/vacationCalendar.gs#L16), tag `apps_script_calendar_vacation` - [gmail/mailmerge/mailmerge.gs:17](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L17), tag `apps_script_gmail_mail_merge` - [gmail/mailmerge/mailmerge.gs:148](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L148), tag `apps_script_gmail_email_data_range` - [gmail/mailmerge/mailmerge.gs:152](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L152), tag `apps_script_gmail_email_template` - [gmail/mailmerge/mailmerge.gs:157](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L157), tag `apps_script_gmail_email_objects` - [gmail/mailmerge/mailmerge.gs:168](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L168), tag `apps_script_gmail_email_text` - [gmail/mailmerge/mailmerge.gs:176](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L176), tag `apps_script_gmail_send_email` - [gmail/mailmerge/mailmerge.gs:192](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L192), tag `apps_script_gmail_template_vars` - [gmail/mailmerge/mailmerge.gs:201](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L201), tag `apps_script_gmail_template_variable_data` - [gmail/mailmerge/mailmerge.gs:204](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/gmail/mailmerge/mailmerge.gs#L204), tag `apps_script_gmail_template_replace` - [sheets/api/spreadsheet_snippets.gs:243](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/api/spreadsheet_snippets.gs#L243), tag `sheets_append_values` - [sheets/bracketmaker/bracketmaker.gs:17](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/bracketmaker/bracketmaker.gs#L17), tag `apps_script_bracketmaker` - [sheets/bracketmaker/bracketmaker.gs:40](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/bracketmaker/bracketmaker.gs#L40), tag `apps_script_bracketmaker_range_players_1` - [sheets/bracketmaker/bracketmaker.gs:46](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/bracketmaker/bracketmaker.gs#L46), tag `apps_script_bracketmaker_range_players_2` - [sheets/bracketmaker/bracketmaker.gs:53](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/bracketmaker/bracketmaker.gs#L53), tag `apps_script_bracketmaker_num_players_1` - [sheets/bracketmaker/bracketmaker.gs:71](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/bracketmaker/bracketmaker.gs#L71), tag `apps_script_bracketmaker_num_players_2` - [sheets/bracketmaker/bracketmaker.gs:121](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/bracketmaker/bracketmaker.gs#L121), tag `apps_script_bracketmaker_set_bracket_item` - [sheets/removingDuplicates/removingDuplicates.gs:26](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/sheets/removingDuplicates/removingDuplicates.gs#L26), tag `apps_script_sheets_new_data` - [slides/selection/selection.gs:25](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/slides/selection/selection.gs#L25), tag `apps_script_slides_selection_type` - [slides/selection/selection.gs:96](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/slides/selection/selection.gs#L96), tag `apps_script_slides_select_multiple_page_elements` - [slides/selection/selection.gs:136](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/slides/selection/selection.gs#L136), tag `apps_script_slides_range_selection` - [slides/selection/selection.gs:152](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/slides/selection/selection.gs#L152), tag `apps_script_slides_cursor_selection` - [slides/selection/selection.gs:168](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/slides/selection/selection.gs#L168), tag `apps_script_slides_range_selection` - [slides/selection/selection.gs:186](https://github.com/googleworkspace/apps-script-samples/blob/389fc151678f62f3d31ef56c1b966d42a61d67b1/slides/selection/selection.gs#L186), tag `apps_script_slides_cursor_selection`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below: