Skip to content

Commit

Permalink
chore: release new version v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-Xu-0100 committed Aug 25, 2022
1 parent dbefe03 commit 2fcb39d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 19 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,8 @@ jobs:
run:
name: Repo list generator
runs-on: ubuntu-latest
if: >
${{ github.event.event == 'push' ||
github.event.event == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'wait-to-merge') }}
steps:
- name: Checkout Code
if: >
${{ github.event.event == 'push' || github.event.event == 'workflow_dispatch' }}
uses: actions/checkout@v3

- name: Checkout Code
if: >
${{ github.event.event == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'wait-to-merge') }}
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ The emoji used in the `GitHub` commit message is based on [gitmoji](https://gitm

## [Unreleased]

## [1.0.2] - 2022-08-25
## [1.1.0] - 2022-08-25

### ✨ Added

- ✨ add `allow_archived` support, default include the archived repo in repo list.
- ✨ add `archivedList` output.


## [1.0.1] - 2021-02-01

### ♻️ Changed
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2021 yi_Xu
Copyright (c) 2020-2022 yi_Xu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "repo-list-generator",
"version": "1.0.1",
"version": "1.1.0",
"description": "Generate repo list for user or organization.",
"main": "dist/index.js",
"scripts": {
Expand Down
13 changes: 11 additions & 2 deletions src/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ let getAll = async function (user, page = 10) {
var repo_list_size = pluck(repo_list, 'size');
var repo_list_archived = pluck(repo_list, 'archived');
info('[INFO]: Successfully get repo data');
return { repo_list: zip(repo_list_name, repo_list_private, repo_list_fork, repo_list_archived, repo_list_size) };
return {
repo_list: zip(
repo_list_name,
repo_list_private,
repo_list_fork,
repo_list_archived,
repo_list_size
)
};
};

let getList = async function (repo_list, block_list, allowEmpty = false, allowArchived = true) {
Expand Down Expand Up @@ -95,7 +103,8 @@ let getList = async function (repo_list, block_list, allowEmpty = false, allowAr

var repoList_PRIVATE = unzip(reject(repos, item => item[2]))[0] || [];
if (!allowEmpty) repoList_PRIVATE = reject(repoList_PRIVATE, item => emptyList.includes(item));
if (!allowArchived) repoList_PRIVATE = reject(repoList_PRIVATE, item => archivedList.includes(item));
if (!allowArchived)
repoList_PRIVATE = reject(repoList_PRIVATE, item => archivedList.includes(item));
setOutput('repoList_PRIVATE', repoList_PRIVATE.toString());

var repoList_FORK = unzip(reject(repos, item => item[1]))[0] || [];
Expand Down

0 comments on commit 2fcb39d

Please sign in to comment.