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

Test workflows #2

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ddde197
test log context
brokensound77 Aug 6, 2021
3f9982f
test getmembership
brokensound77 Aug 6, 2021
3d99a6b
add data
brokensound77 Aug 6, 2021
c0b0b66
star
brokensound77 Aug 6, 2021
1f9382e
update on
brokensound77 Aug 6, 2021
8b95bd2
name
brokensound77 Aug 6, 2021
1bbaf10
space
brokensound77 Aug 6, 2021
cd78c55
.
brokensound77 Aug 6, 2021
6540ace
..
brokensound77 Aug 6, 2021
5628de9
...
brokensound77 Aug 6, 2021
e6a7b99
....
brokensound77 Aug 6, 2021
df7d097
.....
brokensound77 Aug 6, 2021
2403a9d
......
brokensound77 Aug 6, 2021
4d0b068
.......
brokensound77 Aug 6, 2021
ca4638d
........
brokensound77 Aug 6, 2021
4b2cf59
q
brokensound77 Aug 6, 2021
c72454d
k
brokensound77 Aug 6, 2021
2066ee0
name
brokensound77 Aug 6, 2021
4ca7b70
c
brokensound77 Aug 6, 2021
985d62c
t
brokensound77 Aug 6, 2021
1cc2af9
gt
brokensound77 Aug 6, 2021
6218f3c
wr
brokensound77 Aug 6, 2021
a2ec9ae
pt
brokensound77 Aug 6, 2021
5277e5b
cpmfu
brokensound77 Aug 6, 2021
50d6e51
s
brokensound77 Aug 6, 2021
2e969fd
f
brokensound77 Aug 6, 2021
a59ceb8
t
brokensound77 Aug 6, 2021
3c199de
rot
brokensound77 Aug 6, 2021
f6158d9
v
brokensound77 Aug 6, 2021
c9611ad
echo
brokensound77 Aug 6, 2021
25a1115
mem
brokensound77 Aug 6, 2021
e0c8ab4
output
brokensound77 Aug 6, 2021
b572ae9
b
brokensound77 Aug 6, 2021
b7e4fcb
state
brokensound77 Aug 6, 2021
3b1ee3e
c
brokensound77 Aug 6, 2021
bf3665d
s
brokensound77 Aug 6, 2021
c3119b1
e
brokensound77 Aug 6, 2021
8924fc3
s
brokensound77 Aug 6, 2021
769d9f1
uses
brokensound77 Aug 6, 2021
7152df3
fix
brokensound77 Aug 6, 2021
d6211fc
update name
brokensound77 Aug 6, 2021
b9cf231
d
brokensound77 Aug 6, 2021
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
36 changes: 36 additions & 0 deletions .github/workflows/community.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Community

on:
pull_request_target:
types:
- opened
issues:
types:
- opened

jobs:
community-label:
runs-on: ubuntu-latest
steps:
- name: Determine membership
uses: actions/github-script@v4
id: membership
with:
github-token: ${{ secrets.READ_ORG_TOKEN }}
script: |
return github.orgs.getMembershipForAuthenticatedUser({
org: "elastic",
username: context.payload.sender.login
})
- name: Add community label for users not in Elastic org
uses: actions/github-script@v4
if: |
"${{ steps.membership.outputs.result.state }}" != "active"
with:
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['community']
})