Skip to content

Commit ea826e1

Browse files
authored
Merge pull request #7 from lelia/wayfair_incubator_org_transfer
Repository org transfer: wayfair-incubator
2 parents 98e4e7d + 63f3666 commit ea826e1

File tree

9 files changed

+8377
-3035
lines changed

9 files changed

+8377
-3035
lines changed

.github/workflows/test.yml

+34-48
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,52 @@
11
name: Tests
22

3-
on: # rebuild any PRs and main branch changes
3+
on: # Rebuild any PRs and main branch changes
4+
45
pull_request:
56
push:
67
branches:
78
- main
8-
workflow_dispatch:
9-
inputs:
10-
owner:
11-
description: 'Owner of Github repository being forked'
12-
required: true
13-
repo:
14-
description: 'Github repository being forked'
15-
required: true
16-
org:
17-
description: 'Github organization to fork the repository into'
18-
required: false
19-
user:
20-
description: 'Github user requesting the fork'
21-
required: false
22-
addUser:
23-
description: 'Add Github user to organization if missing'
24-
required: false
25-
default: false
26-
licenseAllowlist:
27-
description: 'List of allowed licenses for repository being forked'
28-
required: false
29-
default: 'undefined'
309

3110
jobs:
11+
3212
build:
3313
runs-on: ubuntu-latest
3414
env:
3515
INPUT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3616
steps:
3717
- uses: actions/checkout@v2
18+
name: "🛠 test npm build"
3819
- run: |
3920
npm install
4021
- run: |
4122
npm run all
42-
test:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v2
46-
- uses: ./
47-
name: "🚀 test github user workflow"
48-
with:
49-
path: ./
50-
token: ${{ secrets.GH_API_TOKEN }}
51-
ref: ${{ github.event.pull_request.head.sha }}
52-
repo: tremor-runtime
53-
owner: tremor-rs
54-
user: lelia
55-
- uses: ./
56-
name: "🌎 test github org workflow"
57-
with:
58-
path: ./
59-
token: ${{ secrets.GH_API_TOKEN }}
60-
ref: ${{ github.event.pull_request.head.sha }}
61-
licenseAllowlist: "0bsd\napache-2.0\nmit"
62-
repo: roadie-backstage-plugins
63-
owner: RoadieHQ
64-
org: wayfair-contribs
65-
user: lelia
66-
addUser: true
23+
24+
##############################################################################
25+
# Integration tests temporarily disabled while token access issue is diagnosed
26+
##############################################################################
27+
28+
# test:
29+
# runs-on: ubuntu-latest
30+
# steps:
31+
# - uses: actions/checkout@v2
32+
# - uses: ./
33+
# name: "🚀 test github user workflow"
34+
# with:
35+
# path: ./
36+
# token: ${{ secrets.ACCESS_TOKEN }}
37+
# ref: ${{ github.event.pull_request.head.sha }}
38+
# repo: tremor-runtime
39+
# owner: tremor-rs
40+
# user: lelia
41+
# - uses: ./
42+
# name: "🌎 test github org workflow"
43+
# with:
44+
# path: ./
45+
# token: ${{ secrets.ACCESS_TOKEN }}
46+
# ref: ${{ github.event.pull_request.head.sha }}
47+
# licenseAllowlist: "0bsd\napache-2.0\nmit"
48+
# repo: roadie-backstage-plugins
49+
# owner: RoadieHQ
50+
# org: wayfair-contribs
51+
# user: lelia
52+
# addUser: true

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 lelia
3+
Copyright (c) 2021 Wayfair Tech – Incubator
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# ⑂ forker
22

