-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into benelan/delay-tab-s…
…tory * origin/master: (57 commits) ci(eslint): ignore private/internal code for jsdoc rules (#6416) fix(modal): ensure modal transitions are in sync (#6564) fix(action): ensure consistent width to accommodate indicator when displaying text (#6562) build(deps): Bump focus-trap from 7.2.0 to 7.3.1 (#6540) feat(block): add built-in localization (#6503) revert(stepper-item): emits calciteStepperItemSelect event when selected (#6560) refactor: move ref prop last to ensure ref node is in sync (#6530) feat(stepper-item): emits `calciteStepperItemSelect` event when selected. (#6521) build(deps): Bump @storybook/addon-a11y from 6.5.15 to 6.5.16 (#6539) build(deps): Bump eslint from 8.30.0 to 8.35.0 (#6543) chore(block): add t9n message bundles. (#6559) build: ensure required files are available for doc preview build (#6557) fix(slider): range slider thumb on all touch-enabled devices now follows touch gesture (#6553) feat(modal): provides `content-top` and `content-bottom` slots (#6490) chore(release): 1.0.8 chore(release): 1.0.8-next.4 fix(filter, list): filter properly on initialization (#6551) chore(release): 1.0.8-next.3 fix: apply offsetParent polyfill for Chrome 109+ (#6520) fix(tree): restore wrapping in tree-item text content (#6518) ...
- Loading branch information
Showing
129 changed files
with
1,920 additions
and
1,032 deletions.
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
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,66 @@ | ||
name: Add Bug Priority Label | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const { | ||
repo: { owner, repo }, | ||
payload: { | ||
action, | ||
issue: { body, labels: currentLabels, number: issue_number }, | ||
}, | ||
} = context; | ||
if (!body) { | ||
console.log("could not determine the issue body"); | ||
return; | ||
} | ||
const bugPriorityRegex = new RegExp( | ||
action === "edited" | ||
? // the way GitHub parses the issue body into plaintext | ||
// requires this exact format for edits | ||
"(?<=### Priority impact\r\n\r\n).+" | ||
: // otherwise it depends on the submitter's OS | ||
"(?<=### Priority impact[\r\n|\r|\n]{2}).+$", | ||
"m" | ||
); | ||
const bugPriorityRegexMatch = body.match(bugPriorityRegex); | ||
const bugPriority = ( | ||
bugPriorityRegexMatch && bugPriorityRegexMatch[0] ? bugPriorityRegexMatch[0] : "" | ||
).trim(); | ||
if (bugPriority && bugPriority !== "N/A") { | ||
/** Creates a label if it does not exist */ | ||
try { | ||
await github.rest.issues.getLabel({ | ||
owner, | ||
repo, | ||
name: bugPriority, | ||
}); | ||
} catch (error) { | ||
await github.rest.issues.createLabel({ | ||
owner, | ||
repo, | ||
name: bugPriority, | ||
color: "bb7fe0", | ||
description: `User set priority status of ${bugPriority}`, | ||
}); | ||
} | ||
/** add new bug priority label */ | ||
await github.rest.issues.addLabels({ | ||
issue_number, | ||
owner, | ||
repo, | ||
labels: [bugPriority], | ||
}); | ||
} |
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,187 @@ | ||
name: Sync to Airtable | ||
|
||
on: | ||
issues: | ||
types: [assigned, closed, demilestoned, edited, labeled, milestoned, opened, reopened, unassigned, unlabeled] | ||
|
||
jobs: | ||
issue_assigned: | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'assigned' || github.event.action == 'unassigned' | ||
steps: | ||
- name: Set Data | ||
id: set-assigned-data | ||
uses: actions/github-script@v6 | ||
env: | ||
SECRET: ${{ secrets.AIRTABLE_KEY }} | ||
WEBHOOK: ${{ secrets.AIRTABLE_WEBHOOK }} | ||
with: | ||
script: | | ||
const { action, issue, repository } = context.payload; | ||
const body = JSON.stringify({ | ||
action, | ||
data: JSON.stringify({ assignees: issue.assignees }), | ||
owner: repository.owner.login, | ||
repo: repository.name, | ||
number: issue.number.toString(), | ||
secret: process.env.SECRET, | ||
title: issue.title, | ||
}); | ||
return fetch(process.env.WEBHOOK, { | ||
body, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
method: "POST" | ||
}); | ||
issue_closed: | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'closed' | ||
steps: | ||
- name: Set Data | ||
id: set-closed-data | ||
uses: actions/github-script@v6 | ||
env: | ||
SECRET: ${{ secrets.AIRTABLE_KEY }} | ||
WEBHOOK: ${{ secrets.AIRTABLE_WEBHOOK }} | ||
with: | ||
script: | | ||
const { action, issue, repository } = context.payload; | ||
const body = JSON.stringify({ | ||
action, | ||
data: issue.closed_at, | ||
owner: repository.owner.login, | ||
repo: repository.name, | ||
number: issue.number.toString(), | ||
secret: process.env.SECRET, | ||
title: issue.title, | ||
}); | ||
return fetch(process.env.WEBHOOK, { | ||
body, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
method: "POST" | ||
}); | ||
issue_milestoned: | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'demilestoned' || github.event.action == 'milestoned' | ||
steps: | ||
- name: Set Data | ||
id: set-demilestoned-data | ||
uses: actions/github-script@v6 | ||
env: | ||
SECRET: ${{ secrets.AIRTABLE_KEY }} | ||
WEBHOOK: ${{ secrets.AIRTABLE_WEBHOOK }} | ||
with: | ||
script: | | ||
const { action, issue, repository } = context.payload; | ||
const body = JSON.stringify({ | ||
action, | ||
data: JSON.stringify(issue.milestone || null), | ||
owner: repository.owner.login, | ||
repo: repository.name, | ||
number: issue.number.toString(), | ||
secret: process.env.SECRET, | ||
title: issue.title, | ||
}); | ||
return fetch(process.env.WEBHOOK, { | ||
body, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
method: "POST" | ||
}); | ||
issue_edited: | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'edited' | ||
steps: | ||
- name: Set Data | ||
id: set-edited-data | ||
uses: actions/github-script@v6 | ||
env: | ||
SECRET: ${{ secrets.AIRTABLE_KEY }} | ||
WEBHOOK: ${{ secrets.AIRTABLE_WEBHOOK }} | ||
with: | ||
script: | | ||
const { action, issue, changes, repository } = context.payload; | ||
const body = JSON.stringify({ | ||
action, | ||
changes: JSON.stringify(changes || null), | ||
data: JSON.stringify(Object.keys(changes).reduce((acc, key) => { | ||
acc[key] = issue[key] | ||
return acc; | ||
}, {})), | ||
owner: repository.owner.login, | ||
repo: repository.name, | ||
number: issue.number.toString(), | ||
secret: process.env.SECRET, | ||
title: changes['title'] | ||
? changes['title'].from | ||
: issue.title, | ||
}); | ||
return fetch(process.env.WEBHOOK, { | ||
body, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
method: "POST" | ||
}); | ||
issue_labeled: | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'labeled' || github.event.action == 'unlabeled' | ||
steps: | ||
- name: Set Data | ||
id: set-labeled-data | ||
uses: actions/github-script@v6 | ||
env: | ||
SECRET: ${{ secrets.AIRTABLE_KEY }} | ||
WEBHOOK: ${{ secrets.AIRTABLE_WEBHOOK }} | ||
with: | ||
script: | | ||
const { action, issue, repository } = context.payload; | ||
const body = JSON.stringify({ | ||
action, | ||
data: JSON.stringify({labels: issue.labels}), | ||
owner: repository.owner.login, | ||
repo: repository.name, | ||
number: issue.number.toString(), | ||
secret: process.env.SECRET, | ||
title: issue.title, | ||
}); | ||
return fetch(process.env.WEBHOOK, { | ||
body, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
method: "POST" | ||
}); | ||
issue_opened: | ||
runs-on: ubuntu-latest | ||
if: github.event.action == 'opened' || github.event.action == 'reopened' | ||
steps: | ||
- name: Set Data | ||
id: set-opened-data | ||
uses: actions/github-script@v6 | ||
env: | ||
SECRET: ${{ secrets.AIRTABLE_KEY }} | ||
WEBHOOK: ${{ secrets.AIRTABLE_WEBHOOK }} | ||
with: | ||
script: | | ||
const { action, issue, repository } = context.payload; | ||
const body = JSON.stringify({ | ||
action, | ||
data: JSON.stringify(issue), | ||
owner: repository.owner.login, | ||
repo: repository.name, | ||
number: issue.number.toString(), | ||
secret: process.env.SECRET, | ||
title: issue.title, | ||
}); | ||
return fetch(process.env.WEBHOOK, { | ||
body, | ||
headers: { | ||
"Content-Type": "application/json" | ||
}, | ||
method: "POST" | ||
}); |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"*.{json,html,yml}": ["prettier --write"], | ||
"*.js": ["eslint --ext .js --fix", "prettier --write"], | ||
"*.scss": ["stylelint --fix", "prettier --write"], | ||
"*/!(assets)/*.{ts,tsx}": ["eslint --ext .ts,.tsx --fix", "prettier --write"], | ||
"*.{ts,tsx}": ["eslint --ext .ts,.tsx --fix", "prettier --write"], | ||
"*.md": ["markdownlint --fix --disable MD024 MD013 MD041 MD033", "prettier --write"] | ||
} |
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.