Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bonyuta0204 committed Nov 30, 2023
1 parent 201483a commit f931a42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/auto-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run a script
run: |
git log origin/test/ci..origin/release-stg
echo "=========================="
git log origin/test/ci
- name: Run a script
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34364,7 +34364,7 @@ const core_1 = __nccwpck_require__(9093);
const simple_git_1 = __importDefault(__nccwpck_require__(791));
const git = (0, simple_git_1.default)();
async function fetchRemoteBranches() {
await git.fetch([]);
await git.fetch(["--unshallow"]);
const branches = await git.branch(["-r"]);
return branches.all.map((branch) => branch.replace("origin/", ""));
}
Expand Down
6 changes: 3 additions & 3 deletions src/git-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function fetchRemoteBranches() {

export async function hasCommitsBetween(
srcBranch: string,
targetBranch: string
targetBranch: string,
) {
const commits = await git.log({
from: srcBranch,
Expand All @@ -20,8 +20,8 @@ export async function hasCommitsBetween(
});
debug(
`Commits between ${srcBranch} and ${targetBranch}: ${JSON.stringify(
commits
)}`
commits,
)}`,
);
return commits.total > 0;
}

0 comments on commit f931a42

Please sign in to comment.