notion-github 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -2
- package/package.json +1 -1
    
        package/dist/cli.js
    CHANGED
    
    | @@ -4558,7 +4558,7 @@ var { | |
| 4558 4558 | 
             
            } = import_index.default;
         | 
| 4559 4559 |  | 
| 4560 4560 | 
             
            // package.json
         | 
| 4561 | 
            -
            var version = "1.0. | 
| 4561 | 
            +
            var version = "1.0.5";
         | 
| 4562 4562 |  | 
| 4563 4563 | 
             
            // src/commands/create/action.ts
         | 
| 4564 4564 | 
             
            var import_rest = require("@octokit/rest");
         | 
| @@ -6017,6 +6017,8 @@ ${error.message}`); | |
| 6017 6017 | 
             
                }
         | 
| 6018 6018 | 
             
                console.log(getMessage("creatingPR", lang));
         | 
| 6019 6019 | 
             
                try {
         | 
| 6020 | 
            +
                  console.log("Config:", config);
         | 
| 6021 | 
            +
                  console.log("Creating PR with options:", options);
         | 
| 6020 6022 | 
             
                  const response = await octokit.pulls.create({
         | 
| 6021 6023 | 
             
                    owner,
         | 
| 6022 6024 | 
             
                    repo,
         | 
| @@ -6061,7 +6063,9 @@ ${error.message}`); | |
| 6061 6063 | 
             
                    }
         | 
| 6062 6064 | 
             
                  }
         | 
| 6063 6065 | 
             
                } catch (e) {
         | 
| 6064 | 
            -
                  console.error(" | 
| 6066 | 
            +
                  console.error("Full error:", e);
         | 
| 6067 | 
            +
                  console.error("Status:", e.status);
         | 
| 6068 | 
            +
                  console.error("Response:", e.response?.data);
         | 
| 6065 6069 | 
             
                  if (e.message.includes("Bad credentials")) {
         | 
| 6066 6070 | 
             
                    console.error(getMessage("invalidToken", lang));
         | 
| 6067 6071 | 
             
                  } else if (e.message.includes("Not Found")) {
         |