Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve auto approv #41

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ jobs:
- name: check requester
run: |
# fail job if the requester is not a member of the organization
is_member=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/orgs/kosli-dev/members \
| jq -r ".[].login" \
| grep -w "${{ github.event.pull_request.user.login }}")
| grep -w "${{ github.event.pull_request.user.login }}"
result=$?

if [[ ! is_member ]]; then
echo "User ${{ github.event.pull_request.user.login }} is not a member of the organization"
if [[ $result -eq 0 ]]; then
echo "User ${{ github.event.pull_request.user.login }} is not a member of kosli-dev"
exit 1
else
echo "User ${{ github.event.pull_request.user.login }} is a member of kosli-dev"
fi

- name: Get changed files
Expand Down
2 changes: 1 addition & 1 deletion design-docs/azure_env_reporting_algorithm.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ Notes:
az webapp log deployment list --name arstan-service --resource-group KosliExperiment --subscription 1f4973e6-11b3-4259-be2f-92bd3fe0a5cf

az webapp log deployment list --name tsha256 --resource-group EnvironmentReportingExperiment --subscription 96cdee58-1fa8-419d-a65a-7233b3465632
-->
-->
Loading