Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
vj-abishek committed Jan 14, 2021
1 parent 1de7a27 commit 861d5e4
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@ const main = async () => {
const comment = core.getInput('comment')

console.log(payload)
return;

if (currentLabel === label) {
try {
await octokit.orgs.checkMembership({
org,
username: payload.issue.user.login,
});
} catch (error) {
await octokit.orgs.createInvitation({
org,
invitee_id: inviteeId,
});
}
}
// if (currentLabel === label) {
// try {
// await octokit.orgs.checkMembership({
// org,
// username: payload.issue.user.login,
// });
// } catch (error) {
// await octokit.orgs.createInvitation({
// org,
// invitee_id: inviteeId,
// });
// }
// }
} catch (error) {
return core.setFailed(error.message);
}
Expand Down

0 comments on commit 861d5e4

Please sign in to comment.