Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Commit

Permalink
dev-hato/actions-update-gitleaksによって立てられたPRもcloseする (#20)
Browse files Browse the repository at this point in the history
* dev-hato/actions-update-gitleaksによって立てられたPRもcloseする

* ハイフンは共通のものとする
  • Loading branch information
massongit authored Jul 16, 2022
1 parent 3279565 commit 675f5c9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,16 @@ runs:
const jobs = yml_file.jobs
for (const job_name of Object.keys(jobs)) {
for (const step of jobs[job_name].steps) {
if (step.uses?.startsWith('dev-hato/actions-diff-pr-management')) {
const head_name = step.with['branch-name-prefix'] + '-' + HEAD_REF
if (step.uses && (step.uses.startsWith('dev-hato/actions-diff-pr-management') || step.uses.startsWith('dev-hato/actions-update-gitleaks'))) {
let head_name
if (step.uses.startsWith('dev-hato/actions-update-gitleaks')) {
head_name = 'fix-version-gitleaks'
} else {
head_name = step.with['branch-name-prefix']
}
head_name += '-' + HEAD_REF
let head = "${{github.event.pull_request.head.repo.owner.login}}:"
head += head_name
const pulls_list_params = {
Expand Down

0 comments on commit 675f5c9

Please sign in to comment.