@evanpurkhiser/tooling-personal
Advanced tools
Comparing version 1.26.0 to 1.27.0
@@ -15,3 +15,5 @@ "use strict"; | ||
const utils_1 = require("../utils"); | ||
const getCommits = () => simple_git_1.default().log({ from: 'HEAD', to: 'origin/master' }); | ||
function getCommits(to) { | ||
return simple_git_1.default().log({ from: 'HEAD', to }); | ||
} | ||
async function pr() { | ||
@@ -39,3 +41,3 @@ const username = await utils_1.getEmailUsername(); | ||
task: async (ctx, task) => { | ||
const commits = await getCommits(); | ||
const commits = await getCommits('origin/master'); | ||
if (commits.total === 0) { | ||
@@ -102,3 +104,3 @@ throw new Error('No commits to push'); | ||
const doPush = async () => { | ||
const newCommits = await getCommits(); | ||
const newCommits = await getCommits('origin/master'); | ||
const commitIdx = newCommits.all.length - selectedCommits.length; | ||
@@ -105,0 +107,0 @@ const rebaseTargetCommit = newCommits.all[commitIdx]; |
{ | ||
"name": "@evanpurkhiser/tooling-personal", | ||
"version": "1.26.0", | ||
"version": "1.27.0", | ||
"description": "Evan Purkhiser's personal tooling", | ||
@@ -30,6 +30,6 @@ "repository": "https://github.com/evanpurkhiser/tooling-personal", | ||
"devDependencies": { | ||
"@evanpurkhiser/eslint-config": "^0.10.1", | ||
"@evanpurkhiser/eslint-config": "^0.17.0", | ||
"@tsconfig/node16": "^1.0.1", | ||
"eslint": "^7.31.0", | ||
"prettier": "^2.3.2", | ||
"eslint": "^8.45.0", | ||
"prettier": "^3.0.0", | ||
"ts-node": "^10.1.0", | ||
@@ -46,5 +46,5 @@ "typescript": "^4.3.5" | ||
"volta": { | ||
"node": "18.11.0", | ||
"node": "18.17.0", | ||
"yarn": "1.22.19" | ||
} | ||
} |
@@ -10,6 +10,6 @@ ## Evan Purkhiser's Personal Tooling | ||
* Select which commits should be part of the PR | ||
* Generates a branch from the commit message, and pushes the | ||
commits up to the remote. | ||
* Prompts for reviewers to assign to the pull request. | ||
* Creates a pull request and assigns the selected reviewers. | ||
- Select which commits should be part of the PR | ||
- Generates a branch from the commit message, and pushes the | ||
commits up to the remote. | ||
- Prompts for reviewers to assign to the pull request. | ||
- Creates a pull request and assigns the selected reviewers. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23159
557