@jsenv/github-check-run 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/github-check-run",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Interact with GitHub check rest API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -6,9 +6,6 @@ export const readGitHubWorkflowEnv = () => {
6
6
  `missing process.env.GITHUB_EVENT_NAME, we are not in a github workflow`,
7
7
  );
8
8
  }
9
- if (eventName !== "pull_request" && eventName !== "pull_request_target") {
10
- throw new Error(`must be called only in a pull request`);
11
- }
12
9
  const githubToken = process.env.GITHUB_TOKEN;
13
10
  if (!githubToken) {
14
11
  throw new Error(`missing githubToken`);