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

Create PRs as drafts to prompt maintainers to trigger PR checks #679

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

henrymercer
Copy link
Contributor

@henrymercer henrymercer commented Aug 3, 2021

PR checks aren't triggered on PRs created by Actions workflows. This change marks PRs created by workflows as draft to prompt maintainers to take the PR out of draft, thereby triggering PR checks.

Update release branch workflow:

Post-release mergeback workflow:

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

PR checks won't be triggered on PRs created by Actions workflows.
Therefore mark PRs created by workflows as draft to prompt maintainers
to take the PR out of draft, thereby triggering PR checks.
@henrymercer henrymercer requested a review from a team as a code owner August 3, 2021 17:36
Copy link
Contributor

@edoardopirovano edoardopirovano left a comment

Choose a reason for hiding this comment

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

LGTM

@shati-patel
Copy link

Heads up that you might also need to change the PR checks to run on ready_for_review!

(We had a similar issue in the VS Code repo: github/vscode-codeql#888)

@henrymercer
Copy link
Contributor Author

Good call, thanks!

This runs checks on reopened draft PRs to support triggering PR checks
on draft PRs that were opened by other workflows.
@henrymercer
Copy link
Contributor Author

We won't be able to test the triggering behaviour until 2632b65 is in main, but this is ready for re-review.

Copy link
Contributor

@edoardopirovano edoardopirovano left a comment

Choose a reason for hiding this comment

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

Nice, good spot @shati-patel. Still LGTM 🙂

@henrymercer henrymercer merged commit d98d4f5 into main Aug 4, 2021
@henrymercer henrymercer deleted the henrymercer/triggering-pr-checks branch August 4, 2021 09:16
This was referenced Aug 9, 2021
webknjaz added a commit to ansible/pylibssh that referenced this pull request Jun 7, 2024
Normally, PRs/commits published using the default GitHub Actions CI/CD
API token are not propagated to any integrations. This patch marks the
release PR as a draft and leaves a comment asking the maintainers to
mark it as ready for review in order to actually trigger a CI run.

This idea is found in GitHub's own repos:
* github/codeql-action#2263 (comment)
* https://github.com/github/codeql-action/blob/4ebadbc7/.github/workflows/update-dependencies.yml#L38-L41
* github/codeql-action#1868
* github/codeql-action#679
webknjaz added a commit to webknjaz/pytest that referenced this pull request Jun 20, 2024
Normally, PRs/commits published using the default GitHub Actions CI/CD
API token are not propagated to any integrations. This patch marks the
plugin update PR as a draft and leaves a comment asking the maintainers to
mark it as ready for review in order to actually trigger a CI run.

This idea is found in GitHub's own repos:
* github/codeql-action#2263 (comment)
* https://github.com/github/codeql-action/blob/4ebadbc7/.github/workflows/update-dependencies.yml#L38-L41
* github/codeql-action#1868
* github/codeql-action#679
webknjaz added a commit to webknjaz/pytest that referenced this pull request Jun 20, 2024
Normally, PRs/commits published using the default GitHub Actions CI/CD
API token are not propagated to any integrations. This patch marks the
plugin update PR as a draft and leaves a comment asking the maintainers to
mark it as ready for review in order to actually trigger a CI run.

This idea is found in GitHub's own repos:
* github/codeql-action#2263 (comment)
* https://github.com/github/codeql-action/blob/4ebadbc7/.github/workflows/update-dependencies.yml#L38-L41
* github/codeql-action#1868
* github/codeql-action#679
webknjaz added a commit to webknjaz/pytest that referenced this pull request Jun 21, 2024
Normally, PRs/commits published using the default GitHub Actions CI/CD
API token are not propagated to any integrations. This patch marks the
plugin update PR as a draft and leaves a comment asking the maintainers to
mark it as ready for review in order to actually trigger a CI run.

This idea is found in GitHub's own repos:
* github/codeql-action#2263 (comment)
* https://github.com/github/codeql-action/blob/4ebadbc7/.github/workflows/update-dependencies.yml#L38-L41
* github/codeql-action#1868
* github/codeql-action#679
Glyphack pushed a commit to Glyphack/pytest that referenced this pull request Jul 30, 2024
Normally, PRs/commits published using the default GitHub Actions CI/CD
API token are not propagated to any integrations. This patch marks the
plugin update PR as a draft and leaves a comment asking the maintainers to
mark it as ready for review in order to actually trigger a CI run.

This idea is found in GitHub's own repos:
* github/codeql-action#2263 (comment)
* https://github.com/github/codeql-action/blob/4ebadbc7/.github/workflows/update-dependencies.yml#L38-L41
* github/codeql-action#1868
* github/codeql-action#679
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.

3 participants