forked from adobecom/milo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
569 changed files
with
50,034 additions
and
5,370 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Description | ||
|
||
## Related Issue | ||
Resolves: [MWPW-111111](https://jira.corp.adobe.com/browse/MWPW-111111) | ||
|
||
## Testing instructions | ||
|
||
## Screenshots (if appropriate): | ||
|
||
|
||
## Test URLs | ||
**Acrobat:** | ||
- Before: https://www.stage.adobe.com/acrobat/online/sign-pdf.html?martech=off | ||
- After: https://www.stage.adobe.com/acrobat/online/sign-pdf.html?martech=off&milolibs=<branch>--milo--<owner> | ||
|
||
**BACOM:** | ||
- Before: https://business.stage.adobe.com/fr/customer-success-stories.html?martech=off | ||
- After: https://business.stage.adobe.com/fr/customer-success-stories.html?martech=off&milolibs=<branch>--milo--<owner> | ||
|
||
**CC:** | ||
- Before: https://main--cc--adobecom.hlx.live/?martech=off | ||
- After: https://main--cc--adobecom.hlx.live/?martech=off&milolibs=<branch>--milo--<owner> | ||
|
||
**Milo:** | ||
- Before: https://main--milo--adobecom.hlx.page/ch_de/drafts/ramuntea/gnav-refactor?martech=off | ||
- After: https://<branch>--milo--<owner>.hlx.page/ch_de/drafts/ramuntea/gnav-refactor?martech=off |
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 |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check: | ||
|
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,33 @@ | ||
name: Dispatch workflows | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
dispatch-dc: | ||
name: Dispatch DC workflow | ||
if: github.repository == 'adobecom/milo' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
src: | ||
- 'libs/**' | ||
- if: steps.changes.outputs.src == 'true' | ||
name: Trigger DC Workflow | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.DC_PAT }} | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: 'adobecom', | ||
repo: 'dc', | ||
workflow_id: 'test-milo.yml', | ||
ref: 'main', | ||
}) |
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,13 +1,15 @@ | ||
name: Milo Bot Release Email | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
jobs: | ||
action: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -16,7 +18,8 @@ jobs: | |
- name: Use email bot | ||
uses: adobecom/milo-email-bot@main | ||
env: | ||
TO_EMAIL: ${{ secrets.TO_EMAIL }} | ||
TO_EMAIL_NEW_FEATURE: ${{ secrets.TO_EMAIL_NEW_FEATURE }} | ||
TO_EMAIL_HIGH_IMPACT: ${{ secrets.TO_EMAIL_HIGH_IMPACT }} | ||
FROM_EMAIL: '[email protected]' | ||
FROM_NAME: 'Milo Bot' | ||
SG_KEY: ${{ secrets.SG_KEY }} | ||
|
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 |
---|---|---|
|
@@ -2,13 +2,13 @@ name: Enforce PR labels | |
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, opened, edited, synchronize] | ||
types: [labeled, unlabeled, opened, synchronize] | ||
jobs: | ||
enforce-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: yogevbd/[email protected] | ||
with: | ||
REQUIRED_LABELS_ANY: "verified,trivial" | ||
REQUIRED_LABELS_ANY_DESCRIPTION: "PR must be labeled with 'verified-fixed' or 'trivial'" | ||
REQUIRED_LABELS_ANY: "verified,trivial,needs-verification" | ||
REQUIRED_LABELS_ANY_DESCRIPTION: "PR must be labeled with 'trivial', 'needs-verification', or 'verified'" | ||
BANNED_LABELS: "do-not-merge,duplicate,invalid,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,27 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- '**.js' | ||
|
||
jobs: | ||
run-lint: | ||
name: Running eslint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run eslint on changed files | ||
uses: tj-actions/eslint-changed-files@v20 | ||
with: | ||
config_path: ".eslintrc.js" | ||
# ignore_path: "/path/to/.eslintignore" | ||
# extra_args: "--max-warnings=0" |
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"] | ||
} | ||
"extends": [ | ||
"stylelint-config-standard", | ||
"stylelint-config-prettier" | ||
], | ||
"rules": { | ||
"unit-no-unknown": [ | ||
true, | ||
{ | ||
"ignoreUnits": [ | ||
"dvh" | ||
] | ||
} | ||
] | ||
} | ||
} |
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
Validating CODEOWNERS rules …
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.