3-
[![Version](https://img.shields.io/badge/Version-0.0.1-7F187F.svg)](https://github.com/lelia/forker/releases)
3+
[![Version](https://img.shields.io/badge/Version-0.0.2-7F187F.svg)](https://github.com/wayfair-incubator/forker/releases)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-7462E0.svg)](LICENSE)
55
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-24B8EE.svg)](CODE_OF_CONDUCT.md)
6-
[![Tests](https://github.com/lelia/forker/actions/workflows/test.yml/badge.svg)](https://github.com/lelia/forker/actions/workflows/test.yml)
6+
[![Tests](https://github.com/wayfair-incubator/forker/actions/workflows/test.yml/badge.svg)](https://github.com/wayfair-incubator/forker/actions/workflows/test.yml)
77

88
GitHub action to automate fork creation. This action uses [octokit.js](https://github.com/octokit/octokit.js) and the [GitHub API](https://docs.github.com/en/rest) to automatically create a repository fork, either in your personal namespace or an organization you administer.
99

@@ -19,7 +19,7 @@ The GitHub API [token](https://docs.github.com/en/github/authenticating-to-githu
1919

2020
> 💡 **Note:** Ensure the token you are using has sufficient permissions to fork repositories into your intended destination (either an organization or individual user account). In particular, the builtin `GITHUB_TOKEN` has [read-only permissions](https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token) for repository forks, and therefore may not provide sufficient privileges for use with `forker`.
2121
22-
**Example:** `${{ secrets.GH_API_TOKEN }}`
22+
**Example:** `${{ secrets.ACCESS_TOKEN }}`
2323

2424
### `owner` (string, required)
2525

@@ -69,25 +69,25 @@ A newline-delimited (`"\n"`) string representing a list of allowed [license keys
6969

7070
### Typical
7171

72-
In most cases, you'll want to use the latest stable version (eg. `v0.0.1`):
72+
In most cases, you'll want to use the latest stable version (eg. `v0.0.2`):
7373

7474
```yaml
75-
uses: lelia/[email protected].1
75+
uses: wayfair-incubator/[email protected].2
7676
with:
77-
token: ${{ secrets.GH_API_TOKEN }}
77+
token: ${{ secrets.ACCESS_TOKEN }}
7878
repo: tremor-runtime
7979
owner: tremor-rs
8080
user: lelia
8181
```
8282
8383
### Development
8484
85-
If you're actively [developing](#Developing) a new feature for the action, you can always reference a specific commit SHA (eg. `16a9cab520b7f00e68397a7b8a4067ac40353230`):
85+
If you're actively [developing](#Developing) a new feature for the action, you can always reference a specific commit SHA (eg. `98e4e7dcc6c9a8cb29c1f8de7d6d2c03dcabc4b9`):
8686

8787
```yaml
88-
uses: lelia/forker@899add26c0bb00f6c8366cd8c5555e9309580193
88+
uses: wayfair-incubator/forker@98e4e7dcc6c9a8cb29c1f8de7d6d2c03dcabc4b9
8989
with:
90-
token: ${{ secrets.GH_API_TOKEN }}
90+
token: ${{ secrets.ACCESS_TOKEN }}
9191
repo: tremor-runtime
9292
owner: tremor-rs
9393
user: lelia
@@ -98,9 +98,9 @@ with:
9898
If you are automating forking on behalf of a GitHub organization, you may wish to leverage the optional `addUser` and `licenseAllowlist` params:
9999

100100
```yaml
101-
uses: lelia/[email protected].1
101+
uses: wayfair-incubator/[email protected].2
102102
with:
103-
token: ${{ secrets.GH_API_TOKEN }}
103+
token: ${{ secrets.ACCESS_TOKEN }}
104104
repo: tremor-runtime
105105
owner: tremor-rs
106106
org: wayfair-contribs
@@ -146,7 +146,7 @@ Then run [ncc](https://github.com/zeit/ncc) and push the results:
146146
npm run package
147147
git add dist
148148
git commit -a -m "prod dependencies"
149-
git push origin releases/v0.0.1
149+
git push origin releases/v0.0.2
150150
```
151151

152152
> 💡 **Note:** We recommend using the `--license` option for `ncc`, which will create a license file for all of the production node modules used in your project.
@@ -163,11 +163,11 @@ You can now validate the action by referencing `./` in a workflow in your repo (
163163
uses: ./
164164
with:
165165
path: ./
166-
token: ${{ secrets.GH_API_TOKEN }}
166+
token: ${{ secrets.ACCESS_TOKEN }}
167167
ref: ${{ github.event.pull_request.head.sha }}
168168
repo: tremor-runtime
169169
owner: tremor-rs
170170
user: lelia
171171
```
172172

173-
See the [Actions tab](https://github.com/lelia/forker/actions) to view runs of this action! ✅
173+
See the [Actions tab](https://github.com/wayfair-incubator/forker/actions) to view runs of this action! ✅

0 commit comments

Comments
 (0)