Skip to content

Commit c003349

Browse files
committed
PAC - Enlever Fabien comme committer
Toutes les autres actions d'écriture ne précisent pas de committer donc cela ne semble pas nécessaire.
1 parent 689698f commit c003349

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

nuxt/server-middleware/trames.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ app.post('/:ref', async (req, res) => {
7878
// Someone miss using a userId should not be able to modify anithing else than what this userId is allowed.
7979
const commitRes = await github(`PUT /repos/{owner}/{repo}/contents/${encodeURIComponent(commit.path)}`, Object.assign({}, commit, {
8080
branch: ref,
81-
committer: {
82-
name: 'Fabien', // allowedRole.user_email.replace(/@(.*)/, ''),
83-
email: 'fabien.ungerer@gmail.com' // allowedRole.user_email
84-
},
8581
message: `${commit.sha ? 'Edit' : 'Create'} ${commit.path} for ${ref} from Docurba`
8682
}))
8783

@@ -94,10 +90,6 @@ app.delete('/:ref', async (req, res) => {
9490

9591
const commitRes = await github(`DELETE /repos/{owner}/{repo}/contents/${encodeURIComponent(commit.path)}`, Object.assign({}, commit, {
9692
branch: ref,
97-
committer: {
98-
name: 'Fabien', // allowedRole.user_email.replace(/@(.*)/, ''),
99-
email: 'fabien.ungerer@gmail.com' // allowedRole.user_email
100-
},
10193
message: `Delete ${commit.path} for ${ref} from Docurba`
10294
}))
10395

0 commit comments

Comments
 (0)