You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rob Dodson edited this page Oct 8, 2021
·
2 revisions
The web.dev handbook quickstart has a link to a content proposal form. This form is used by anyone who wants to submit content to the site.
When users fill out the form, it will trigger an email that gets sent to the tech writing team, and it will create a GitHub issue with information about the post.
The email and the GitHub issue are generated by an App Script that is associated with the form.
Accessing the App Script
Go to the content proposal form. Note: You must have edit access to modify the form.
Click on the pencil icon in the bottom right corner.
Click on the Responses tab
Click the green View responses in sheets icon. This will open a Google Sheet.
Click Tools > Script editor. This will open the App Script editor.
After you've made changes to the script, press the Save icon and your changes will take effect immediately.
Debugging the App Script
There is a flag at the top of the App Script that puts it into DEBUG mode. Setting this flag to true will prevent the script from generating emails or GitHub issues. You can then fill out the form and press submit, and see the values logged in the App Script console.
To view the logs, hover over the icons on the left hand side and click Executions. You can click on any execution in the list to view all of its console logs.
GitHub API keys
The script uses a GitHub API key to create GitHub issues when the form is submitted. We think this API key is the same one used by the chrome-devrel-review-bot.