Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

content proposal form

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

  1. Go to the content proposal form. Note: You must have edit access to modify the form.
  2. Click on the pencil icon in the bottom right corner.
  3. Click on the Responses tab
  4. Click the green View responses in sheets icon. This will open a Google Sheet. image
  5. 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.

Clone this wiki locally