repo-branch 0.0.3 → 0.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ const dotenv_1 = __importDefault(require("dotenv"));
46
46
  const path = __importStar(require("path"));
47
47
  const fs = __importStar(require("fs"));
48
48
  // Load environment variables from .env file
49
- dotenv_1.default.config();
49
+ dotenv_1.default.config({ quiet: true });
50
50
  const program = new commander_1.Command();
51
51
  // Configuration - load from environment variables
52
52
  const GITHUB_OWNER = process.env.BRANCH_SYNC_GITHUB_OWNER || "";
@@ -82,7 +82,8 @@ if (!validateEnv()) {
82
82
  const octokit = new rest_1.Octokit({ auth: GITHUB_TOKEN });
83
83
  async function getRepositories() {
84
84
  try {
85
- const repos = await octokit.paginate(octokit.rest.repos.listForUser, {
85
+ const repos = await octokit.paginate(octokit.rest.repos.listForOrg, {
86
+ org: GITHUB_OWNER,
86
87
  username: GITHUB_OWNER,
87
88
  per_page: 100,
88
89
  sort: "updated",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-branch",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Create branches across multiple GitHub repositories simultaneously",
5
5
  "main": "dist/index.js",
6
6
  "bin": {