Skip to content

Commit

Permalink
Update enforceApproval.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ERLindeman authored Sep 19, 2024
1 parent da4cd49 commit c7404fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/enforceApproval.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// .github/enforceApproval.js

const { Octokit } = require("@octokit/rest");
const core = require("@actions/core");

Expand All @@ -8,7 +10,7 @@ const core = require("@actions/core");

// Get repository details from environment variables
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
const pull_number = process.env.GITHUB_REF.split('/').pop();
const pull_number = parseInt(process.env.GITHUB_REF.split('/').pop(), 10);

// Fetch organization members
const org = owner; // Assuming the owner is the organization
Expand Down

0 comments on commit c7404fb

Please sign in to comment.