You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-google-cloud-platform.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ This example has a job called `Get_OIDC_ID_token` that uses actions to request a
70
70
71
71
This action exchanges a {% data variables.product.prodname_dotcom %} OIDC token for a Google Cloud access token, using [Workload Identity Federation](https://cloud.google.com/iam/docs/workload-identity-federation).
Copy file name to clipboardExpand all lines: content/get-started/using-git/about-git.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ git push --set-upstream origin main
129
129
130
130
### Example: contribute to an existing branch on {% data variables.product.product_name %}
131
131
132
-
This example assumes that you already have a project called `repo`already on the machine and that a new branch has been pushed to {% data variables.product.product_name %} since the last time changes were made locally.
132
+
This example assumes that you already have a project called `repo` on the machine and that a new branch has been pushed to {% data variables.product.product_name %} since the last time changes were made locally.
Copy file name to clipboardExpand all lines: content/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ In open source projects, forks are often used to iterate on ideas or changes bef
35
35
36
36
{% data reusables.repositories.private_forks_inherit_permissions %}
37
37
38
-
If you want to create a new repository from the contents of an existing repository but don't want to merge your changes upstream in the future, you can duplicate the repository or, if the repository is a template, use the repository as a template. For more information, see "[Duplicating a repository](/articles/duplicating-a-repository)" and "[Creating a repository from a template](/articles/creating-a-repository-from-a-template)".
38
+
If you want to create a new repository from the contents of an existing repository but don't want to merge your changes to the upstream in the future, you can duplicate the repository or, if the repository is a template, you can use the repository as a template. For more information, see "[Duplicating a repository](/articles/duplicating-a-repository)" and "[Creating a repository from a template](/articles/creating-a-repository-from-a-template)".
Copy file name to clipboardExpand all lines: content/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-on-behalf-of-an-organization.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ To create commits on behalf of an organization:
25
25
-`org` is the organization's login
26
26
-`name@organization.com` is in the organization's domain
27
27
28
-
Organization's can use the `name@organization.com` email as a public point of contact for open source efforts.
28
+
Organizations can use the `name@organization.com` email as a public point of contact for open source efforts.
29
29
30
30
## Creating commits with an `on-behalf-of` badge on the command line
Copy file name to clipboardExpand all lines: content/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks.md
+68Lines changed: 68 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,79 @@ remote: error: Required status check "ci-build" is failing
38
38
39
39
{% ifversion fpt or ghae or ghes or ghec %}
40
40
41
+
## Conflicts between head commit and test merge commit
42
+
41
43
Sometimes, the results of the status checks for the test merge commit and head commit will conflict. If the test merge commit has a status, the test merge commit must pass. Otherwise, the status of the head commit must pass before you can merge the branch. For more information about test merge commits, see "[Pulls](/rest/reference/pulls#get-a-pull-request)."
42
44
43
45

44
46
{% endif %}
45
47
48
+
## Handling skipped but required checks
49
+
50
+
Sometimes a required status check is skipped on pull requests due to path filtering. For example, a Node.JS test will be skipped on a pull request that just fixes a typo in your README file and makes no changes to the JavaScript and TypeScript files in the `scripts` directory.
51
+
52
+
If this check is required and it gets skipped, then the check's status is shown as pending, because it's required. In this situation you won't be able to merge the pull request.
53
+
54
+
### Example
55
+
56
+
In this example you have a workflow that's required to pass.
57
+
58
+
```yaml
59
+
name: ci
60
+
on:
61
+
pull_request:
62
+
paths:
63
+
- 'scripts/**'
64
+
- 'middleware/**'
65
+
jobs:
66
+
build:
67
+
runs-on: ubuntu-latest
68
+
strategy:
69
+
matrix:
70
+
node-version: [12.x, 14.x, 16.x]
71
+
steps:
72
+
- uses: actions/checkout@v2
73
+
- name: Use Node.js ${{ matrix.node-version }}
74
+
uses: actions/setup-node@v2
75
+
with:
76
+
node-version: ${{ matrix.node-version }}
77
+
cache: 'npm'
78
+
- run: npm ci
79
+
- run: npm run build --if-present
80
+
- run: npm test
81
+
```
82
+
83
+
If someone submits a pull request that changes a markdown file in the root of the repository, then the workflow above won't run at all because of the path filtering. As a result you won't be able to merge the pull request. You would see the following status on the pull request:
84
+
85
+

86
+
87
+
You can fix this by creating a generic workflow, with the same name, that will return true in any case similar to the workflow below :
88
+
89
+
```yaml
90
+
name: ci
91
+
on:
92
+
pull_request:
93
+
paths-ignore:
94
+
- 'scripts/**'
95
+
- 'middleware/**'
96
+
jobs:
97
+
build:
98
+
runs-on: ubuntu-latest
99
+
steps:
100
+
- run: 'echo "No build required" '
101
+
```
102
+
Now the checks will always pass whenever someone sends a pull request that doesn't change the files listed under `paths` in the first workflow.
103
+
104
+

105
+
106
+
{% note %}
107
+
108
+
**Notes:**
109
+
* Make sure that the `name` key and required job name in both the workflow files are the same. For more information, see "[Workflow syntax for {% data variables.product.prodname_actions %}](/actions/reference/workflow-syntax-for-github-actions)".
110
+
* The example above uses {% data variables.product.prodname_actions %} but this workaround is also applicable to other CI/CD providers that integrate with {% data variables.product.company_short %}.
111
+
112
+
{% endnote %}
113
+
46
114
It's also possible for a protected branch to require a status check from a specific {% data variables.product.prodname_github_app %}. If you see a message similar to the following, then you should verify that the check listed in the merge box was set by the expected app.
0 commit comments