1
0
Fork 0

Add execution state information (#499)

* Add execution state information (#371)

* Type conformance to REST API (#371)

* Changed to get the job name (#371)
pull/507/head
839 2020-06-26 12:25:13 +09:00 committed by GitHub
parent 7a1a0dd6fc
commit 2d47f7b7f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@ export class Context {
workflow: string
action: string
actor: string
job: string
runNumber: number
runId: number
/**
* Hydrate the context from the environment
@ -37,6 +40,9 @@ export class Context {
this.workflow = process.env.GITHUB_WORKFLOW as string
this.action = process.env.GITHUB_ACTION as string
this.actor = process.env.GITHUB_ACTOR as string
this.job = process.env.GITHUB_JOB as string
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER as string, 10)
this.runId = parseInt(process.env.GITHUB_RUN_ID as string, 10)
}
get issue(): {owner: string; repo: string; number: number} {