diff --git a/.github/workflows/src/app/stepper.js b/.github/workflows/src/app/stepper.js new file mode 100644 index 00000000..44a77655 --- /dev/null +++ b/.github/workflows/src/app/stepper.js @@ -0,0 +1 @@ +import { Octokit, App, Action } from "octokit"; diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 41514d8b..41a72105 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -1,5 +1,37 @@ +// "GITHUB_EVENT_NAME": "pull_request", +// "GITHUB_REF": "refs/pull/2/merge", +// "GITHUB_API_URL": "https://api.github.com", +// "GITHUB_SHA": "b69202fcb31aeca2d94b021bfe108df1251a53ca", +// "GITHUB_GRAPHQL_URL": "https://api.github.com/graphql", +// "GITHUB_ACTOR": "renz45", +// "GITHUB_JOB": "build", +// "GITHUB_BASE_REF": "main", +// "GITHUB_WORKFLOW": "Graduation Helper", + + console.log("THIS IS NODE") console.log(`sha: ${process.env.GITHUB_SHA}`) console.log(`ref: ${process.env.GITHUB_REF}`) -console.log(`env: ${JSON.stringify(process.env)}`) + + +// stepper + +// reverse parse markdown from bot comment, determine which step the PR is on: + +// * Participated in 2020 +// * no - close PR +// * SDP? +// * no - request changes +// * Shipping form complete? +// * no - request changes +// * Correct file path +// * no - request changes +// * Markdown correct? +// * no - request changes +// * Follows COC +// * no - close PR +// * congrats! +// * merge PR + +