Skip to content

Commit

Permalink
Update production settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Sep 13, 2023
1 parent a178526 commit 0bf3f00
Showing 1 changed file with 240 additions and 19 deletions.
259 changes: 240 additions & 19 deletions config/settings-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,276 @@ buffy:
gh_access_token: <%= ENV['BUFFY_GH_ACCESS_TOKEN'] %>
gh_secret_token: <%= ENV['BUFFY_GH_SECRET_TOKEN'] %>
teams:
editors: ReScience/editors
eics: ReScience/associate-editors
editors: 1415509
eics: 1474888
#editors: ReScience/editors
#eics: ReScience/associate-editors
responders:
help:
- commands:
help_command: commands
- help:
help_command: help
hidden: true
whedon:
thanks:
hidden: true
reviewers_list:
only:
- editors
- eics
if:
role_assigned: editor
reject_msg: "Can't add reviewers: There is no editor assigned yet"
add_as_assignee: true
list_team_members:
command: list editors
description: "List all ReScience C Editors"
team_id: 1415509
heading: Current ReScience C editors
assign_editor:
only:
- editors
- eics
external_call:
url: "https://resciencec.theoj.org/papers/api_assign_editor"
method: post
query_params:
secret: <%= ENV['RESCIENCEC_SECRET'] %>
mapping:
id: issue_id
editor: editor
silent: true
remove_editor:
only:
- editors
- eics
no_editor_text: "TBD"
add_remove_assignee:
only:
- editors
- eics
list_team_members:
command: list editors
description: "List all ReScience C Associate Editors"
team_id: 1474888
heading: Current ReScience C editors
reminders:
only: editors
check_references:
description: "Check the references of the paper for missing DOIs"
example_invocation: "@editorialbot check references"
repo_checks:
description: "Perform checks on the repository"
example_invocation: "@editorialbot check repository"
reviewer_checklist_comment:
if:
title: "^\\[REVIEW\\]:"
reject_msg: Checklists can only be created once the review has started in the review issue
template_file: reviewer_checklist.md
data_from_issue:
- target-repository
- author-handle
set_value:
- version:
only:
- editors
- eics
sample_value: "v1.0.0"
- archive:
- branch:
sample_value: "rescience-paper"
- target-repository:
only:
- editors
- eics
sample_value: "10.21105/ReScienceC.12345"
close_issue_command:
sample_value: "https://github.com/organization/repo"
aliased_as: repository
external_call:
url: "https://rescience.theoj.org/papers/api_update_paper_info"
method: post
query_params:
secret: <%= ENV['RESCIENCEC_SECRET'] %>
mapping:
id: issue_id
repository_url: new_value
silent: true
openjournals_set_archive:
only:
- editors
- eics
command: reject
add_labels:
- rejected
ping_track_eics:
only: editors
external_service:
- reject:
only: eics
command: reject
description: "Reject paper"
url: "https://resciencec.theoj.org/papers/api_reject"
query_params:
secret: <%= ENV['RESCIENCEC_SECRET'] %>
mapping:
id: issue_id
add_labels:
- rejected
success_msg: "Paper rejected."
error_msg: "There was a problem rejecting the paper."
close: true
- withdraw:
only: eics
command: withdraw
description: "Withdraw paper"
url: "https://resciencec.theoj.org/papers/api_withdraw"
query_params:
secret: <%= ENV['RESCIENCEC_SECRET'] %>
mapping:
id: issue_id
add_labels:
- withdrawn
success_msg: "Paper withdrawn."
error_msg: "There was a problem withdrawing the paper."
close: true
- invite_editor:
only: eics
command: "invite @(.*) as editor"
description: "Invite an editor to edit a submission (sending them an email)"
url: "https://resciencec.theoj.org/papers/api_editor_invite"
query_params:
secret: <%= ENV['RESCIENCEC_SECRET'] %>
mapping:
id: issue_id
editor: match_data_1
success_msg: Invitation to edit this submission sent!
error_msg: "There was a problem inviting the user to edit this submission."
github_action:
- draft_paper:
command: generate pdf
workflow_repo: ReScience/ReScienceC-papers
workflow_name: draft-paper.yml
description: Generates the pdf paper
data_from_issue:
- branch
- target-repository
- issue_id
mapping:
repository_url: target-repository
- recommend_acceptance:
if:
value_matches:
archive: "^((?!Pending).)*$"
reject_msg: "Paper is not ready for acceptance yet, the archive is missing"
only: editors
command: recommend-accept
workflow_repo: ReScience/ReScienceC-papers
workflow_name: recommend-acceptance.yml
description: Recommends the submission for acceptance
message: "```\nAttempting dry run of processing paper acceptance...\n```"
inputs:
add_labels: recommend-accept
data_from_issue:
- branch
- target-repository
- issue_id
mapping:
repository_url: target-repository
run_responder:
responder_key: check_references
- accept:
if:
value_matches:
archive: "^((?!Pending).)*$"
reject_msg: "Paper is not ready for acceptance yet, the archive is missing"
only: eics
command: accept
workflow_repo: ReScience/ReScienceC-papers
workflow_name: accept.yml
description: Accept and publish the paper
message: "```\nDoing it live! Attempting automated processing of paper acceptance...\n```"
inputs:
add_labels: "accepted,published"
data_from_issue:
- branch
- target-repository
- issue_id
mapping:
repository_url: target-repository
- reaccept:
if:
value_matches:
archive: "^((?!Pending).)*$"
reject_msg: "Can't rebuild paper, there's no value for archive"
only: eics
command: reaccept
workflow_repo: ReScience/ReScienceC-papers
workflow_name: reaccept.yml
description: Update data on an accepted/published paper
message: "```\nRebuilding paper!\n```"
data_from_issue:
- branch
- target-repository
- issue_id
mapping:
repository_url: target-repository
- preprint:
command: generate preprint
workflow_repo: ReScience/ReScienceC-papers
workflow_name: preprint.yml
description: Generates a LaTeX preprint file
data_from_issue:
- branch
- target-repository
- issue_id
mapping:
repository_url: target-repository
basic_command:
- query_scope:
only: editors
command: query scope
description: Flag submission with questionable scope
add_labels:
- query-scope
message: "Submission flagged for editorial review."
- list_reviewers:
command: list reviewers
description: Get a link to the complete list of reviewers
template_file: reviewers_list.
update_comment:
- editor_post-review_checklist:
only: editors
if:
title: "^\\[REVIEW\\]:"
reject_msg: "This is not a review issue"
command: create post-review checklist
description: Creates a post-review checklist with editor and authors tasks
template_file: post-review_checklist.md
welcome:
- pre_review_issue:
if:
title: "^\\[PRE REVIEW\\]:"
template_file: pre-review_welcome.md
check_references: true
repo_checks: true
run_responder:
responder_key: github_action
responder_name: draft_paper
- review_issue:
if:
title: "^\\[REVIEW\\]:"
template_file: review_welcome.md
check_references: true
repo_checks: true
run_responder:
responder_key: github_action
responder_name: draft_paper
- close_other_issues:
if:
title: "^(?!\\[REVIEW\\]:|\\[PRE REVIEW\\]:)"
template_file: close.md
close: true
goodbye:
if:
labels: accepted
template_file: goodbye.md
external_start_review:
only: editors
external_call:
url: "https://resciencec.theoj.org/papers/api_start_review"
query_params:
secret: <%= ENV['RESCIENCEC_SECRET'] %>
data_from_issue:
- branch
mapping:
id: issue_id
editor: editor_login
reviewers: reviewers_logins
silent: true
template_file: "review_started.md"
close: true

0 comments on commit 0bf3f00

Please sign in to comment.