-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into signal_documentation
- Loading branch information
Showing
523 changed files
with
8,939 additions
and
11,421 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
# This workflow notifies working groups about new discussions in their corresponding | ||
# categories, by mentioning the Team in a first comment. | ||
# It is necessary since GitHub doesn't support subsriptions to discussion categories | ||
# see related feature request: https://github.com/orgs/community/discussions/3951 | ||
# If GitHub implements this feature, this workflow becomes obsolete. | ||
|
||
# To work, this workflow requires a GitHub App installed on the repository with the | ||
# following permissions: | ||
# - Write and Read of repository Discussions | ||
# - Read of Organization members (needed for reading the teams) | ||
|
||
# !! You need to make sure that the app's id and a generated private key are saved | ||
# as corresponding organization secrets !! | ||
|
||
name: Notify Team on New Discussion | ||
"on": | ||
discussion: | ||
types: [created] | ||
|
||
jobs: | ||
notify_team: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# First generate the app token for authentication | ||
- name: Get GitHub App token | ||
id: github-app-token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Notify Team | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ steps.github-app-token.outputs.token }} | ||
script: | | ||
const discussion = context.payload.discussion; | ||
const category = discussion.category.name; | ||
const query = ` | ||
query($discussionNumber: Int!) { | ||
repository( | ||
owner: "${context.repo.owner}", | ||
name: "${context.repo.repo}" | ||
) { | ||
discussion(number: $discussionNumber) { | ||
id | ||
} | ||
} | ||
} | ||
`; | ||
const mutation = ` | ||
mutation($discussionId: ID!, $body: String!) { | ||
addDiscussionComment( | ||
input: {discussionId: $discussionId, body: $body} | ||
) { | ||
comment { | ||
id | ||
body | ||
} | ||
} | ||
} | ||
`; | ||
const response = await github.graphql(query, { | ||
discussionNumber: discussion.number | ||
}); | ||
const discussionId = response.repository.discussion.id; | ||
const teams = await github.rest.teams.list({ | ||
org: context.repo.owner, | ||
}); | ||
const team = teams.data.find(t => t.name === category); | ||
if (team) { | ||
const teamMention = `${context.repo.owner}/${team.slug}`; | ||
const commentBody = `@${teamMention} A new discussion was created in the` | ||
+ ` "${category}" category: ${discussion.html_url}`; | ||
await github.graphql(mutation, { | ||
discussionId: discussionId, | ||
body: commentBody | ||
}); | ||
} else { | ||
console.log(`No team found for category: ${category}`); | ||
} |
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,11 +1,4 @@ | ||
[settings] | ||
; see https://github.com/psf/black | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
combine_as_imports=True | ||
use_parentheses=True | ||
line_length=88 | ||
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
default_section=THIRDPARTY | ||
ensure_newline_before_comments = True | ||
profile=black | ||
py_version=38 | ||
force_grid_wrap=2 |
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
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
10 changes: 6 additions & 4 deletions
10
deprecated/HardwareObjects/Server/SimpleXMLReadWriteSupport.py
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
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
Oops, something went wrong.