-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into CircleCI_workflows_to_GitHub
- Loading branch information
Showing
364 changed files
with
31,074 additions
and
22,314 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,32 @@ | ||
name: Handle New Contribution | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, ready_for_review] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
repository-projects: write | ||
|
||
jobs: | ||
assign_and_label: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.head.repo.fork == true | ||
steps: | ||
- name: Add an assignee and a Contribution label | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
run: | | ||
echo "get content_roles.json using curl" | ||
contrib_tl=$( curl https://raw.githubusercontent.com/demisto/content/master/.github/content_roles.json | jq .CONTRIBUTION_TL -r ) | ||
echo "$contrib_tl" | ||
echo "Finished retrieving the contribution TL username" | ||
if [ $contrib_tl ]; then | ||
echo "Add an assignee and a Contribution label" | ||
gh pr edit --add-assignee "$contrib_tl" --add-label Contribution "$PR_URL" | ||
else | ||
echo "There was a problem with retrieving the GitHub user name of the contribution TL." | ||
fi |
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.