Skip to content

Psychometric approach to legal decision-making data #112

Psychometric approach to legal decision-making data

Psychometric approach to legal decision-making data #112

Workflow file for this run

name: Add Issue to Project and Update Status
on:
issues:
types:
- labeled
- assigned
jobs:
process-issue:
runs-on: ubuntu-latest
steps:
- name: Check if Issue Has "data" Label and an Assignee
id: check_conditions
uses: actions/github-script@v6
with:
script: |
const issue = context.payload.issue;
const hasDataLabel = issue.labels.some(label => label.name === 'data queue');
const hasAssignee = issue.assignees.length > 0;
return hasDataLabel && hasAssignee;
- name: Add Issue to Project
if: steps.check_conditions.outputs.result == 'true'
id: add_to_project
uses: actions/[email protected]
with:
project-url: https://github.com/users/ben-domingue/projects/1
github-token: ${{ secrets.PROJECTS_TEST }}
- name: Update Project Item Status to "In Progress"
if: steps.check_conditions.outputs.result == 'true'
uses: nipe0324/[email protected]
with:
project-url: https://github.com/users/ben-domingue/projects/1
github-token: ${{ secrets.PROJECTS_TEST }}
field-name: Status
field-value: In Progress