Skip to content

Commit

Permalink
fix: object access
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Mar 7, 2020
1 parent 23d037a commit cad586b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export async function run(): Promise<void> {
console.log(config);
let commentBody = '';
let finalAction = '';
Object.keys(config.action).forEach(label => {
if (config.action[label]['name'] === labelName) {
commentBody = config.action[label]['body'];
finalAction = config.action[label]['action'];
Object.keys(config[`${action}`]).forEach(label => {
if (config[`${action}`][label].name === labelName) {
commentBody = config[`${action}`][label].body;
finalAction = config[`${action}`][label].action;
}
});
core.info(`\
Expand Down

0 comments on commit cad586b

Please sign in to comment.