labuladong opened a new pull request, #83:
URL: https://github.com/apache/pulsar-test-infra/pull/83
Use GitHub graphQL API to check `first contribution`.
The example graphQL output is:
```json
{"data":{"user":{"contributionsCollection":{"commitContributionsByRepository":[{"contributions":{"totalCount":15},"repository":{"owner":{"login":"apache"},"name":"pulsar"}},{"login":"apache"},"name":"pulsar-client-go"}},{"contributions":{"totalCount":1},"repository":{"owner":{"login":"labuladong"},"name":"pulsar-note"}},{"contributions":{"totalCount":1},"repository":{"owner":{"login":"apache"},"name":"pulsar-site"}}]}}}}
```
So just search the string to check if the PR is the first contribution.
First pull request will be added a `first-pr` label, example here:
https://github.com/labuladong/pulsar/pull/11
Not first pull request will do nothing, example here:
https://github.com/labuladong/pulsar/pull/12
This part is just for testing, I will remove it before merging:
```java
- name: Checkout
uses: actions/checkout@v3
with:
repository: labuladong/pulsar-test-infra
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]