Skip to content

Commit

Permalink
Merge pull request #55 from open-ish/fix/use-auth-hearders-on-create-…
Browse files Browse the repository at this point in the history
…pulls

feat: use final lib name
  • Loading branch information
tassioFront authored Nov 6, 2024
2 parents 9b68519 + 7e489af commit 747a56a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 37 deletions.
35 changes: 0 additions & 35 deletions packages/dependabot-pr-manager/CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/dependabot-pr-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fake-d-pr-m",
"name": "dependabot-pr-manager",
"version": "0.0.0-semantic-release",
"description": "A script to manager Dependabot PRs",
"type": "commonjs",
Expand Down
1 change: 0 additions & 1 deletion packages/dependabot-pr-manager/src/lib/gitHubHelper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Octokit } from '@octokit/rest';
import { colors } from './colors';
//test

interface GitHubHelperOptions {
token: string;
Expand Down
3 changes: 3 additions & 0 deletions packages/dependabot-pr-manager/src/lib/script.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ async function main() {

console.log(`${colors.blue}Creating pull request...${colors.reset}`);
const { data: pr } = await octokit.pulls.create({
headers: {
authorization: `token ${GITHUB_TOKEN}`,
},
owner: REPO_OWNER,
repo: repoName,
title: 'ci: combined Dependabot Updates',
Expand Down

0 comments on commit 747a56a

Please sign in to comment.