Skip to content

2025 04 15 tidy #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -10,31 +10,31 @@ async function run () {
const myToken = core.getInput('myToken')
// use myToken: ${{ secrets.GITHUB_TOKEN }} in your workflow
const octokit = github.getOctokit(myToken)
console.log("github object is ", github);
core.info("github object is ", github);
const req = {
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
}
// console.log("req is ", req);
core.info("req is ", req);
const { data: pullRequest } = await octokit.rest.pulls.get(
req
)
console.log("pullRequest is ", pullRequest);
core.info("pullRequest is ", pullRequest);

const body = pullRequest.body
// console.log("found body=",body);
core.info("found body=",body);
const regexp = /https:\/\/github.com\/cfengine\/([A-Za-z0-9_.-]*)\/pull\/(\d*)/g
let matches = []
if (body) {
matches = body.matchAll(regexp)
}
for (const match of matches) {
core.setOutput(match[1], 'refs/pull/' + match[2] + '/merge')
console.log(`added ${match[1]} => refs/pull/${match[2]}/merge`);
core.info(`added ${match[1]} => refs/pull/${match[2]}/merge`);
}
core.setOutput(context.payload.repository.name, context.ref);
console.log(`added pull request ref ${context.payload.repository.name} => ${context.ref}`);
core.info(`added pull request ref ${context.payload.repository.name} => ${context.ref}`);
}

run()
1 change: 1 addition & 0 deletions node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/eslint

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/js-yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/resolve

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/rimraf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3,634 changes: 3,634 additions & 0 deletions node_modules/.package-lock.json

Large diffs are not rendered by default.

155 changes: 153 additions & 2 deletions node_modules/@actions/core/README.md
12 changes: 8 additions & 4 deletions node_modules/@actions/core/lib/command.js
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/command.js.map
8 changes: 6 additions & 2 deletions node_modules/@actions/core/lib/core.d.ts
50 changes: 29 additions & 21 deletions node_modules/@actions/core/lib/core.js
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/core.js.map
16 changes: 10 additions & 6 deletions node_modules/@actions/core/lib/file-command.js
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/file-command.js.map
6 changes: 3 additions & 3 deletions node_modules/@actions/core/lib/oidc-utils.js
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/oidc-utils.js.map
8 changes: 6 additions & 2 deletions node_modules/@actions/core/lib/path-utils.js
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/path-utils.js.map
15 changes: 15 additions & 0 deletions node_modules/@actions/core/lib/platform.d.ts
94 changes: 94 additions & 0 deletions node_modules/@actions/core/lib/platform.js
1 change: 1 addition & 0 deletions node_modules/@actions/core/lib/platform.js.map
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/summary.d.ts
2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/summary.js.map
13 changes: 6 additions & 7 deletions node_modules/@actions/core/package.json
9 changes: 9 additions & 0 deletions node_modules/@actions/exec/LICENSE.md
57 changes: 57 additions & 0 deletions node_modules/@actions/exec/README.md
24 changes: 24 additions & 0 deletions node_modules/@actions/exec/lib/exec.d.ts
103 changes: 103 additions & 0 deletions node_modules/@actions/exec/lib/exec.js
1 change: 1 addition & 0 deletions node_modules/@actions/exec/lib/exec.js.map
57 changes: 57 additions & 0 deletions node_modules/@actions/exec/lib/interfaces.d.ts
3 changes: 3 additions & 0 deletions node_modules/@actions/exec/lib/interfaces.js
1 change: 1 addition & 0 deletions node_modules/@actions/exec/lib/interfaces.js.map
37 changes: 37 additions & 0 deletions node_modules/@actions/exec/lib/toolrunner.d.ts
618 changes: 618 additions & 0 deletions node_modules/@actions/exec/lib/toolrunner.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions node_modules/@actions/exec/lib/toolrunner.js.map
41 changes: 41 additions & 0 deletions node_modules/@actions/exec/package.json
7 changes: 4 additions & 3 deletions node_modules/@actions/github/lib/context.js
2 changes: 1 addition & 1 deletion node_modules/@actions/github/lib/context.js.map
10 changes: 7 additions & 3 deletions node_modules/@actions/github/lib/github.js
Loading