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

Add PR triage workflow for community issues #55

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

jeanduplessis
Copy link
Contributor

Description of your changes

Adds a workflow to be called for adding the community label to PRs when authored
by a user outside the Upbound org. The PR is also added to the support project.

Copy link
Contributor

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jeanduplessis, lgtm.

uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we label PRs using the github.rest.issues.addLabels API? I see the event now mentions pull_request (contains(github.event.pull_request.labels.*.name... above). I think we have already validated this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, unfortunately, this is very confusing due to the naming but GitHub treats PRs/Issues as a similar object it seems. There isn't a corresponding github.rest.pulls.addLabels API.

@jeanduplessis jeanduplessis merged commit 80da720 into upbound:main Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants