Commit Graph

14 Commits

Author SHA1 Message Date
Sage Weil
f0af2a7535 .github/workflows/pr-checklist: add checklist action
Signed-off-by: Sage Weil <sage@newdream.net>
2021-11-03 13:26:04 -05:00
Ernesto Puerta
e7cbf30387
Merge pull request #43473 from rhcs-dashboard/wip-pr_deps-master
.github: check if PR deps are merged/closed

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2021-10-11 14:52:02 +02:00
Ernesto Puerta
2220646c20
.github/pr-triage: rename GH token
Repo projects use GITHUB_TOKEN instead of MY_GITHUB_TOKEN:
https://github.com/srggrs/assign-one-project-github-action/blob/master/entrypoint.sh#L19

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2021-10-11 13:05:34 +02:00
Ernesto Puerta
61011a43a3
.github: check if PR deps are merged/closed
If a PR description includes `blocked by <pr>` or `depends on <pr>`,
this check will fail until the referred PRs are either merged or closed.

If this check is made required, it'll also block the merge button.

The details of the supported syntax can be checked at:
https://github.com/marketplace/actions/pr-dependency-check

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2021-10-08 19:14:17 +02:00
Ernesto Puerta
ed55c527f1
.github: add dashboard PRs to Dashboard project
This action automatically adds PRs with 'dashboard' label to the
'Dashboard' project (https://github.com/ceph/ceph/projects/6).

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2021-10-08 18:43:25 +02:00
Kefu Chai
ae8ea10f41 .github/workflows: use a released sha1
otherwise the action cannot be found

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-09 12:16:26 +08:00
Kefu Chai
453cd5fd60 .github/workflows: rename labeler.yml to pr-triage.yml
to reflect the change in the actions in it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-09 02:46:48 +08:00
Kefu Chai
79e8038046 .github/workflows: use @{sha1} for actions
more secure this way. see also https://julienrenaux.fr/2019/12/20/github-actions-security-risk/

point the sha1 to

* labeler@v3
* milestone@main HEAD

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-09 02:46:10 +08:00
Kefu Chai
98b9018979 .github/workflows: move milestone.yml into labeler.yml
no need to have two actions triggered by the same event.

we could backport this labeler.yml to LTS branches.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-09 02:45:52 +08:00
Kefu Chai
c5f6d15e36 .github: correct the regex in mileston workflow
also use pull_request_target event so the action is run in the
context of the base of the pull request. this helps us to overcome
the "Resource not accessible by integration" issue where the action
is run in the context of the pull request.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-07 00:32:44 +08:00
Kefu Chai
1657a44750 .github: add workflow for adding milestone
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-03-06 21:36:53 +08:00
Ernesto Puerta
4c6bd8dd3b
github: add action to manage needs-rebase label
Fixes: https://tracker.ceph.com/issues/48570
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2020-12-15 19:09:28 +01:00
Ernesto Puerta
59702b6198
github/labeler: disable sync-labels
Yaml syntax cleaned too.

Fixes: https://github.com/ceph/ceph/pull/38107#issuecomment-729300615
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2020-11-18 13:15:41 +01:00
Ernesto Puerta
298bc67f7b
github: autolabel PRs
... starting with dashboard ones.

Requires https://github.com/marketplace/actions/labeler

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2020-11-12 19:06:28 +01:00