This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
forked from element-hq/element-web
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix the sticker picker ([\element-hq#7692](matrix-org/matrix-react-sdk#7692)). Fixes element-hq#20797. * Ensure UserInfo can be rendered without a room ([\element-hq#7687](matrix-org/matrix-react-sdk#7687)). Fixes element-hq#20830. * Fix publishing address wrongly demanding the alias be available ([\element-hq#7690](matrix-org/matrix-react-sdk#7690)). Fixes element-hq#12013 and element-hq#20833.
- Loading branch information
Showing
30 changed files
with
1,814 additions
and
1,219 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,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Report a security vulnerability | ||
url: https://github.com/vector-im/element-web/security/policy | ||
about: Please review our security policy for more details | ||
- name: Questions & support | ||
url: https://matrix.to/#/#element-web:matrix.org | ||
about: Please ask and answer questions here. |
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,6 +5,31 @@ on: | |
types: [labeled] | ||
|
||
jobs: | ||
apply_Z-Labs_label: | ||
name: Add Z-Labs label for features behind labs flags | ||
runs-on: ubuntu-latest | ||
if: > | ||
contains(github.event.issue.labels.*.name, 'A-Maths') || | ||
contains(github.event.issue.labels.*.name, 'A-Message-Pinning') || | ||
contains(github.event.issue.labels.*.name, 'A-Threads') || | ||
contains(github.event.issue.labels.*.name, 'A-Polls') || | ||
contains(github.event.issue.labels.*.name, 'A-Location-Sharing') || | ||
contains(github.event.issue.labels.*.name, 'A-Message-Bubbles') || | ||
contains(github.event.issue.labels.*.name, 'Z-IA') || | ||
contains(github.event.issue.labels.*.name, 'A-Themes-Custom') || | ||
contains(github.event.issue.labels.*.name, 'A-E2EE-Dehydration') || | ||
contains(github.event.issue.labels.*.name, 'A-Tags') | ||
steps: | ||
- uses: actions/github-script@v5 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['Z-Labs'] | ||
}) | ||
move_needs_info_issues: | ||
name: X-Needs-Info issues to Need info column on triage board | ||
runs-on: ubuntu-latest | ||
|
@@ -47,6 +72,30 @@ jobs: | |
PROJECT_ID: "PN_kwDOAM0swc0sUA" | ||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
|
||
add_product_issues: | ||
name: X-Needs-Product to Design project board | ||
runs-on: ubuntu-latest | ||
if: > | ||
contains(github.event.issue.labels.*.name, 'X-Needs-Product') | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: add_to_project | ||
with: | ||
headers: '{"GraphQL-Features": "projects_next_graphql"}' | ||
query: | | ||
mutation add_to_project($projectid:ID!,$contentid:ID!) { | ||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { | ||
projectNextItem { | ||
id | ||
} | ||
} | ||
} | ||
projectid: ${{ env.PROJECT_ID }} | ||
contentid: ${{ github.event.issue.node_id }} | ||
env: | ||
PROJECT_ID: "PN_kwDOAM0swc4AAg6N" | ||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
|
||
Delight_issues_to_board: | ||
name: Delight issues to project board | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -28,22 +28,32 @@ jobs: | |
env: | ||
TEAM: "design" | ||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
- id: any_reviewers_in_the_team | ||
- id: any_matching_reviewers | ||
run: | | ||
# Fetch requested reviewers, and people who are on the team | ||
echo '${{ tojson(fromjson(steps.find_team_members.outputs.data).organization.team.members.nodes[*].login) }}' | tee /tmp/team_members.json | ||
echo '${{ tojson(github.event.pull_request.requested_reviewers[*].login) }}' | tee /tmp/reviewers.json | ||
jq --raw-output .[] < /tmp/team_members.json | sort | tee /tmp/team_members.txt | ||
jq --raw-output .[] < /tmp/reviewers.json | sort | tee /tmp/reviewers.txt | ||
if [ $(join /tmp/team_members.txt /tmp/reviewers.txt | wc -l) = 0 ]; then | ||
echo "::set-output name=match::false" | ||
else | ||
# Fetch requested team reviewers, and the name of the team | ||
echo '${{ tojson(github.event.pull_request.requested_teams[*].slug) }}' | tee /tmp/team_reviewers.json | ||
jq --raw-output .[] < /tmp/team_reviewers.json | sort | tee /tmp/team_reviewers.txt | ||
echo '${{ env.TEAM }}' | tee /tmp/team.txt | ||
# If either a reviewer matches a team member, or a team matches our team, say "true" | ||
if [ $(join /tmp/team_members.txt /tmp/reviewers.txt | wc -l) != 0 ]; then | ||
echo "::set-output name=match::true" | ||
elif [ $(join /tmp/team.txt /tmp/team_reviewers.txt | wc -l) != 0 ]; then | ||
echo "::set-output name=match::true" | ||
else | ||
echo "::set-output name=match::false" | ||
fi | ||
env: | ||
TEAM: "design" | ||
- uses: octokit/[email protected] | ||
id: add_to_project | ||
if: > | ||
(steps.any_reviewers_in_the_team.outputs.match == 'true') || | ||
(github.event.pull_request.requested_teams.slug == env.TEAM) | ||
if: steps.any_matching_reviewers.outputs.match == 'true' | ||
with: | ||
headers: '{"GraphQL-Features": "projects_next_graphql"}' | ||
query: | | ||
|
@@ -60,3 +70,70 @@ jobs: | |
PROJECT_ID: "PN_kwDOAM0swc0sUA" | ||
TEAM: "design" | ||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
|
||
add_product_pr_to_project: | ||
name: Move PRs asking for design review to the design board | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: find_team_members | ||
with: | ||
headers: '{"GraphQL-Features": "projects_next_graphql"}' | ||
query: | | ||
query find_team_members($team: String!) { | ||
organization(login: "vector-im") { | ||
team(slug: $team) { | ||
members { | ||
nodes { | ||
login | ||
} | ||
} | ||
} | ||
} | ||
} | ||
team: ${{ env.TEAM }} | ||
env: | ||
TEAM: "product" | ||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
- id: any_matching_reviewers | ||
run: | | ||
# Fetch requested reviewers, and people who are on the team | ||
echo '${{ tojson(fromjson(steps.find_team_members.outputs.data).organization.team.members.nodes[*].login) }}' | tee /tmp/team_members.json | ||
echo '${{ tojson(github.event.pull_request.requested_reviewers[*].login) }}' | tee /tmp/reviewers.json | ||
jq --raw-output .[] < /tmp/team_members.json | sort | tee /tmp/team_members.txt | ||
jq --raw-output .[] < /tmp/reviewers.json | sort | tee /tmp/reviewers.txt | ||
# Fetch requested team reviewers, and the name of the team | ||
echo '${{ tojson(github.event.pull_request.requested_teams[*].slug) }}' | tee /tmp/team_reviewers.json | ||
jq --raw-output .[] < /tmp/team_reviewers.json | sort | tee /tmp/team_reviewers.txt | ||
echo '${{ env.TEAM }}' | tee /tmp/team.txt | ||
# If either a reviewer matches a team member, or a team matches our team, say "true" | ||
if [ $(join /tmp/team_members.txt /tmp/reviewers.txt | wc -l) != 0 ]; then | ||
echo "::set-output name=match::true" | ||
elif [ $(join /tmp/team.txt /tmp/team_reviewers.txt | wc -l) != 0 ]; then | ||
echo "::set-output name=match::true" | ||
else | ||
echo "::set-output name=match::false" | ||
fi | ||
env: | ||
TEAM: "product" | ||
- uses: octokit/[email protected] | ||
id: add_to_project | ||
if: steps.any_matching_reviewers.outputs.match == 'true' | ||
with: | ||
headers: '{"GraphQL-Features": "projects_next_graphql"}' | ||
query: | | ||
mutation add_to_project($projectid:ID!, $contentid:ID!) { | ||
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { | ||
projectNextItem { | ||
id | ||
} | ||
} | ||
} | ||
projectid: ${{ env.PROJECT_ID }} | ||
contentid: ${{ github.event.pull_request.node_id }} | ||
env: | ||
PROJECT_ID: "PN_kwDOAM0swc4AAg6N" | ||
TEAM: "product" | ||
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} |
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.