Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 committed Dec 18, 2024
1 parent 68a1888 commit aeb95b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/add-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ async function main() {
const issueTitle = context.payload.issue.title;
const issueNumber = context.payload.issue.number;

const token = core.getInput("GITHUB_TOKEN", { required: true });
console.log("Token: ", token);
const octokit = github.getOctokit(token);
const myToken = core.getInput("myToken");
console.log("Token: ", myToken);
const octokit = github.getOctokit({ auth: myToken, request: fetch });

const labels = issueTitle
.match(/\[([^\[\]]+)\]/g)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
echo ${{ github.event.issue.number}}
node .github/scripts/add-labels.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
myToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit aeb95b1

Please sign in to comment.