This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove need for GitHub client
This removes the need for the at-actions/github client enitrely, the reasoning for this relates to [1]. This commit works towards a minimal GitHub Actions Action that runs SVGO. In later iterations the client may be added back but it is important to remember the following: the client is very limited when running in the context of a Pull Request from a fork - it cannot, in the context of this commit, read comments on the Pull Request or post a comment to a Pull Request. -- 1. #354
- Loading branch information
1 parent
afb96e2
commit b1d17d5
Showing
10 changed files
with
4 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
import type { Octokit } from "@octokit/core"; | ||
|
||
import * as core from "@actions/core"; | ||
import * as github from "@actions/github"; | ||
|
||
import { INPUT_NAME_REPO_TOKEN, INPUT_REQUIRED } from "./constants"; | ||
import main from "./main"; | ||
|
||
const token: string = core.getInput(INPUT_NAME_REPO_TOKEN, INPUT_REQUIRED); | ||
const client: Octokit = github.getOctokit(token); | ||
|
||
main(client, github.context); | ||
main(github.context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.