File tree 4 files changed +22
-4
lines changed 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
- Copyright (c) 2019 Orta Therox
1
+ Copyright (c) 2019-Present Orta Therox
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -72,6 +72,19 @@ packages/typescriptlang-org/src/copy/es/**/*.ts @KingDarBoja [translate] [es]
72
72
packages/documentation/copy/es/**/*.ts @KingDarBoja [translate] [es]
73
73
` ` `
74
74
75
+ # # Config
76
+
77
+ There is only one option available ATM, `cwd` which can be used to determine the root folder to look for CODEOWNER files in :
78
+
79
+ ` ` ` yml
80
+ - name: Run Codeowners merge check
81
+ uses: orta/code-owner-self-merge@v1
82
+ env:
83
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84
+ with:
85
+ cwd: './docs'
86
+ ` ` `
87
+
75
88
# ## Dev
76
89
77
90
Use `npx jest --watch` to run tests.
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ branding:
6
6
icon : git-merge
7
7
color : purple
8
8
9
+ inputs :
10
+ cwd :
11
+ description : ' The path to the root folder where it should look for code owners'
12
+ default : ' '
13
+
9
14
runs :
10
15
using : ' node12'
11
16
main : ' index.js'
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const {readFileSync} = require("fs")
7
7
8
8
// Effectively the main function
9
9
async function run ( ) {
10
- core . info ( "Running version 1.4.1 " )
10
+ core . info ( "Running version 1.4.2 " )
11
11
12
12
// Tell folks they can merge
13
13
if ( context . eventName === "pull_request_target" ) {
@@ -26,7 +26,7 @@ async function commentOnMergablePRs() {
26
26
}
27
27
28
28
// Setup
29
- const cwd = process . cwd ( )
29
+ const cwd = core . getInput ( 'cwd' ) || process . cwd ( )
30
30
const octokit = getOctokit ( process . env . GITHUB_TOKEN )
31
31
const pr = context . payload . pull_request
32
32
const thisRepo = { owner : context . repo . owner , repo : context . repo . repo }
@@ -97,7 +97,7 @@ async function mergeIfLGTMAndHasAccess() {
97
97
}
98
98
99
99
// Setup
100
- const cwd = process . cwd ( )
100
+ const cwd = core . getInput ( 'cwd' ) || process . cwd ( )
101
101
const octokit = getOctokit ( process . env . GITHUB_TOKEN )
102
102
const thisRepo = { owner : context . repo . owner , repo : context . repo . repo }
103
103
const issue = context . payload . issue || context . payload . pull_request
You can’t perform that action at this time.
0 commit comments