nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: release-drafter/release-drafter
Pull request #1010 (2022-01-13 02:54:55)

fix server


Patch:
diff --git a/action.js b/action.js
index 7295f37..a9010eb 100644
--- a/action.js
+++ b/action.js
@@ -1,6 +1,6 @@
 const core = require('@actions/core')
 const { run } = require('@probot/adapter-github-actions')
-const { releaseDrafter } = require('./index')
+const releaseDrafter = require('./index')
 
 run(releaseDrafter).catch((error) => {
   core.setFailed(`💥 Release drafter failed with error: ${error.message}`)
diff --git a/dist/index.js b/dist/index.js
index 16072cd..8e0654b 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -132800,7 +132800,7 @@ module.exports = require("zlib");
 /***/ }),
 
 /***/ 24566:
-/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
+/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
 
 const { getConfig } = __nccwpck_require__(35378)
 const { isTriggerableReference } = __nccwpck_require__(49)
@@ -132817,7 +132817,7 @@ const core = __nccwpck_require__(42186)
 const { runnerIsActions } = __nccwpck_require__(98281)
 const ignore = __nccwpck_require__(91230)
 
-exports.releaseDrafter = (app, { getRouter }) => {
+module.exports = (app, { getRouter }) => {
   if (!runnerIsActions() && typeof getRouter === 'function') {
     getRouter().get('/healthz', (request, response) => {
       response.status(200).json({ status: 'pass' })
@@ -134481,7 +134481,7 @@ var __webpack_exports__ = {};
 (() => {
 const core = __nccwpck_require__(42186)
 const { run } = __nccwpck_require__(93159)
-const { releaseDrafter } = __nccwpck_require__(24566)
+const releaseDrafter = __nccwpck_require__(24566)
 
 run(releaseDrafter).catch((error) => {
   core.setFailed(`💥 Release drafter failed with error: ${error.message}`)
diff --git a/index.js b/index.js
index f48bd69..5dfe1d0 100644
--- a/index.js
+++ b/index.js
@@ -13,7 +13,7 @@ const core = require('@actions/core')
 const { runnerIsActions } = require('./lib/utils')
 const ignore = require('ignore')
 
-exports.releaseDrafter = (app, { getRouter }) => {
+module.exports = (app, { getRouter }) => {
   if (!runnerIsActions() && typeof getRouter === 'function') {
     getRouter().get('/healthz', (request, response) => {
       response.status(200).json({ status: 'pass' })


Test patch:
diff --git a/test/index.test.js b/test/index.test.js
index da5dd41..8c1c968 100644
--- a/test/index.test.js
+++ b/test/index.test.js
@@ -1,7 +1,7 @@
 const nock = require('nock')
 const { Probot, ProbotOctokit } = require('probot')
 const { getConfigMock } = require('./helpers/config-mock')
-const { releaseDrafter } = require('../index')
+const releaseDrafter = require('../index')
 const mockedEnv = require('mocked-env')
 const pino = require('pino')
 const Stream = require('stream')