Skip to content

suggest a feature or new content for the hackforla.org website #765

suggest a feature or new content for the hackforla.org website

suggest a feature or new content for the hackforla.org website #765

name: Move Closed Issues
on:
issues:
types:
- closed
jobs:
Move-Closed-Issues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# 1: Sort closed issues based on labels
- name: Sort Closed Issues by Label
uses: actions/github-script@v7
id: sort-closed-issues
with:
script: |
const script = require('./github-actions/move-closed-issues/sort-closed-issues.js');
const sortIssues = script({context});
return sortIssues;
result-encoding: string
# 2: Move closed issues
- name: Move Closed Issue
uses: actions/github-script@v7
id: move-closed-issue
with:
github-token: ${{ secrets.HACKFORLA_GRAPHQL_TOKEN }}
script: |
const results = '${{ steps.sort-closed-issues.outputs.result }}';
const script = require('./github-actions/move-closed-issues/move-closed-issues.js');
script({github, context}, results);