Skip to content

Commit 80b7f96

Browse files
committed
Add NGINX bot (nginx#1607)
Problem: We want to automate adding labels and responding to issues and PRs. Solution: Use a bot!
1 parent 07f88b7 commit 80b7f96

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/nginx-bot.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: NGINX Bot
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- edited
14+
15+
concurrency:
16+
group: ${{ github.event.issue.number || github.event.pull_request.number }}-bot
17+
cancel-in-progress: true
18+
19+
permissions:
20+
issues: write
21+
pull-requests: write
22+
23+
jobs:
24+
comment:
25+
name: Run the bot
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Bot Action
29+
uses: lucacome/nginx-bot@main
30+
with:
31+
pr-assignee-from-issue: 583
32+
warn-missing-issue: true
33+
missing-issue-message: |
34+
Please make sure to include the issue number in the PR description to automatically close the issue when the PR is merged.
35+
See [Linking a pull request to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) and our [Pull Request Guidelines](../docs/developer/pull-request.md) for more information.

docs/developer/pull-request.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
in the curated [release notes](../CHANGELOG.md), add a brief note that summarizes the change in the `release-note` block
99
in the PR description.
1010
- Fill in [our pull request template](/.github/PULL_REQUEST_TEMPLATE.md).
11-
- Make sure to include the issue number in the PR description to automatically close the issue when the PR mergers.
12-
See [Closing Issues via Pull Requests](https://github.blog/2013-05-14-closing-issues-via-pull-requests/) for details.
11+
- Make sure to create an issue and include the issue number in the PR description to automatically close the issue when the PR is merged.
12+
See [Linking a pull request to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) for details.
13+
An issue might not be required for PRs addressing typos, broken links, etc.
1314
- For significant changes, break your changes into a logical series of smaller commits. By approaching the changes
1415
incrementally, it becomes easier to comprehend and review the code.
1516
- Use your best judgement when resolving comments. Simple, unambiguous comments should be resolved by the submitter,

0 commit comments

Comments
 (0)