Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d56d5e68
Unverified
Commit
d56d5e68
authored
May 26, 2020
by
JJ Kasper
Committed by
GitHub
May 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PR stats action branch check (#13394)
parent
cefbcadf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
index.js
.github/actions/next-stats-action/src/index.js
+1
-1
action-info.js
.github/actions/next-stats-action/src/prepare/action-info.js
+1
-0
No files found.
.github/actions/next-stats-action/src/index.js
View file @
d56d5e68
...
...
@@ -39,7 +39,7 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
// load stats config from allowed locations
const
{
statsConfig
,
relativeStatsAppDir
}
=
loadStatsConfig
()
if
(
actionInfo
.
prRef
===
statsConfig
.
mainBranch
)
{
if
(
actionInfo
.
isLocal
&&
actionInfo
.
prRef
===
statsConfig
.
mainBranch
)
{
throw
new
Error
(
`'GITHUB_REF' can not be the same as mainBranch in 'stats-config.js'.\n`
+
`This will result in comparing against the same branch`
...
...
.github/actions/next-stats-action/src/prepare/action-info.js
View file @
d56d5e68
...
...
@@ -53,6 +53,7 @@ module.exports = function actionInfo() {
gitRoot
:
GIT_ROOT_DIR
||
'https://github.com/'
,
prRepo
:
GITHUB_REPOSITORY
,
prRef
:
GITHUB_REF
,
isLocal
:
LOCAL_STATS
,
commitId
:
null
,
issueId
:
ISSUE_ID
,
isRelease
:
releaseTypes
.
has
(
GITHUB_ACTION
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment