Commit Graph

46 Commits

Author SHA1 Message Date
Donatas Abraitis
c9f073d1de github: Add rebase label on PR if it's > 50 commits behind
The idea is to catch some PRs and rerun them in CI to avoid merging PRs that
are based on the stale base branch and causes issues afterwards.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-05-09 09:37:23 +03:00
Donald Sharp
9a28372044 git: Workflow grammar fixup
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-04-14 09:55:28 -04:00
Donatas Abraitis
b3b0679cb0 tools: Use specific syntax for conditions for Github actions
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-13 09:52:13 +02:00
Donatas Abraitis
754a054059 tools: Do not run commit linter for other branches than master
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-05 21:15:18 +02:00
Donatas Abraitis
70594ab7bd tools: Do not force Sentence-case for commit messages
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-03 14:10:36 +02:00
Donatas Abraitis
f12331ff33 tools: Add missing mgmtd prefix for commitlint
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-03 10:11:51 +02:00
Donatas Abraitis
8cd0ea3c82 tools: Add missing pathd prefix for commitlint
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-03 10:07:06 +02:00
Donatas Abraitis
8b40b2f655 tools: Add help url when commitlint fails
Just point to our workflow documentation.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-03 10:05:53 +02:00
Donatas Abraitis
463e8d5d0a tools: Replace pull_request_target to pull_request for commitlint action
Tested locally, it works. So it seems that, pull_request_target is not
working properly, let's check.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 23:16:41 +02:00
Donatas Abraitis
8428482abb tools: Fetch more commits for commitlint to validate the commit
Note: It's necessary that you specify the fetch-depth argument to
actions/checkout@v2 step. By default they fetch only latest commit of the
branch, but we need more commits since we validate a range of commit messages.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 22:03:42 +02:00
Donatas Abraitis
0a18c855fd tools: Revalidate commits when PR is updated
Trigger GH action also if labeled, unlabeled.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 21:55:31 +02:00
Donatas Abraitis
5e66e742d7 tools: Add build as a valid prefix for commit messages
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 21:41:20 +02:00
Donatas Abraitis
f05a0c1dde tools: Add commit linter
Run under Github Actions, and restrict commit messages, structure, with, etc.

Enforce using only our specified prefixes for commit messages. It reduces the
work release managers do when _crafting_ release notes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 13:25:25 +02:00
Donatas Abraitis
a228215b00 github: Prevent merging (fail CI) if 'freeze' label exists for PR
Mostly useful duging the freeze period to warn the maintainers from merging
unwanted PRs.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-25 10:43:55 +02:00
Donatas Abraitis
4179369cd0 github: Drop temporary docker-stable github action
Until we have a consensus how we ship stable/X.Y docker images.

For now we build images based on release tags, not based on HEAD of the branch.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-11 21:50:22 +02:00
Donatas Abraitis
be402a42e0 github: Use static quay.io repository for docker images
Not dynamic from username, because tags do not allow using "+" character.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-11 21:34:46 +02:00
Donatas Abraitis
ed3a0c3bfb github: Use quay.io as docker registry for github action generated images
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-09 21:33:39 +02:00
Donatas Abraitis
e535be623a github: Prevent running actions on forked repositories
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-12-08 22:54:28 +02:00
Donatas Abraitis
5772fdff79 github: Build master daily docker images and for stable/X.Y on push
frrouting/frr:master will be generated every day
frrouting/frr:vX.Y.Z will be generated every time a new push is done on the
stable/X.Y branch.

Takes up to 3 hours to build and publish images.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-12-04 21:25:22 +02:00
Donald Sharp
398c407399
Merge pull request #12363 from opensourcerouting/feature/add_size_label_github
github: Create size label for every PR
2022-11-28 07:48:52 -05:00
Donatas Abraitis
0709fdb6d8 github: Create size label for every PR
Examples: size/XS, size/S, size/M, size/L, ...

Inspired by kubernetes/kubernetes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-21 22:22:27 +02:00
Donatas Abraitis
3160e84254 github: Use action-regex-match action for adding backport label
Seems that labeler does not work properly with comments, tested on my own
local repository.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-21 21:06:40 +02:00
Donatas Abraitis
d188e34fb5 github: Add enable-versioned-regex expicitly in labeler.yml
Error: Error: Input required and not supplied: enable-versioned-regex
Error: Input required and not supplied: enable-versioned-regex

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-21 12:04:57 +02:00
Donatas Abraitis
bd22ae9ed4 github: Add backport label if pull request has Mergifyio backport comment
Useful to filter out which PRs should be backported yet.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-18 09:10:45 +02:00
Donatas Abraitis
1cc861a9c3 github: Add conflicts/no_conflicts labels for PRs
Just to quickly identify which PRs needs attention on rebasing.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-10-13 08:18:59 +03:00
Donatas Abraitis
c909a9fa20 github: Set strict permissions for stale actions for Github
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-27 09:54:16 +03:00
Donatas Abraitis
0c687ea4c1 github: Autoclose stale issues/PRs that are stare longer than 180 days
Set autoclose label after 180 days (no activity) and close (really) two weeks
later.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-16 21:54:55 +03:00
Donatas Abraitis
7f69ced7bf github: Mark issues with no activity in 180 days as stale
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-06-10 10:03:05 +03:00
Donatas Abraitis
4588d0cb49 github: Use pull_request_target as a target
And drop checkout action - not needed.

Due to the dangers inherent to automatic processing of PRs, GitHub’s standard
pull_request workflow trigger by default prevents write permissions and
secrets access to the target repository. However, in some scenarios such
access is needed to properly process the PR.

To this end the pull_request_target workflow trigger was introduced.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-25 19:07:40 +03:00
Donatas Abraitis
e13d4745ef github: Add permissions for labeler action
Should solve this:

```
Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-25 18:25:42 +03:00
Donatas Abraitis
3da33b248a github: Add base branch label to every PR to distinguish easily
Faster notice and filter backports by labels per release.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-23 16:58:07 +03:00
Donatas Abraitis
aad6068ff7 github: Use checkboxes for issue templates
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-04-19 13:23:22 +03:00
Quentin Young
368def518e .github: improve bug report template
- Enclose template help text in HTML comments so that it does not show
up in issues
- Add more help text explaining what is requested
- Yell to increase visibility

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2020-10-20 16:12:03 -04:00
ne-vlezay80
aec168e90c
github: Add lost chapter witch issue template
Add lost chapter from issue with bug report

Signed-off-by: Alexey Boldyrev <ne-vlezay80@yandex.ru>
2020-08-25 21:44:13 +03:00
Quentin Young
c1cd1a6e74 .github: move pr template to subdir
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-29 16:51:58 +00:00
Quentin Young
56fc78833f .github: remove old issue template
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-29 16:50:16 +00:00
Quentin Young
2ccd53c051 .github: Update issue templates
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-29 16:50:07 +00:00
Quentin Young
44f81db12d .github: add core guidelines to issue template
Hopefully people will see these first and do them

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-12-13 17:12:23 +00:00
Quentin Young
d972a961b6 .github: remove style reminder from PR template
Tired of deleting this thing, doubt people read it, and we have
checkpatch anyway

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-10-28 02:14:40 +00:00
Quentin Young
0895ecd3d8
Merge pull request #2909 from netravnen/feature/git-pl-template
Add github pull-request-template.md
2018-09-04 11:56:43 -04:00
Christoffer
9119b9b118
.github: Update ISSUE_TEMPLATE.md
Addressed @rwestphal comments.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-09-01 00:10:42 +02:00
Christoffer
d967b38177
.github: Updated PULL_REQUEST_TEMPLATE.md
Addressed @qlyoung's suggestions.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-31 23:06:02 +02:00
Christoffer
9ab45012d0
.github: Updated ISSUE_TEMPALTE.md
Addressed @qlyoung's suggestions.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-31 20:04:46 +00:00
Christoffer
cbb6b2a378
.github: Updated ISSUE_TEMPALTE.md
Addressed all of @qlyoung's "presentational nits
and a formatting suggestion". As well as
@rwestphal's idea of OS and FRR name+version
numbers.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-31 13:04:08 +02:00
Christoffer
272fd0c3cd
.github: Add ISSUE_TEMPLATE.md
Content of file ISSUE_TEMPLATE.md lossly based upon
e38fcc3c00/.github/ISSUE_TEMPLATE.md

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-29 11:19:20 +02:00
Christoffer
52686b3ba6
.github: Updated PULL_REQUEST_TEMPLATE.md per Quentin's request.
Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-29 11:13:16 +02:00