# Name of the property. You can have multiple properties with completely
# different config blocks for different sections of your site.
# For example, you can have one property to handle comment submission and
# another one to handle posts.
simulations:
  allowedFields: ["benchmark", "metadata", "data"]
  allowedOrigins: ["localhost", "pages.nist.gov"]
  branch: "master"
  commitMessage: "PFHub Upload: {options.simulation_name}"
  pullRequestBody: "This a new PFHub upload\n\nTo review:\n\n- Wait for the tests to pass.\n\n- Go to http://random-cat-{pull-request-number}.surge.sh/simulations/{simulation_name}\n\n"
  filename: "meta"
  extension: "yaml"
  format: "yaml"
  moderation: true
  name: "https://pages.nist.gov/pfhub/"
  path: "_data/simulations/{options.simulation_name}"
  requiredFields: ["benchmark", "metadata", "data"]
  generatedFields:
    date:
      type: date
      options:
        format: "timestamp-seconds"

# Name of the property. You can have multiple properties with completely
# different config blocks for different sections of your site.
# For example, you can have one property to handle comment submission and
# another one to handle posts.
simulations:
  allowedFields: ["benchmark", "metadata", "data"]
  allowedOrigins: ["localhost", "pages.nist.gov"]
  branch: "master"
  commitMessage: "PFHub Upload: {options.simulation_name}"
  pullRequestBody: "This a new PFHub upload\n\nTo review:\n\n- Wait for the tests to pass.\n\n- Go to http://random-cat-{pull-request-number}.surge.sh/simulations/{simulation_name}\n\nGitHub ID: @{fields.metadata.author.github_id}"
  filename: "meta"
  extension: "yaml"
  format: "yaml"
  moderation: true
  name: "https://pages.nist.gov/pfhub/"
  path: "_data/simulations/{options.simulation_name}"
  requiredFields: ["benchmark", "metadata", "data"]
  generatedFields:
    date:
      type: date
      options:
        format: "timestamp-seconds"

Include GitHub ID in pull request body
Include GitHub ID in pull request body

Test Including GitHub ID in pull request body for simulation uploads.
