Skip to content

Commit

Permalink
Merge pull request #1062 from Pantelis-Santorinios/patch-1
Browse files Browse the repository at this point in the history
Update `(write access required)` message
  • Loading branch information
landongrindheim authored Sep 29, 2023
2 parents b9b5dc0 + 44b035c commit 286027e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('run', () => {
await run(context)

expect(core.setFailed).toHaveBeenCalledWith(
`Dependabot encountered an unexpected problem\n\nError: unexpected error retrieving job params\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access required)`
`Dependabot encountered an unexpected problem\n\nError: unexpected error retrieving job params\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access to the repository is required to view the log)`
)
})

Expand Down Expand Up @@ -261,7 +261,7 @@ describe('run', () => {
await run(context)

expect(core.setFailed).toHaveBeenCalledWith(
`Dependabot encountered an unexpected problem\n\nError: fetching job details: received code 400: more details\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access required)`
`Dependabot encountered an unexpected problem\n\nError: fetching job details: received code 400: more details\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access to the repository is required to view the log)`
)
})

Expand Down Expand Up @@ -417,7 +417,7 @@ describe('run', () => {
await run(context)

expect(core.setFailed).toHaveBeenCalledWith(
`Dependabot encountered an error performing the update\n\nError: the container melted\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access required)`
`Dependabot encountered an error performing the update\n\nError: the container melted\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access to the repository is required to view the log)`
)
})

Expand Down Expand Up @@ -455,7 +455,7 @@ describe('run', () => {
await run(context)

expect(core.setFailed).toHaveBeenCalledWith(
`Dependabot encountered an error performing the update\n\nError: error running the update\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access required)`
`Dependabot encountered an error performing the update\n\nError: error running the update\n\nFor more information see: https://test.dev/foo/bar/network/updates/1 (write access to the repository is required to view the log)`
)
})

Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function dependabotJobHelp(): string | null {
if (jobId) {
return `For more information see: ${dependabotJobUrl(
jobId
)} (write access required)`
)} (write access to the repository is required to view the log)`
} else {
return null
}
Expand Down

0 comments on commit 286027e

Please sign in to comment.