-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use octokit plugin config from probot #125
Open
jetersen
wants to merge
20
commits into
crazy-max:master
Choose a base branch
from
jetersen:fix/loadConfigGitHubApi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4c97fa1
use octokit plugin config from probot
jetersen 881e78a
remove file check
jetersen 2d699ba
add yaml files for merging
jetersen 9698f99
add labels merge
jetersen b0e13ea
disable octokit throttling in tests
jetersen 3826853
Revert "disable octokit throttling in tests"
jetersen 300306f
default labels to empty array
jetersen 85e00ba
fix empty object foreach
jetersen c9f0143
update labels fixture
jetersen 60d9227
fix jest usage
jetersen f3e20c1
undo TOC update
jetersen 01d7b52
modernise code with unicorn
jetersen 870d53c
code cleanup
jetersen 44785c1
eslint should ignore generated folders
jetersen db095d6
update yarn
jetersen 94fb804
too much cleanup 😅
jetersen 2f1c081
remove repeated githubToken
jetersen 1a548c5
keep it private readonly
jetersen b019112
ESMify
jetersen 4cf3ff8
fix path difference in test
jetersen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
[ | ||
{ | ||
"name": ":bell: automerge", | ||
"color": "8f4fbc", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":bug: bug", | ||
"color": "b60205", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":bulb: feature request", | ||
"color": "0e8a16", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":busts_in_silhouette: duplicate", | ||
"color": "cccccc", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":coffin: wontfix", | ||
"color": "ffffff", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":eyes: upstream", | ||
"color": "fbca04", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":game_die: dependencies", | ||
"color": "0366d6", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":hatching_chick: good first issue", | ||
"color": "7057ff", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":mag: investigate", | ||
"color": "e6625b", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":mega: feedback", | ||
"color": "03a9f4", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":memo: documentation", | ||
"color": "c5def5", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":no_entry_sign: invalid", | ||
"color": "e6e6e6", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":pray: help wanted", | ||
"color": "4caf50", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":pushpin: pinned", | ||
"color": "28008e", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":question: question", | ||
"color": "3f51b5", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":robot: bot", | ||
"color": "69cde9", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":rocket: future maybe", | ||
"color": "fef2c0", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":skull: stale", | ||
"color": "237da0", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":sparkles: enhancement", | ||
"color": "0054ca", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":sparkling_heart: sponsor", | ||
"color": "fedbf0", | ||
"description": "" | ||
}, | ||
{ | ||
"name": ":thinking: needs more info", | ||
"color": "795548", | ||
"description": "" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
- # bot | ||
name: ":robot: bot" | ||
color: "69cde9" | ||
description: "" | ||
- # bug | ||
name: ":bug: bug" | ||
color: "b60205" | ||
description: "" | ||
## 'dependencies', 'documentation' and 'duplicate' would be deleted if not excluded | ||
#- # dependencies | ||
# name: ":game_die: dependencies" | ||
# color: "0366d6" | ||
# description: "" | ||
#- # documentation | ||
# name: ":memo: documentation" | ||
# color: "c5def5" | ||
# description: "" | ||
#- # duplicate | ||
# name: ":busts_in_silhouette: duplicate" | ||
# color: "cccccc" | ||
# description: "" | ||
- # enhancement | ||
name: ":sparkles: enhancement" | ||
color: "0054ca" | ||
description: "" | ||
- # feature request | ||
name: ":bulb: feature request" | ||
color: "0e8a16" | ||
description: "" | ||
## 'feedback' would be updated if not excluded | ||
- # feedback | ||
name: ":mega: feedback" | ||
color: "034879" | ||
description: "Excluded" | ||
- # future maybe | ||
name: ":rocket: future maybe" | ||
color: "fef2c0" | ||
description: "" | ||
- # good first issue | ||
name: ":hatching_chick: good first issue" | ||
color: "7057ff" | ||
description: "" | ||
- # help wanted | ||
name: ":pray: help wanted" | ||
color: "4caf50" | ||
description: "" | ||
- # hold | ||
name: ":hand: hold" | ||
color: "24292f" | ||
description: "" | ||
- # invalid | ||
name: ":no_entry_sign: invalid" | ||
color: "e6e6e6" | ||
description: "" | ||
- # maybe bug | ||
name: ":interrobang: maybe bug" | ||
color: "ff5722" | ||
description: "" | ||
- # needs more info | ||
name: ":thinking: needs more info" | ||
color: "795548" | ||
description: "" | ||
- # question | ||
name: ":question: question" | ||
color: "3f51b5" | ||
description: "" | ||
- # upstream | ||
name: ":eyes: upstream" | ||
color: "fbca04" | ||
description: "" | ||
## ':coffin: wontfix' would be renamed if not excluded | ||
- # wontfix_it | ||
name: "wontfix_it" | ||
color: "000000" | ||
from_name: ":coffin: wontfix" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
_extends: ghaction-github-labeler:.res/labels.merge1.yml | ||
labels: | ||
- # bot | ||
name: ":robot: bot" | ||
color: "69cde9" | ||
description: "I am robot" | ||
- # bug | ||
name: ":bug: bug" | ||
color: "b60205" | ||
description: "Damn bugs" | ||
- # unicorn | ||
name: ":unicorn: Special" | ||
color: "ffffff" | ||
description: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_extends: ghaction-github-labeler:.res/labels.merge1.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the context of
ghaction-github-labeler:
? Repo? Org?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the context is a bit odd indeed
usually you can simply refer to
.github
if you follow the pattern of using the same filename.however in this case I chose to pick out the file and repo.
You can see the full regex here:
https://github.com/probot/octokit-plugin-config/blob/8443c9a4a2659f2f8661d4d496a62531edeca8ce/src/util/extends-to-get-content-params.ts#L8-L15
also docced at: https://github.com/probot/octokit-plugin-config#the-_extends-key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the context is
repo
on a specific file.You can also pull from another
org
as long as you have read permissions.This is meant to satisfy a merge test.