Skip to content

Commit

Permalink
test1
Browse files Browse the repository at this point in the history
  • Loading branch information
alecrajeev committed Jul 22, 2024
1 parent c2ffe0d commit 954d44b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
15 changes: 1 addition & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27465,7 +27465,6 @@ function wrappy (fn, cb) {
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const github = __nccwpck_require__(6366);
const action = __nccwpck_require__(2308);

async function run() {
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
Expand All @@ -27474,29 +27473,17 @@ async function run() {

// Check if the event is a pull request event or pull request target event
if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') {
startAction(github.context, octokit);
action(github.context, octokit);
} else {
console.log('This action only runs on pull request events.');
}
}

function startAction(context, api) {
core.log("startAction")
}

module.exports = {
run
}


/***/ }),

/***/ 2308:
/***/ ((module) => {

module.exports = eval("require")("./lib/action");


/***/ }),

/***/ 9491:
Expand Down
10 changes: 0 additions & 10 deletions dist/licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


@vercel/ncc
MIT
Copyright 2018 ZEIT, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

before-after-hook
Apache-2.0
Apache License
Expand Down
7 changes: 1 addition & 6 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const github = require('@actions/github');
const action = require('./lib/action');

async function run() {
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
Expand All @@ -8,16 +7,12 @@ async function run() {

// Check if the event is a pull request event or pull request target event
if (github.context.eventName === 'pull_request' || github.context.eventName === 'pull_request_target') {
startAction(github.context, octokit);
action(github.context, octokit);
} else {
console.log('This action only runs on pull request events.');
}
}

function startAction(context, api) {
core.log("startAction")
}

module.exports = {
run
}

0 comments on commit 954d44b

Please sign in to comment.